{-# 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.GameSessionStatusReason
-- 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.GameSessionStatusReason
  ( GameSessionStatusReason
      ( ..,
        GameSessionStatusReason_INTERRUPTED
      ),
  )
where

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

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

pattern GameSessionStatusReason_INTERRUPTED :: GameSessionStatusReason
pattern $bGameSessionStatusReason_INTERRUPTED :: GameSessionStatusReason
$mGameSessionStatusReason_INTERRUPTED :: forall r.
GameSessionStatusReason -> (Void# -> r) -> (Void# -> r) -> r
GameSessionStatusReason_INTERRUPTED = GameSessionStatusReason' "INTERRUPTED"

{-# COMPLETE
  GameSessionStatusReason_INTERRUPTED,
  GameSessionStatusReason'
  #-}