{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.GameLift.Types.GameSessionStatus
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.GameLift.Types.GameSessionStatus
  ( GameSessionStatus
      ( ..,
        GameSessionStatus_ACTIVATING,
        GameSessionStatus_ACTIVE,
        GameSessionStatus_ERROR,
        GameSessionStatus_TERMINATED,
        GameSessionStatus_TERMINATING
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

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

pattern GameSessionStatus_ACTIVATING :: GameSessionStatus
pattern $bGameSessionStatus_ACTIVATING :: GameSessionStatus
$mGameSessionStatus_ACTIVATING :: forall r. GameSessionStatus -> (Void# -> r) -> (Void# -> r) -> r
GameSessionStatus_ACTIVATING = GameSessionStatus' "ACTIVATING"

pattern GameSessionStatus_ACTIVE :: GameSessionStatus
pattern $bGameSessionStatus_ACTIVE :: GameSessionStatus
$mGameSessionStatus_ACTIVE :: forall r. GameSessionStatus -> (Void# -> r) -> (Void# -> r) -> r
GameSessionStatus_ACTIVE = GameSessionStatus' "ACTIVE"

pattern GameSessionStatus_ERROR :: GameSessionStatus
pattern $bGameSessionStatus_ERROR :: GameSessionStatus
$mGameSessionStatus_ERROR :: forall r. GameSessionStatus -> (Void# -> r) -> (Void# -> r) -> r
GameSessionStatus_ERROR = GameSessionStatus' "ERROR"

pattern GameSessionStatus_TERMINATED :: GameSessionStatus
pattern $bGameSessionStatus_TERMINATED :: GameSessionStatus
$mGameSessionStatus_TERMINATED :: forall r. GameSessionStatus -> (Void# -> r) -> (Void# -> r) -> r
GameSessionStatus_TERMINATED = GameSessionStatus' "TERMINATED"

pattern GameSessionStatus_TERMINATING :: GameSessionStatus
pattern $bGameSessionStatus_TERMINATING :: GameSessionStatus
$mGameSessionStatus_TERMINATING :: forall r. GameSessionStatus -> (Void# -> r) -> (Void# -> r) -> r
GameSessionStatus_TERMINATING = GameSessionStatus' "TERMINATING"

{-# COMPLETE
  GameSessionStatus_ACTIVATING,
  GameSessionStatus_ACTIVE,
  GameSessionStatus_ERROR,
  GameSessionStatus_TERMINATED,
  GameSessionStatus_TERMINATING,
  GameSessionStatus'
  #-}