{-# 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.RobOMaker.Types.WorldGenerationJobErrorCode
-- 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.RobOMaker.Types.WorldGenerationJobErrorCode
  ( WorldGenerationJobErrorCode
      ( ..,
        WorldGenerationJobErrorCode_AllWorldGenerationFailed,
        WorldGenerationJobErrorCode_InternalServiceError,
        WorldGenerationJobErrorCode_InvalidInput,
        WorldGenerationJobErrorCode_LimitExceeded,
        WorldGenerationJobErrorCode_RequestThrottled,
        WorldGenerationJobErrorCode_ResourceNotFound
      ),
  )
where

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

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

pattern WorldGenerationJobErrorCode_AllWorldGenerationFailed :: WorldGenerationJobErrorCode
pattern $bWorldGenerationJobErrorCode_AllWorldGenerationFailed :: WorldGenerationJobErrorCode
$mWorldGenerationJobErrorCode_AllWorldGenerationFailed :: forall {r}.
WorldGenerationJobErrorCode -> ((# #) -> r) -> ((# #) -> r) -> r
WorldGenerationJobErrorCode_AllWorldGenerationFailed = WorldGenerationJobErrorCode' "AllWorldGenerationFailed"

pattern WorldGenerationJobErrorCode_InternalServiceError :: WorldGenerationJobErrorCode
pattern $bWorldGenerationJobErrorCode_InternalServiceError :: WorldGenerationJobErrorCode
$mWorldGenerationJobErrorCode_InternalServiceError :: forall {r}.
WorldGenerationJobErrorCode -> ((# #) -> r) -> ((# #) -> r) -> r
WorldGenerationJobErrorCode_InternalServiceError = WorldGenerationJobErrorCode' "InternalServiceError"

pattern WorldGenerationJobErrorCode_InvalidInput :: WorldGenerationJobErrorCode
pattern $bWorldGenerationJobErrorCode_InvalidInput :: WorldGenerationJobErrorCode
$mWorldGenerationJobErrorCode_InvalidInput :: forall {r}.
WorldGenerationJobErrorCode -> ((# #) -> r) -> ((# #) -> r) -> r
WorldGenerationJobErrorCode_InvalidInput = WorldGenerationJobErrorCode' "InvalidInput"

pattern WorldGenerationJobErrorCode_LimitExceeded :: WorldGenerationJobErrorCode
pattern $bWorldGenerationJobErrorCode_LimitExceeded :: WorldGenerationJobErrorCode
$mWorldGenerationJobErrorCode_LimitExceeded :: forall {r}.
WorldGenerationJobErrorCode -> ((# #) -> r) -> ((# #) -> r) -> r
WorldGenerationJobErrorCode_LimitExceeded = WorldGenerationJobErrorCode' "LimitExceeded"

pattern WorldGenerationJobErrorCode_RequestThrottled :: WorldGenerationJobErrorCode
pattern $bWorldGenerationJobErrorCode_RequestThrottled :: WorldGenerationJobErrorCode
$mWorldGenerationJobErrorCode_RequestThrottled :: forall {r}.
WorldGenerationJobErrorCode -> ((# #) -> r) -> ((# #) -> r) -> r
WorldGenerationJobErrorCode_RequestThrottled = WorldGenerationJobErrorCode' "RequestThrottled"

pattern WorldGenerationJobErrorCode_ResourceNotFound :: WorldGenerationJobErrorCode
pattern $bWorldGenerationJobErrorCode_ResourceNotFound :: WorldGenerationJobErrorCode
$mWorldGenerationJobErrorCode_ResourceNotFound :: forall {r}.
WorldGenerationJobErrorCode -> ((# #) -> r) -> ((# #) -> r) -> r
WorldGenerationJobErrorCode_ResourceNotFound = WorldGenerationJobErrorCode' "ResourceNotFound"

{-# COMPLETE
  WorldGenerationJobErrorCode_AllWorldGenerationFailed,
  WorldGenerationJobErrorCode_InternalServiceError,
  WorldGenerationJobErrorCode_InvalidInput,
  WorldGenerationJobErrorCode_LimitExceeded,
  WorldGenerationJobErrorCode_RequestThrottled,
  WorldGenerationJobErrorCode_ResourceNotFound,
  WorldGenerationJobErrorCode'
  #-}