{-# 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.GameServerInstanceStatus
( GameServerInstanceStatus
( ..,
GameServerInstanceStatus_ACTIVE,
GameServerInstanceStatus_DRAINING,
GameServerInstanceStatus_SPOT_TERMINATING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype GameServerInstanceStatus = GameServerInstanceStatus'
{ GameServerInstanceStatus -> Text
fromGameServerInstanceStatus ::
Core.Text
}
deriving stock
( Int -> GameServerInstanceStatus -> ShowS
[GameServerInstanceStatus] -> ShowS
GameServerInstanceStatus -> String
(Int -> GameServerInstanceStatus -> ShowS)
-> (GameServerInstanceStatus -> String)
-> ([GameServerInstanceStatus] -> ShowS)
-> Show GameServerInstanceStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GameServerInstanceStatus] -> ShowS
$cshowList :: [GameServerInstanceStatus] -> ShowS
show :: GameServerInstanceStatus -> String
$cshow :: GameServerInstanceStatus -> String
showsPrec :: Int -> GameServerInstanceStatus -> ShowS
$cshowsPrec :: Int -> GameServerInstanceStatus -> ShowS
Prelude.Show,
ReadPrec [GameServerInstanceStatus]
ReadPrec GameServerInstanceStatus
Int -> ReadS GameServerInstanceStatus
ReadS [GameServerInstanceStatus]
(Int -> ReadS GameServerInstanceStatus)
-> ReadS [GameServerInstanceStatus]
-> ReadPrec GameServerInstanceStatus
-> ReadPrec [GameServerInstanceStatus]
-> Read GameServerInstanceStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GameServerInstanceStatus]
$creadListPrec :: ReadPrec [GameServerInstanceStatus]
readPrec :: ReadPrec GameServerInstanceStatus
$creadPrec :: ReadPrec GameServerInstanceStatus
readList :: ReadS [GameServerInstanceStatus]
$creadList :: ReadS [GameServerInstanceStatus]
readsPrec :: Int -> ReadS GameServerInstanceStatus
$creadsPrec :: Int -> ReadS GameServerInstanceStatus
Prelude.Read,
GameServerInstanceStatus -> GameServerInstanceStatus -> Bool
(GameServerInstanceStatus -> GameServerInstanceStatus -> Bool)
-> (GameServerInstanceStatus -> GameServerInstanceStatus -> Bool)
-> Eq GameServerInstanceStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GameServerInstanceStatus -> GameServerInstanceStatus -> Bool
$c/= :: GameServerInstanceStatus -> GameServerInstanceStatus -> Bool
== :: GameServerInstanceStatus -> GameServerInstanceStatus -> Bool
$c== :: GameServerInstanceStatus -> GameServerInstanceStatus -> Bool
Prelude.Eq,
Eq GameServerInstanceStatus
Eq GameServerInstanceStatus
-> (GameServerInstanceStatus
-> GameServerInstanceStatus -> Ordering)
-> (GameServerInstanceStatus -> GameServerInstanceStatus -> Bool)
-> (GameServerInstanceStatus -> GameServerInstanceStatus -> Bool)
-> (GameServerInstanceStatus -> GameServerInstanceStatus -> Bool)
-> (GameServerInstanceStatus -> GameServerInstanceStatus -> Bool)
-> (GameServerInstanceStatus
-> GameServerInstanceStatus -> GameServerInstanceStatus)
-> (GameServerInstanceStatus
-> GameServerInstanceStatus -> GameServerInstanceStatus)
-> Ord GameServerInstanceStatus
GameServerInstanceStatus -> GameServerInstanceStatus -> Bool
GameServerInstanceStatus -> GameServerInstanceStatus -> Ordering
GameServerInstanceStatus
-> GameServerInstanceStatus -> GameServerInstanceStatus
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 :: GameServerInstanceStatus
-> GameServerInstanceStatus -> GameServerInstanceStatus
$cmin :: GameServerInstanceStatus
-> GameServerInstanceStatus -> GameServerInstanceStatus
max :: GameServerInstanceStatus
-> GameServerInstanceStatus -> GameServerInstanceStatus
$cmax :: GameServerInstanceStatus
-> GameServerInstanceStatus -> GameServerInstanceStatus
>= :: GameServerInstanceStatus -> GameServerInstanceStatus -> Bool
$c>= :: GameServerInstanceStatus -> GameServerInstanceStatus -> Bool
> :: GameServerInstanceStatus -> GameServerInstanceStatus -> Bool
$c> :: GameServerInstanceStatus -> GameServerInstanceStatus -> Bool
<= :: GameServerInstanceStatus -> GameServerInstanceStatus -> Bool
$c<= :: GameServerInstanceStatus -> GameServerInstanceStatus -> Bool
< :: GameServerInstanceStatus -> GameServerInstanceStatus -> Bool
$c< :: GameServerInstanceStatus -> GameServerInstanceStatus -> Bool
compare :: GameServerInstanceStatus -> GameServerInstanceStatus -> Ordering
$ccompare :: GameServerInstanceStatus -> GameServerInstanceStatus -> Ordering
$cp1Ord :: Eq GameServerInstanceStatus
Prelude.Ord,
(forall x.
GameServerInstanceStatus -> Rep GameServerInstanceStatus x)
-> (forall x.
Rep GameServerInstanceStatus x -> GameServerInstanceStatus)
-> Generic GameServerInstanceStatus
forall x.
Rep GameServerInstanceStatus x -> GameServerInstanceStatus
forall x.
GameServerInstanceStatus -> Rep GameServerInstanceStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GameServerInstanceStatus x -> GameServerInstanceStatus
$cfrom :: forall x.
GameServerInstanceStatus -> Rep GameServerInstanceStatus x
Prelude.Generic
)
deriving newtype
( Int -> GameServerInstanceStatus -> Int
GameServerInstanceStatus -> Int
(Int -> GameServerInstanceStatus -> Int)
-> (GameServerInstanceStatus -> Int)
-> Hashable GameServerInstanceStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: GameServerInstanceStatus -> Int
$chash :: GameServerInstanceStatus -> Int
hashWithSalt :: Int -> GameServerInstanceStatus -> Int
$chashWithSalt :: Int -> GameServerInstanceStatus -> Int
Prelude.Hashable,
GameServerInstanceStatus -> ()
(GameServerInstanceStatus -> ()) -> NFData GameServerInstanceStatus
forall a. (a -> ()) -> NFData a
rnf :: GameServerInstanceStatus -> ()
$crnf :: GameServerInstanceStatus -> ()
Prelude.NFData,
Text -> Either String GameServerInstanceStatus
(Text -> Either String GameServerInstanceStatus)
-> FromText GameServerInstanceStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String GameServerInstanceStatus
$cfromText :: Text -> Either String GameServerInstanceStatus
Core.FromText,
GameServerInstanceStatus -> Text
(GameServerInstanceStatus -> Text)
-> ToText GameServerInstanceStatus
forall a. (a -> Text) -> ToText a
toText :: GameServerInstanceStatus -> Text
$ctoText :: GameServerInstanceStatus -> Text
Core.ToText,
GameServerInstanceStatus -> ByteString
(GameServerInstanceStatus -> ByteString)
-> ToByteString GameServerInstanceStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: GameServerInstanceStatus -> ByteString
$ctoBS :: GameServerInstanceStatus -> ByteString
Core.ToByteString,
GameServerInstanceStatus -> ByteStringBuilder
(GameServerInstanceStatus -> ByteStringBuilder)
-> ToLog GameServerInstanceStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: GameServerInstanceStatus -> ByteStringBuilder
$cbuild :: GameServerInstanceStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> GameServerInstanceStatus -> [Header]
(HeaderName -> GameServerInstanceStatus -> [Header])
-> ToHeader GameServerInstanceStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> GameServerInstanceStatus -> [Header]
$ctoHeader :: HeaderName -> GameServerInstanceStatus -> [Header]
Core.ToHeader,
GameServerInstanceStatus -> QueryString
(GameServerInstanceStatus -> QueryString)
-> ToQuery GameServerInstanceStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: GameServerInstanceStatus -> QueryString
$ctoQuery :: GameServerInstanceStatus -> QueryString
Core.ToQuery,
Value -> Parser [GameServerInstanceStatus]
Value -> Parser GameServerInstanceStatus
(Value -> Parser GameServerInstanceStatus)
-> (Value -> Parser [GameServerInstanceStatus])
-> FromJSON GameServerInstanceStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [GameServerInstanceStatus]
$cparseJSONList :: Value -> Parser [GameServerInstanceStatus]
parseJSON :: Value -> Parser GameServerInstanceStatus
$cparseJSON :: Value -> Parser GameServerInstanceStatus
Core.FromJSON,
FromJSONKeyFunction [GameServerInstanceStatus]
FromJSONKeyFunction GameServerInstanceStatus
FromJSONKeyFunction GameServerInstanceStatus
-> FromJSONKeyFunction [GameServerInstanceStatus]
-> FromJSONKey GameServerInstanceStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [GameServerInstanceStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [GameServerInstanceStatus]
fromJSONKey :: FromJSONKeyFunction GameServerInstanceStatus
$cfromJSONKey :: FromJSONKeyFunction GameServerInstanceStatus
Core.FromJSONKey,
[GameServerInstanceStatus] -> Encoding
[GameServerInstanceStatus] -> Value
GameServerInstanceStatus -> Encoding
GameServerInstanceStatus -> Value
(GameServerInstanceStatus -> Value)
-> (GameServerInstanceStatus -> Encoding)
-> ([GameServerInstanceStatus] -> Value)
-> ([GameServerInstanceStatus] -> Encoding)
-> ToJSON GameServerInstanceStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [GameServerInstanceStatus] -> Encoding
$ctoEncodingList :: [GameServerInstanceStatus] -> Encoding
toJSONList :: [GameServerInstanceStatus] -> Value
$ctoJSONList :: [GameServerInstanceStatus] -> Value
toEncoding :: GameServerInstanceStatus -> Encoding
$ctoEncoding :: GameServerInstanceStatus -> Encoding
toJSON :: GameServerInstanceStatus -> Value
$ctoJSON :: GameServerInstanceStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [GameServerInstanceStatus]
ToJSONKeyFunction GameServerInstanceStatus
ToJSONKeyFunction GameServerInstanceStatus
-> ToJSONKeyFunction [GameServerInstanceStatus]
-> ToJSONKey GameServerInstanceStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [GameServerInstanceStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [GameServerInstanceStatus]
toJSONKey :: ToJSONKeyFunction GameServerInstanceStatus
$ctoJSONKey :: ToJSONKeyFunction GameServerInstanceStatus
Core.ToJSONKey,
[Node] -> Either String GameServerInstanceStatus
([Node] -> Either String GameServerInstanceStatus)
-> FromXML GameServerInstanceStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String GameServerInstanceStatus
$cparseXML :: [Node] -> Either String GameServerInstanceStatus
Core.FromXML,
GameServerInstanceStatus -> XML
(GameServerInstanceStatus -> XML) -> ToXML GameServerInstanceStatus
forall a. (a -> XML) -> ToXML a
toXML :: GameServerInstanceStatus -> XML
$ctoXML :: GameServerInstanceStatus -> XML
Core.ToXML
)
pattern GameServerInstanceStatus_ACTIVE :: GameServerInstanceStatus
pattern $bGameServerInstanceStatus_ACTIVE :: GameServerInstanceStatus
$mGameServerInstanceStatus_ACTIVE :: forall r.
GameServerInstanceStatus -> (Void# -> r) -> (Void# -> r) -> r
GameServerInstanceStatus_ACTIVE = GameServerInstanceStatus' "ACTIVE"
pattern GameServerInstanceStatus_DRAINING :: GameServerInstanceStatus
pattern $bGameServerInstanceStatus_DRAINING :: GameServerInstanceStatus
$mGameServerInstanceStatus_DRAINING :: forall r.
GameServerInstanceStatus -> (Void# -> r) -> (Void# -> r) -> r
GameServerInstanceStatus_DRAINING = GameServerInstanceStatus' "DRAINING"
pattern GameServerInstanceStatus_SPOT_TERMINATING :: GameServerInstanceStatus
pattern $bGameServerInstanceStatus_SPOT_TERMINATING :: GameServerInstanceStatus
$mGameServerInstanceStatus_SPOT_TERMINATING :: forall r.
GameServerInstanceStatus -> (Void# -> r) -> (Void# -> r) -> r
GameServerInstanceStatus_SPOT_TERMINATING = GameServerInstanceStatus' "SPOT_TERMINATING"
{-# COMPLETE
GameServerInstanceStatus_ACTIVE,
GameServerInstanceStatus_DRAINING,
GameServerInstanceStatus_SPOT_TERMINATING,
GameServerInstanceStatus'
#-}