{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype GameSessionStatusReason = GameSessionStatusReason'
  { GameSessionStatusReason -> Text
fromGameSessionStatusReason ::
      Data.Text
  }
  deriving stock
    ( Int -> GameSessionStatusReason -> ShowS
[GameSessionStatusReason] -> ShowS
GameSessionStatusReason -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq GameSessionStatusReason
Int -> GameSessionStatusReason -> Int
GameSessionStatusReason -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: GameSessionStatusReason -> ()
$crnf :: GameSessionStatusReason -> ()
Prelude.NFData,
      Text -> Either String GameSessionStatusReason
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String GameSessionStatusReason
$cfromText :: Text -> Either String GameSessionStatusReason
Data.FromText,
      GameSessionStatusReason -> Text
forall a. (a -> Text) -> ToText a
toText :: GameSessionStatusReason -> Text
$ctoText :: GameSessionStatusReason -> Text
Data.ToText,
      GameSessionStatusReason -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: GameSessionStatusReason -> ByteString
$ctoBS :: GameSessionStatusReason -> ByteString
Data.ToByteString,
      GameSessionStatusReason -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: GameSessionStatusReason -> ByteStringBuilder
$cbuild :: GameSessionStatusReason -> ByteStringBuilder
Data.ToLog,
      HeaderName -> GameSessionStatusReason -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> GameSessionStatusReason -> [Header]
$ctoHeader :: HeaderName -> GameSessionStatusReason -> [Header]
Data.ToHeader,
      GameSessionStatusReason -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: GameSessionStatusReason -> QueryString
$ctoQuery :: GameSessionStatusReason -> QueryString
Data.ToQuery,
      Value -> Parser [GameSessionStatusReason]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [GameSessionStatusReason]
FromJSONKeyFunction GameSessionStatusReason
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [GameSessionStatusReason]
$cfromJSONKeyList :: FromJSONKeyFunction [GameSessionStatusReason]
fromJSONKey :: FromJSONKeyFunction GameSessionStatusReason
$cfromJSONKey :: FromJSONKeyFunction GameSessionStatusReason
Data.FromJSONKey,
      [GameSessionStatusReason] -> Encoding
[GameSessionStatusReason] -> Value
GameSessionStatusReason -> Encoding
GameSessionStatusReason -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [GameSessionStatusReason]
ToJSONKeyFunction GameSessionStatusReason
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [GameSessionStatusReason]
$ctoJSONKeyList :: ToJSONKeyFunction [GameSessionStatusReason]
toJSONKey :: ToJSONKeyFunction GameSessionStatusReason
$ctoJSONKey :: ToJSONKeyFunction GameSessionStatusReason
Data.ToJSONKey,
      [Node] -> Either String GameSessionStatusReason
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String GameSessionStatusReason
$cparseXML :: [Node] -> Either String GameSessionStatusReason
Data.FromXML,
      GameSessionStatusReason -> XML
forall a. (a -> XML) -> ToXML a
toXML :: GameSessionStatusReason -> XML
$ctoXML :: GameSessionStatusReason -> XML
Data.ToXML
    )

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

{-# COMPLETE
  GameSessionStatusReason_INTERRUPTED,
  GameSessionStatusReason'
  #-}