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