{-# 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.Location.Types.BatchItemErrorCode
-- 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.Location.Types.BatchItemErrorCode
  ( BatchItemErrorCode
      ( ..,
        BatchItemErrorCode_AccessDeniedError,
        BatchItemErrorCode_ConflictError,
        BatchItemErrorCode_InternalServerError,
        BatchItemErrorCode_ResourceNotFoundError,
        BatchItemErrorCode_ThrottlingError,
        BatchItemErrorCode_ValidationError
      ),
  )
where

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

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

pattern BatchItemErrorCode_AccessDeniedError :: BatchItemErrorCode
pattern $bBatchItemErrorCode_AccessDeniedError :: BatchItemErrorCode
$mBatchItemErrorCode_AccessDeniedError :: forall r. BatchItemErrorCode -> (Void# -> r) -> (Void# -> r) -> r
BatchItemErrorCode_AccessDeniedError = BatchItemErrorCode' "AccessDeniedError"

pattern BatchItemErrorCode_ConflictError :: BatchItemErrorCode
pattern $bBatchItemErrorCode_ConflictError :: BatchItemErrorCode
$mBatchItemErrorCode_ConflictError :: forall r. BatchItemErrorCode -> (Void# -> r) -> (Void# -> r) -> r
BatchItemErrorCode_ConflictError = BatchItemErrorCode' "ConflictError"

pattern BatchItemErrorCode_InternalServerError :: BatchItemErrorCode
pattern $bBatchItemErrorCode_InternalServerError :: BatchItemErrorCode
$mBatchItemErrorCode_InternalServerError :: forall r. BatchItemErrorCode -> (Void# -> r) -> (Void# -> r) -> r
BatchItemErrorCode_InternalServerError = BatchItemErrorCode' "InternalServerError"

pattern BatchItemErrorCode_ResourceNotFoundError :: BatchItemErrorCode
pattern $bBatchItemErrorCode_ResourceNotFoundError :: BatchItemErrorCode
$mBatchItemErrorCode_ResourceNotFoundError :: forall r. BatchItemErrorCode -> (Void# -> r) -> (Void# -> r) -> r
BatchItemErrorCode_ResourceNotFoundError = BatchItemErrorCode' "ResourceNotFoundError"

pattern BatchItemErrorCode_ThrottlingError :: BatchItemErrorCode
pattern $bBatchItemErrorCode_ThrottlingError :: BatchItemErrorCode
$mBatchItemErrorCode_ThrottlingError :: forall r. BatchItemErrorCode -> (Void# -> r) -> (Void# -> r) -> r
BatchItemErrorCode_ThrottlingError = BatchItemErrorCode' "ThrottlingError"

pattern BatchItemErrorCode_ValidationError :: BatchItemErrorCode
pattern $bBatchItemErrorCode_ValidationError :: BatchItemErrorCode
$mBatchItemErrorCode_ValidationError :: forall r. BatchItemErrorCode -> (Void# -> r) -> (Void# -> r) -> r
BatchItemErrorCode_ValidationError = BatchItemErrorCode' "ValidationError"

{-# COMPLETE
  BatchItemErrorCode_AccessDeniedError,
  BatchItemErrorCode_ConflictError,
  BatchItemErrorCode_InternalServerError,
  BatchItemErrorCode_ResourceNotFoundError,
  BatchItemErrorCode_ThrottlingError,
  BatchItemErrorCode_ValidationError,
  BatchItemErrorCode'
  #-}