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