{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
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.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype BatchItemErrorCode = BatchItemErrorCode'
{ BatchItemErrorCode -> Text
fromBatchItemErrorCode ::
Data.Text
}
deriving stock
( Int -> BatchItemErrorCode -> ShowS
[BatchItemErrorCode] -> ShowS
BatchItemErrorCode -> String
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]
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
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
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
Prelude.Ord,
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
( Eq BatchItemErrorCode
Int -> BatchItemErrorCode -> Int
BatchItemErrorCode -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: BatchItemErrorCode -> ()
$crnf :: BatchItemErrorCode -> ()
Prelude.NFData,
Text -> Either String BatchItemErrorCode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String BatchItemErrorCode
$cfromText :: Text -> Either String BatchItemErrorCode
Data.FromText,
BatchItemErrorCode -> Text
forall a. (a -> Text) -> ToText a
toText :: BatchItemErrorCode -> Text
$ctoText :: BatchItemErrorCode -> Text
Data.ToText,
BatchItemErrorCode -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: BatchItemErrorCode -> ByteString
$ctoBS :: BatchItemErrorCode -> ByteString
Data.ToByteString,
BatchItemErrorCode -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: BatchItemErrorCode -> ByteStringBuilder
$cbuild :: BatchItemErrorCode -> ByteStringBuilder
Data.ToLog,
HeaderName -> BatchItemErrorCode -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> BatchItemErrorCode -> [Header]
$ctoHeader :: HeaderName -> BatchItemErrorCode -> [Header]
Data.ToHeader,
BatchItemErrorCode -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: BatchItemErrorCode -> QueryString
$ctoQuery :: BatchItemErrorCode -> QueryString
Data.ToQuery,
Value -> Parser [BatchItemErrorCode]
Value -> Parser 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
Data.FromJSON,
FromJSONKeyFunction [BatchItemErrorCode]
FromJSONKeyFunction BatchItemErrorCode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [BatchItemErrorCode]
$cfromJSONKeyList :: FromJSONKeyFunction [BatchItemErrorCode]
fromJSONKey :: FromJSONKeyFunction BatchItemErrorCode
$cfromJSONKey :: FromJSONKeyFunction BatchItemErrorCode
Data.FromJSONKey,
[BatchItemErrorCode] -> Encoding
[BatchItemErrorCode] -> Value
BatchItemErrorCode -> Encoding
BatchItemErrorCode -> Value
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
Data.ToJSON,
ToJSONKeyFunction [BatchItemErrorCode]
ToJSONKeyFunction BatchItemErrorCode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [BatchItemErrorCode]
$ctoJSONKeyList :: ToJSONKeyFunction [BatchItemErrorCode]
toJSONKey :: ToJSONKeyFunction BatchItemErrorCode
$ctoJSONKey :: ToJSONKeyFunction BatchItemErrorCode
Data.ToJSONKey,
[Node] -> Either String BatchItemErrorCode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String BatchItemErrorCode
$cparseXML :: [Node] -> Either String BatchItemErrorCode
Data.FromXML,
BatchItemErrorCode -> XML
forall a. (a -> XML) -> ToXML a
toXML :: BatchItemErrorCode -> XML
$ctoXML :: BatchItemErrorCode -> XML
Data.ToXML
)
pattern BatchItemErrorCode_AccessDeniedError :: BatchItemErrorCode
pattern $bBatchItemErrorCode_AccessDeniedError :: BatchItemErrorCode
$mBatchItemErrorCode_AccessDeniedError :: forall {r}. BatchItemErrorCode -> ((# #) -> r) -> ((# #) -> r) -> r
BatchItemErrorCode_AccessDeniedError = BatchItemErrorCode' "AccessDeniedError"
pattern BatchItemErrorCode_ConflictError :: BatchItemErrorCode
pattern $bBatchItemErrorCode_ConflictError :: BatchItemErrorCode
$mBatchItemErrorCode_ConflictError :: forall {r}. BatchItemErrorCode -> ((# #) -> r) -> ((# #) -> r) -> r
BatchItemErrorCode_ConflictError = BatchItemErrorCode' "ConflictError"
pattern BatchItemErrorCode_InternalServerError :: BatchItemErrorCode
pattern $bBatchItemErrorCode_InternalServerError :: BatchItemErrorCode
$mBatchItemErrorCode_InternalServerError :: forall {r}. BatchItemErrorCode -> ((# #) -> r) -> ((# #) -> r) -> r
BatchItemErrorCode_InternalServerError = BatchItemErrorCode' "InternalServerError"
pattern BatchItemErrorCode_ResourceNotFoundError :: BatchItemErrorCode
pattern $bBatchItemErrorCode_ResourceNotFoundError :: BatchItemErrorCode
$mBatchItemErrorCode_ResourceNotFoundError :: forall {r}. BatchItemErrorCode -> ((# #) -> r) -> ((# #) -> r) -> r
BatchItemErrorCode_ResourceNotFoundError = BatchItemErrorCode' "ResourceNotFoundError"
pattern BatchItemErrorCode_ThrottlingError :: BatchItemErrorCode
pattern $bBatchItemErrorCode_ThrottlingError :: BatchItemErrorCode
$mBatchItemErrorCode_ThrottlingError :: forall {r}. BatchItemErrorCode -> ((# #) -> r) -> ((# #) -> r) -> r
BatchItemErrorCode_ThrottlingError = BatchItemErrorCode' "ThrottlingError"
pattern BatchItemErrorCode_ValidationError :: BatchItemErrorCode
pattern $bBatchItemErrorCode_ValidationError :: BatchItemErrorCode
$mBatchItemErrorCode_ValidationError :: forall {r}. BatchItemErrorCode -> ((# #) -> r) -> ((# #) -> r) -> r
BatchItemErrorCode_ValidationError = BatchItemErrorCode' "ValidationError"
{-# COMPLETE
BatchItemErrorCode_AccessDeniedError,
BatchItemErrorCode_ConflictError,
BatchItemErrorCode_InternalServerError,
BatchItemErrorCode_ResourceNotFoundError,
BatchItemErrorCode_ThrottlingError,
BatchItemErrorCode_ValidationError,
BatchItemErrorCode'
#-}