{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.EC2.Types.CapacityReservationFleetState
( CapacityReservationFleetState
( ..,
CapacityReservationFleetState_Active,
CapacityReservationFleetState_Cancelled,
CapacityReservationFleetState_Cancelling,
CapacityReservationFleetState_Expired,
CapacityReservationFleetState_Expiring,
CapacityReservationFleetState_Failed,
CapacityReservationFleetState_Modifying,
CapacityReservationFleetState_Partially_fulfilled,
CapacityReservationFleetState_Submitted
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import Amazonka.EC2.Internal
import qualified Amazonka.Prelude as Prelude
newtype CapacityReservationFleetState = CapacityReservationFleetState'
{ CapacityReservationFleetState -> Text
fromCapacityReservationFleetState ::
Data.Text
}
deriving stock
( Int -> CapacityReservationFleetState -> ShowS
[CapacityReservationFleetState] -> ShowS
CapacityReservationFleetState -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CapacityReservationFleetState] -> ShowS
$cshowList :: [CapacityReservationFleetState] -> ShowS
show :: CapacityReservationFleetState -> String
$cshow :: CapacityReservationFleetState -> String
showsPrec :: Int -> CapacityReservationFleetState -> ShowS
$cshowsPrec :: Int -> CapacityReservationFleetState -> ShowS
Prelude.Show,
ReadPrec [CapacityReservationFleetState]
ReadPrec CapacityReservationFleetState
Int -> ReadS CapacityReservationFleetState
ReadS [CapacityReservationFleetState]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CapacityReservationFleetState]
$creadListPrec :: ReadPrec [CapacityReservationFleetState]
readPrec :: ReadPrec CapacityReservationFleetState
$creadPrec :: ReadPrec CapacityReservationFleetState
readList :: ReadS [CapacityReservationFleetState]
$creadList :: ReadS [CapacityReservationFleetState]
readsPrec :: Int -> ReadS CapacityReservationFleetState
$creadsPrec :: Int -> ReadS CapacityReservationFleetState
Prelude.Read,
CapacityReservationFleetState
-> CapacityReservationFleetState -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CapacityReservationFleetState
-> CapacityReservationFleetState -> Bool
$c/= :: CapacityReservationFleetState
-> CapacityReservationFleetState -> Bool
== :: CapacityReservationFleetState
-> CapacityReservationFleetState -> Bool
$c== :: CapacityReservationFleetState
-> CapacityReservationFleetState -> Bool
Prelude.Eq,
Eq CapacityReservationFleetState
CapacityReservationFleetState
-> CapacityReservationFleetState -> Bool
CapacityReservationFleetState
-> CapacityReservationFleetState -> Ordering
CapacityReservationFleetState
-> CapacityReservationFleetState -> CapacityReservationFleetState
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 :: CapacityReservationFleetState
-> CapacityReservationFleetState -> CapacityReservationFleetState
$cmin :: CapacityReservationFleetState
-> CapacityReservationFleetState -> CapacityReservationFleetState
max :: CapacityReservationFleetState
-> CapacityReservationFleetState -> CapacityReservationFleetState
$cmax :: CapacityReservationFleetState
-> CapacityReservationFleetState -> CapacityReservationFleetState
>= :: CapacityReservationFleetState
-> CapacityReservationFleetState -> Bool
$c>= :: CapacityReservationFleetState
-> CapacityReservationFleetState -> Bool
> :: CapacityReservationFleetState
-> CapacityReservationFleetState -> Bool
$c> :: CapacityReservationFleetState
-> CapacityReservationFleetState -> Bool
<= :: CapacityReservationFleetState
-> CapacityReservationFleetState -> Bool
$c<= :: CapacityReservationFleetState
-> CapacityReservationFleetState -> Bool
< :: CapacityReservationFleetState
-> CapacityReservationFleetState -> Bool
$c< :: CapacityReservationFleetState
-> CapacityReservationFleetState -> Bool
compare :: CapacityReservationFleetState
-> CapacityReservationFleetState -> Ordering
$ccompare :: CapacityReservationFleetState
-> CapacityReservationFleetState -> Ordering
Prelude.Ord,
forall x.
Rep CapacityReservationFleetState x
-> CapacityReservationFleetState
forall x.
CapacityReservationFleetState
-> Rep CapacityReservationFleetState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CapacityReservationFleetState x
-> CapacityReservationFleetState
$cfrom :: forall x.
CapacityReservationFleetState
-> Rep CapacityReservationFleetState x
Prelude.Generic
)
deriving newtype
( Eq CapacityReservationFleetState
Int -> CapacityReservationFleetState -> Int
CapacityReservationFleetState -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: CapacityReservationFleetState -> Int
$chash :: CapacityReservationFleetState -> Int
hashWithSalt :: Int -> CapacityReservationFleetState -> Int
$chashWithSalt :: Int -> CapacityReservationFleetState -> Int
Prelude.Hashable,
CapacityReservationFleetState -> ()
forall a. (a -> ()) -> NFData a
rnf :: CapacityReservationFleetState -> ()
$crnf :: CapacityReservationFleetState -> ()
Prelude.NFData,
Text -> Either String CapacityReservationFleetState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CapacityReservationFleetState
$cfromText :: Text -> Either String CapacityReservationFleetState
Data.FromText,
CapacityReservationFleetState -> Text
forall a. (a -> Text) -> ToText a
toText :: CapacityReservationFleetState -> Text
$ctoText :: CapacityReservationFleetState -> Text
Data.ToText,
CapacityReservationFleetState -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: CapacityReservationFleetState -> ByteString
$ctoBS :: CapacityReservationFleetState -> ByteString
Data.ToByteString,
CapacityReservationFleetState -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CapacityReservationFleetState -> ByteStringBuilder
$cbuild :: CapacityReservationFleetState -> ByteStringBuilder
Data.ToLog,
HeaderName -> CapacityReservationFleetState -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CapacityReservationFleetState -> [Header]
$ctoHeader :: HeaderName -> CapacityReservationFleetState -> [Header]
Data.ToHeader,
CapacityReservationFleetState -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CapacityReservationFleetState -> QueryString
$ctoQuery :: CapacityReservationFleetState -> QueryString
Data.ToQuery,
Value -> Parser [CapacityReservationFleetState]
Value -> Parser CapacityReservationFleetState
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [CapacityReservationFleetState]
$cparseJSONList :: Value -> Parser [CapacityReservationFleetState]
parseJSON :: Value -> Parser CapacityReservationFleetState
$cparseJSON :: Value -> Parser CapacityReservationFleetState
Data.FromJSON,
FromJSONKeyFunction [CapacityReservationFleetState]
FromJSONKeyFunction CapacityReservationFleetState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CapacityReservationFleetState]
$cfromJSONKeyList :: FromJSONKeyFunction [CapacityReservationFleetState]
fromJSONKey :: FromJSONKeyFunction CapacityReservationFleetState
$cfromJSONKey :: FromJSONKeyFunction CapacityReservationFleetState
Data.FromJSONKey,
[CapacityReservationFleetState] -> Encoding
[CapacityReservationFleetState] -> Value
CapacityReservationFleetState -> Encoding
CapacityReservationFleetState -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [CapacityReservationFleetState] -> Encoding
$ctoEncodingList :: [CapacityReservationFleetState] -> Encoding
toJSONList :: [CapacityReservationFleetState] -> Value
$ctoJSONList :: [CapacityReservationFleetState] -> Value
toEncoding :: CapacityReservationFleetState -> Encoding
$ctoEncoding :: CapacityReservationFleetState -> Encoding
toJSON :: CapacityReservationFleetState -> Value
$ctoJSON :: CapacityReservationFleetState -> Value
Data.ToJSON,
ToJSONKeyFunction [CapacityReservationFleetState]
ToJSONKeyFunction CapacityReservationFleetState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CapacityReservationFleetState]
$ctoJSONKeyList :: ToJSONKeyFunction [CapacityReservationFleetState]
toJSONKey :: ToJSONKeyFunction CapacityReservationFleetState
$ctoJSONKey :: ToJSONKeyFunction CapacityReservationFleetState
Data.ToJSONKey,
[Node] -> Either String CapacityReservationFleetState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CapacityReservationFleetState
$cparseXML :: [Node] -> Either String CapacityReservationFleetState
Data.FromXML,
CapacityReservationFleetState -> XML
forall a. (a -> XML) -> ToXML a
toXML :: CapacityReservationFleetState -> XML
$ctoXML :: CapacityReservationFleetState -> XML
Data.ToXML
)
pattern CapacityReservationFleetState_Active :: CapacityReservationFleetState
pattern $bCapacityReservationFleetState_Active :: CapacityReservationFleetState
$mCapacityReservationFleetState_Active :: forall {r}.
CapacityReservationFleetState -> ((# #) -> r) -> ((# #) -> r) -> r
CapacityReservationFleetState_Active = CapacityReservationFleetState' "active"
pattern CapacityReservationFleetState_Cancelled :: CapacityReservationFleetState
pattern $bCapacityReservationFleetState_Cancelled :: CapacityReservationFleetState
$mCapacityReservationFleetState_Cancelled :: forall {r}.
CapacityReservationFleetState -> ((# #) -> r) -> ((# #) -> r) -> r
CapacityReservationFleetState_Cancelled = CapacityReservationFleetState' "cancelled"
pattern CapacityReservationFleetState_Cancelling :: CapacityReservationFleetState
pattern $bCapacityReservationFleetState_Cancelling :: CapacityReservationFleetState
$mCapacityReservationFleetState_Cancelling :: forall {r}.
CapacityReservationFleetState -> ((# #) -> r) -> ((# #) -> r) -> r
CapacityReservationFleetState_Cancelling = CapacityReservationFleetState' "cancelling"
pattern CapacityReservationFleetState_Expired :: CapacityReservationFleetState
pattern $bCapacityReservationFleetState_Expired :: CapacityReservationFleetState
$mCapacityReservationFleetState_Expired :: forall {r}.
CapacityReservationFleetState -> ((# #) -> r) -> ((# #) -> r) -> r
CapacityReservationFleetState_Expired = CapacityReservationFleetState' "expired"
pattern CapacityReservationFleetState_Expiring :: CapacityReservationFleetState
pattern $bCapacityReservationFleetState_Expiring :: CapacityReservationFleetState
$mCapacityReservationFleetState_Expiring :: forall {r}.
CapacityReservationFleetState -> ((# #) -> r) -> ((# #) -> r) -> r
CapacityReservationFleetState_Expiring = CapacityReservationFleetState' "expiring"
pattern CapacityReservationFleetState_Failed :: CapacityReservationFleetState
pattern $bCapacityReservationFleetState_Failed :: CapacityReservationFleetState
$mCapacityReservationFleetState_Failed :: forall {r}.
CapacityReservationFleetState -> ((# #) -> r) -> ((# #) -> r) -> r
CapacityReservationFleetState_Failed = CapacityReservationFleetState' "failed"
pattern CapacityReservationFleetState_Modifying :: CapacityReservationFleetState
pattern $bCapacityReservationFleetState_Modifying :: CapacityReservationFleetState
$mCapacityReservationFleetState_Modifying :: forall {r}.
CapacityReservationFleetState -> ((# #) -> r) -> ((# #) -> r) -> r
CapacityReservationFleetState_Modifying = CapacityReservationFleetState' "modifying"
pattern CapacityReservationFleetState_Partially_fulfilled :: CapacityReservationFleetState
pattern $bCapacityReservationFleetState_Partially_fulfilled :: CapacityReservationFleetState
$mCapacityReservationFleetState_Partially_fulfilled :: forall {r}.
CapacityReservationFleetState -> ((# #) -> r) -> ((# #) -> r) -> r
CapacityReservationFleetState_Partially_fulfilled = CapacityReservationFleetState' "partially_fulfilled"
pattern CapacityReservationFleetState_Submitted :: CapacityReservationFleetState
pattern $bCapacityReservationFleetState_Submitted :: CapacityReservationFleetState
$mCapacityReservationFleetState_Submitted :: forall {r}.
CapacityReservationFleetState -> ((# #) -> r) -> ((# #) -> r) -> r
CapacityReservationFleetState_Submitted = CapacityReservationFleetState' "submitted"
{-# COMPLETE
CapacityReservationFleetState_Active,
CapacityReservationFleetState_Cancelled,
CapacityReservationFleetState_Cancelling,
CapacityReservationFleetState_Expired,
CapacityReservationFleetState_Expiring,
CapacityReservationFleetState_Failed,
CapacityReservationFleetState_Modifying,
CapacityReservationFleetState_Partially_fulfilled,
CapacityReservationFleetState_Submitted,
CapacityReservationFleetState'
#-}