{-# 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.GeneratedCodeJobState
-- 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.GeneratedCodeJobState
  ( GeneratedCodeJobState
      ( ..,
        GeneratedCodeJobState_COMPLETED,
        GeneratedCodeJobState_FAILED,
        GeneratedCodeJobState_IN_PROGRESS,
        GeneratedCodeJobState_PENDING
      ),
  )
where

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

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

pattern GeneratedCodeJobState_COMPLETED :: GeneratedCodeJobState
pattern $bGeneratedCodeJobState_COMPLETED :: GeneratedCodeJobState
$mGeneratedCodeJobState_COMPLETED :: forall {r}.
GeneratedCodeJobState -> ((# #) -> r) -> ((# #) -> r) -> r
GeneratedCodeJobState_COMPLETED = GeneratedCodeJobState' "COMPLETED"

pattern GeneratedCodeJobState_FAILED :: GeneratedCodeJobState
pattern $bGeneratedCodeJobState_FAILED :: GeneratedCodeJobState
$mGeneratedCodeJobState_FAILED :: forall {r}.
GeneratedCodeJobState -> ((# #) -> r) -> ((# #) -> r) -> r
GeneratedCodeJobState_FAILED = GeneratedCodeJobState' "FAILED"

pattern GeneratedCodeJobState_IN_PROGRESS :: GeneratedCodeJobState
pattern $bGeneratedCodeJobState_IN_PROGRESS :: GeneratedCodeJobState
$mGeneratedCodeJobState_IN_PROGRESS :: forall {r}.
GeneratedCodeJobState -> ((# #) -> r) -> ((# #) -> r) -> r
GeneratedCodeJobState_IN_PROGRESS = GeneratedCodeJobState' "IN_PROGRESS"

pattern GeneratedCodeJobState_PENDING :: GeneratedCodeJobState
pattern $bGeneratedCodeJobState_PENDING :: GeneratedCodeJobState
$mGeneratedCodeJobState_PENDING :: forall {r}.
GeneratedCodeJobState -> ((# #) -> r) -> ((# #) -> r) -> r
GeneratedCodeJobState_PENDING = GeneratedCodeJobState' "PENDING"

{-# COMPLETE
  GeneratedCodeJobState_COMPLETED,
  GeneratedCodeJobState_FAILED,
  GeneratedCodeJobState_IN_PROGRESS,
  GeneratedCodeJobState_PENDING,
  GeneratedCodeJobState'
  #-}