{-# 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.StageState
-- 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.StageState
  ( StageState
      ( ..,
        StageState_ACTIVE,
        StageState_DELETING
      ),
  )
where

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

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

pattern StageState_ACTIVE :: StageState
pattern $bStageState_ACTIVE :: StageState
$mStageState_ACTIVE :: forall {r}. StageState -> ((# #) -> r) -> ((# #) -> r) -> r
StageState_ACTIVE = StageState' "ACTIVE"

pattern StageState_DELETING :: StageState
pattern $bStageState_DELETING :: StageState
$mStageState_DELETING :: forall {r}. StageState -> ((# #) -> r) -> ((# #) -> r) -> r
StageState_DELETING = StageState' "DELETING"

{-# COMPLETE
  StageState_ACTIVE,
  StageState_DELETING,
  StageState'
  #-}