{-# 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.WorldExportJobErrorCode
-- 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.WorldExportJobErrorCode
  ( WorldExportJobErrorCode
      ( ..,
        WorldExportJobErrorCode_AccessDenied,
        WorldExportJobErrorCode_InternalServiceError,
        WorldExportJobErrorCode_InvalidInput,
        WorldExportJobErrorCode_LimitExceeded,
        WorldExportJobErrorCode_RequestThrottled,
        WorldExportJobErrorCode_ResourceNotFound
      ),
  )
where

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

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

pattern WorldExportJobErrorCode_AccessDenied :: WorldExportJobErrorCode
pattern $bWorldExportJobErrorCode_AccessDenied :: WorldExportJobErrorCode
$mWorldExportJobErrorCode_AccessDenied :: forall r.
WorldExportJobErrorCode -> (Void# -> r) -> (Void# -> r) -> r
WorldExportJobErrorCode_AccessDenied = WorldExportJobErrorCode' "AccessDenied"

pattern WorldExportJobErrorCode_InternalServiceError :: WorldExportJobErrorCode
pattern $bWorldExportJobErrorCode_InternalServiceError :: WorldExportJobErrorCode
$mWorldExportJobErrorCode_InternalServiceError :: forall r.
WorldExportJobErrorCode -> (Void# -> r) -> (Void# -> r) -> r
WorldExportJobErrorCode_InternalServiceError = WorldExportJobErrorCode' "InternalServiceError"

pattern WorldExportJobErrorCode_InvalidInput :: WorldExportJobErrorCode
pattern $bWorldExportJobErrorCode_InvalidInput :: WorldExportJobErrorCode
$mWorldExportJobErrorCode_InvalidInput :: forall r.
WorldExportJobErrorCode -> (Void# -> r) -> (Void# -> r) -> r
WorldExportJobErrorCode_InvalidInput = WorldExportJobErrorCode' "InvalidInput"

pattern WorldExportJobErrorCode_LimitExceeded :: WorldExportJobErrorCode
pattern $bWorldExportJobErrorCode_LimitExceeded :: WorldExportJobErrorCode
$mWorldExportJobErrorCode_LimitExceeded :: forall r.
WorldExportJobErrorCode -> (Void# -> r) -> (Void# -> r) -> r
WorldExportJobErrorCode_LimitExceeded = WorldExportJobErrorCode' "LimitExceeded"

pattern WorldExportJobErrorCode_RequestThrottled :: WorldExportJobErrorCode
pattern $bWorldExportJobErrorCode_RequestThrottled :: WorldExportJobErrorCode
$mWorldExportJobErrorCode_RequestThrottled :: forall r.
WorldExportJobErrorCode -> (Void# -> r) -> (Void# -> r) -> r
WorldExportJobErrorCode_RequestThrottled = WorldExportJobErrorCode' "RequestThrottled"

pattern WorldExportJobErrorCode_ResourceNotFound :: WorldExportJobErrorCode
pattern $bWorldExportJobErrorCode_ResourceNotFound :: WorldExportJobErrorCode
$mWorldExportJobErrorCode_ResourceNotFound :: forall r.
WorldExportJobErrorCode -> (Void# -> r) -> (Void# -> r) -> r
WorldExportJobErrorCode_ResourceNotFound = WorldExportJobErrorCode' "ResourceNotFound"

{-# COMPLETE
  WorldExportJobErrorCode_AccessDenied,
  WorldExportJobErrorCode_InternalServiceError,
  WorldExportJobErrorCode_InvalidInput,
  WorldExportJobErrorCode_LimitExceeded,
  WorldExportJobErrorCode_RequestThrottled,
  WorldExportJobErrorCode_ResourceNotFound,
  WorldExportJobErrorCode'
  #-}