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