{-# 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.GamesParks.Types.GameState
-- 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.GamesParks.Types.GameState
  ( GameState
      ( ..,
        GameState_ACTIVE,
        GameState_DELETING
      ),
  )
where

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

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

pattern GameState_ACTIVE :: GameState
pattern $bGameState_ACTIVE :: GameState
$mGameState_ACTIVE :: forall {r}. GameState -> ((# #) -> r) -> ((# #) -> r) -> r
GameState_ACTIVE = GameState' "ACTIVE"

pattern GameState_DELETING :: GameState
pattern $bGameState_DELETING :: GameState
$mGameState_DELETING :: forall {r}. GameState -> ((# #) -> r) -> ((# #) -> r) -> r
GameState_DELETING = GameState' "DELETING"

{-# COMPLETE
  GameState_ACTIVE,
  GameState_DELETING,
  GameState'
  #-}