{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.DrS.Types.LaunchDisposition
( LaunchDisposition
( ..,
LaunchDisposition_STARTED,
LaunchDisposition_STOPPED
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype LaunchDisposition = LaunchDisposition'
{ LaunchDisposition -> Text
fromLaunchDisposition ::
Data.Text
}
deriving stock
( Int -> LaunchDisposition -> ShowS
[LaunchDisposition] -> ShowS
LaunchDisposition -> String
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]
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
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
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
Prelude.Ord,
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
( Eq LaunchDisposition
Int -> LaunchDisposition -> Int
LaunchDisposition -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: LaunchDisposition -> ()
$crnf :: LaunchDisposition -> ()
Prelude.NFData,
Text -> Either String LaunchDisposition
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String LaunchDisposition
$cfromText :: Text -> Either String LaunchDisposition
Data.FromText,
LaunchDisposition -> Text
forall a. (a -> Text) -> ToText a
toText :: LaunchDisposition -> Text
$ctoText :: LaunchDisposition -> Text
Data.ToText,
LaunchDisposition -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: LaunchDisposition -> ByteString
$ctoBS :: LaunchDisposition -> ByteString
Data.ToByteString,
LaunchDisposition -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: LaunchDisposition -> ByteStringBuilder
$cbuild :: LaunchDisposition -> ByteStringBuilder
Data.ToLog,
HeaderName -> LaunchDisposition -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> LaunchDisposition -> [Header]
$ctoHeader :: HeaderName -> LaunchDisposition -> [Header]
Data.ToHeader,
LaunchDisposition -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: LaunchDisposition -> QueryString
$ctoQuery :: LaunchDisposition -> QueryString
Data.ToQuery,
Value -> Parser [LaunchDisposition]
Value -> Parser 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
Data.FromJSON,
FromJSONKeyFunction [LaunchDisposition]
FromJSONKeyFunction LaunchDisposition
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [LaunchDisposition]
$cfromJSONKeyList :: FromJSONKeyFunction [LaunchDisposition]
fromJSONKey :: FromJSONKeyFunction LaunchDisposition
$cfromJSONKey :: FromJSONKeyFunction LaunchDisposition
Data.FromJSONKey,
[LaunchDisposition] -> Encoding
[LaunchDisposition] -> Value
LaunchDisposition -> Encoding
LaunchDisposition -> Value
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
Data.ToJSON,
ToJSONKeyFunction [LaunchDisposition]
ToJSONKeyFunction LaunchDisposition
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [LaunchDisposition]
$ctoJSONKeyList :: ToJSONKeyFunction [LaunchDisposition]
toJSONKey :: ToJSONKeyFunction LaunchDisposition
$ctoJSONKey :: ToJSONKeyFunction LaunchDisposition
Data.ToJSONKey,
[Node] -> Either String LaunchDisposition
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String LaunchDisposition
$cparseXML :: [Node] -> Either String LaunchDisposition
Data.FromXML,
LaunchDisposition -> XML
forall a. (a -> XML) -> ToXML a
toXML :: LaunchDisposition -> XML
$ctoXML :: LaunchDisposition -> XML
Data.ToXML
)
pattern LaunchDisposition_STARTED :: LaunchDisposition
pattern $bLaunchDisposition_STARTED :: LaunchDisposition
$mLaunchDisposition_STARTED :: forall {r}. LaunchDisposition -> ((# #) -> r) -> ((# #) -> r) -> r
LaunchDisposition_STARTED = LaunchDisposition' "STARTED"
pattern LaunchDisposition_STOPPED :: LaunchDisposition
pattern $bLaunchDisposition_STOPPED :: LaunchDisposition
$mLaunchDisposition_STOPPED :: forall {r}. LaunchDisposition -> ((# #) -> r) -> ((# #) -> r) -> r
LaunchDisposition_STOPPED = LaunchDisposition' "STOPPED"
{-# COMPLETE
LaunchDisposition_STARTED,
LaunchDisposition_STOPPED,
LaunchDisposition'
#-}