{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.CloudFormation.Types.VersionBump
( VersionBump
( ..,
VersionBump_MAJOR,
VersionBump_MINOR
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype VersionBump = VersionBump'
{ VersionBump -> Text
fromVersionBump ::
Data.Text
}
deriving stock
( Int -> VersionBump -> ShowS
[VersionBump] -> ShowS
VersionBump -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [VersionBump] -> ShowS
$cshowList :: [VersionBump] -> ShowS
show :: VersionBump -> String
$cshow :: VersionBump -> String
showsPrec :: Int -> VersionBump -> ShowS
$cshowsPrec :: Int -> VersionBump -> ShowS
Prelude.Show,
ReadPrec [VersionBump]
ReadPrec VersionBump
Int -> ReadS VersionBump
ReadS [VersionBump]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [VersionBump]
$creadListPrec :: ReadPrec [VersionBump]
readPrec :: ReadPrec VersionBump
$creadPrec :: ReadPrec VersionBump
readList :: ReadS [VersionBump]
$creadList :: ReadS [VersionBump]
readsPrec :: Int -> ReadS VersionBump
$creadsPrec :: Int -> ReadS VersionBump
Prelude.Read,
VersionBump -> VersionBump -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: VersionBump -> VersionBump -> Bool
$c/= :: VersionBump -> VersionBump -> Bool
== :: VersionBump -> VersionBump -> Bool
$c== :: VersionBump -> VersionBump -> Bool
Prelude.Eq,
Eq VersionBump
VersionBump -> VersionBump -> Bool
VersionBump -> VersionBump -> Ordering
VersionBump -> VersionBump -> VersionBump
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: VersionBump -> VersionBump -> VersionBump
$cmin :: VersionBump -> VersionBump -> VersionBump
max :: VersionBump -> VersionBump -> VersionBump
$cmax :: VersionBump -> VersionBump -> VersionBump
>= :: VersionBump -> VersionBump -> Bool
$c>= :: VersionBump -> VersionBump -> Bool
> :: VersionBump -> VersionBump -> Bool
$c> :: VersionBump -> VersionBump -> Bool
<= :: VersionBump -> VersionBump -> Bool
$c<= :: VersionBump -> VersionBump -> Bool
< :: VersionBump -> VersionBump -> Bool
$c< :: VersionBump -> VersionBump -> Bool
compare :: VersionBump -> VersionBump -> Ordering
$ccompare :: VersionBump -> VersionBump -> Ordering
Prelude.Ord,
forall x. Rep VersionBump x -> VersionBump
forall x. VersionBump -> Rep VersionBump x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep VersionBump x -> VersionBump
$cfrom :: forall x. VersionBump -> Rep VersionBump x
Prelude.Generic
)
deriving newtype
( Eq VersionBump
Int -> VersionBump -> Int
VersionBump -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: VersionBump -> Int
$chash :: VersionBump -> Int
hashWithSalt :: Int -> VersionBump -> Int
$chashWithSalt :: Int -> VersionBump -> Int
Prelude.Hashable,
VersionBump -> ()
forall a. (a -> ()) -> NFData a
rnf :: VersionBump -> ()
$crnf :: VersionBump -> ()
Prelude.NFData,
Text -> Either String VersionBump
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String VersionBump
$cfromText :: Text -> Either String VersionBump
Data.FromText,
VersionBump -> Text
forall a. (a -> Text) -> ToText a
toText :: VersionBump -> Text
$ctoText :: VersionBump -> Text
Data.ToText,
VersionBump -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: VersionBump -> ByteString
$ctoBS :: VersionBump -> ByteString
Data.ToByteString,
VersionBump -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: VersionBump -> ByteStringBuilder
$cbuild :: VersionBump -> ByteStringBuilder
Data.ToLog,
HeaderName -> VersionBump -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> VersionBump -> [Header]
$ctoHeader :: HeaderName -> VersionBump -> [Header]
Data.ToHeader,
VersionBump -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: VersionBump -> QueryString
$ctoQuery :: VersionBump -> QueryString
Data.ToQuery,
Value -> Parser [VersionBump]
Value -> Parser VersionBump
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [VersionBump]
$cparseJSONList :: Value -> Parser [VersionBump]
parseJSON :: Value -> Parser VersionBump
$cparseJSON :: Value -> Parser VersionBump
Data.FromJSON,
FromJSONKeyFunction [VersionBump]
FromJSONKeyFunction VersionBump
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [VersionBump]
$cfromJSONKeyList :: FromJSONKeyFunction [VersionBump]
fromJSONKey :: FromJSONKeyFunction VersionBump
$cfromJSONKey :: FromJSONKeyFunction VersionBump
Data.FromJSONKey,
[VersionBump] -> Encoding
[VersionBump] -> Value
VersionBump -> Encoding
VersionBump -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [VersionBump] -> Encoding
$ctoEncodingList :: [VersionBump] -> Encoding
toJSONList :: [VersionBump] -> Value
$ctoJSONList :: [VersionBump] -> Value
toEncoding :: VersionBump -> Encoding
$ctoEncoding :: VersionBump -> Encoding
toJSON :: VersionBump -> Value
$ctoJSON :: VersionBump -> Value
Data.ToJSON,
ToJSONKeyFunction [VersionBump]
ToJSONKeyFunction VersionBump
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [VersionBump]
$ctoJSONKeyList :: ToJSONKeyFunction [VersionBump]
toJSONKey :: ToJSONKeyFunction VersionBump
$ctoJSONKey :: ToJSONKeyFunction VersionBump
Data.ToJSONKey,
[Node] -> Either String VersionBump
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String VersionBump
$cparseXML :: [Node] -> Either String VersionBump
Data.FromXML,
VersionBump -> XML
forall a. (a -> XML) -> ToXML a
toXML :: VersionBump -> XML
$ctoXML :: VersionBump -> XML
Data.ToXML
)
pattern VersionBump_MAJOR :: VersionBump
pattern $bVersionBump_MAJOR :: VersionBump
$mVersionBump_MAJOR :: forall {r}. VersionBump -> ((# #) -> r) -> ((# #) -> r) -> r
VersionBump_MAJOR = VersionBump' "MAJOR"
pattern VersionBump_MINOR :: VersionBump
pattern $bVersionBump_MINOR :: VersionBump
$mVersionBump_MINOR :: forall {r}. VersionBump -> ((# #) -> r) -> ((# #) -> r) -> r
VersionBump_MINOR = VersionBump' "MINOR"
{-# COMPLETE
VersionBump_MAJOR,
VersionBump_MINOR,
VersionBump'
#-}