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