{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

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

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

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

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

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

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

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

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