{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.SESV2.Types.QueryErrorCode
( QueryErrorCode
( ..,
QueryErrorCode_ACCESS_DENIED,
QueryErrorCode_INTERNAL_FAILURE
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype QueryErrorCode = QueryErrorCode'
{ QueryErrorCode -> Text
fromQueryErrorCode ::
Data.Text
}
deriving stock
( Int -> QueryErrorCode -> ShowS
[QueryErrorCode] -> ShowS
QueryErrorCode -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [QueryErrorCode] -> ShowS
$cshowList :: [QueryErrorCode] -> ShowS
show :: QueryErrorCode -> String
$cshow :: QueryErrorCode -> String
showsPrec :: Int -> QueryErrorCode -> ShowS
$cshowsPrec :: Int -> QueryErrorCode -> ShowS
Prelude.Show,
ReadPrec [QueryErrorCode]
ReadPrec QueryErrorCode
Int -> ReadS QueryErrorCode
ReadS [QueryErrorCode]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [QueryErrorCode]
$creadListPrec :: ReadPrec [QueryErrorCode]
readPrec :: ReadPrec QueryErrorCode
$creadPrec :: ReadPrec QueryErrorCode
readList :: ReadS [QueryErrorCode]
$creadList :: ReadS [QueryErrorCode]
readsPrec :: Int -> ReadS QueryErrorCode
$creadsPrec :: Int -> ReadS QueryErrorCode
Prelude.Read,
QueryErrorCode -> QueryErrorCode -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: QueryErrorCode -> QueryErrorCode -> Bool
$c/= :: QueryErrorCode -> QueryErrorCode -> Bool
== :: QueryErrorCode -> QueryErrorCode -> Bool
$c== :: QueryErrorCode -> QueryErrorCode -> Bool
Prelude.Eq,
Eq QueryErrorCode
QueryErrorCode -> QueryErrorCode -> Bool
QueryErrorCode -> QueryErrorCode -> Ordering
QueryErrorCode -> QueryErrorCode -> QueryErrorCode
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 :: QueryErrorCode -> QueryErrorCode -> QueryErrorCode
$cmin :: QueryErrorCode -> QueryErrorCode -> QueryErrorCode
max :: QueryErrorCode -> QueryErrorCode -> QueryErrorCode
$cmax :: QueryErrorCode -> QueryErrorCode -> QueryErrorCode
>= :: QueryErrorCode -> QueryErrorCode -> Bool
$c>= :: QueryErrorCode -> QueryErrorCode -> Bool
> :: QueryErrorCode -> QueryErrorCode -> Bool
$c> :: QueryErrorCode -> QueryErrorCode -> Bool
<= :: QueryErrorCode -> QueryErrorCode -> Bool
$c<= :: QueryErrorCode -> QueryErrorCode -> Bool
< :: QueryErrorCode -> QueryErrorCode -> Bool
$c< :: QueryErrorCode -> QueryErrorCode -> Bool
compare :: QueryErrorCode -> QueryErrorCode -> Ordering
$ccompare :: QueryErrorCode -> QueryErrorCode -> Ordering
Prelude.Ord,
forall x. Rep QueryErrorCode x -> QueryErrorCode
forall x. QueryErrorCode -> Rep QueryErrorCode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep QueryErrorCode x -> QueryErrorCode
$cfrom :: forall x. QueryErrorCode -> Rep QueryErrorCode x
Prelude.Generic
)
deriving newtype
( Eq QueryErrorCode
Int -> QueryErrorCode -> Int
QueryErrorCode -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: QueryErrorCode -> Int
$chash :: QueryErrorCode -> Int
hashWithSalt :: Int -> QueryErrorCode -> Int
$chashWithSalt :: Int -> QueryErrorCode -> Int
Prelude.Hashable,
QueryErrorCode -> ()
forall a. (a -> ()) -> NFData a
rnf :: QueryErrorCode -> ()
$crnf :: QueryErrorCode -> ()
Prelude.NFData,
Text -> Either String QueryErrorCode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String QueryErrorCode
$cfromText :: Text -> Either String QueryErrorCode
Data.FromText,
QueryErrorCode -> Text
forall a. (a -> Text) -> ToText a
toText :: QueryErrorCode -> Text
$ctoText :: QueryErrorCode -> Text
Data.ToText,
QueryErrorCode -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: QueryErrorCode -> ByteString
$ctoBS :: QueryErrorCode -> ByteString
Data.ToByteString,
QueryErrorCode -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: QueryErrorCode -> ByteStringBuilder
$cbuild :: QueryErrorCode -> ByteStringBuilder
Data.ToLog,
HeaderName -> QueryErrorCode -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> QueryErrorCode -> [Header]
$ctoHeader :: HeaderName -> QueryErrorCode -> [Header]
Data.ToHeader,
QueryErrorCode -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: QueryErrorCode -> QueryString
$ctoQuery :: QueryErrorCode -> QueryString
Data.ToQuery,
Value -> Parser [QueryErrorCode]
Value -> Parser QueryErrorCode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [QueryErrorCode]
$cparseJSONList :: Value -> Parser [QueryErrorCode]
parseJSON :: Value -> Parser QueryErrorCode
$cparseJSON :: Value -> Parser QueryErrorCode
Data.FromJSON,
FromJSONKeyFunction [QueryErrorCode]
FromJSONKeyFunction QueryErrorCode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [QueryErrorCode]
$cfromJSONKeyList :: FromJSONKeyFunction [QueryErrorCode]
fromJSONKey :: FromJSONKeyFunction QueryErrorCode
$cfromJSONKey :: FromJSONKeyFunction QueryErrorCode
Data.FromJSONKey,
[QueryErrorCode] -> Encoding
[QueryErrorCode] -> Value
QueryErrorCode -> Encoding
QueryErrorCode -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [QueryErrorCode] -> Encoding
$ctoEncodingList :: [QueryErrorCode] -> Encoding
toJSONList :: [QueryErrorCode] -> Value
$ctoJSONList :: [QueryErrorCode] -> Value
toEncoding :: QueryErrorCode -> Encoding
$ctoEncoding :: QueryErrorCode -> Encoding
toJSON :: QueryErrorCode -> Value
$ctoJSON :: QueryErrorCode -> Value
Data.ToJSON,
ToJSONKeyFunction [QueryErrorCode]
ToJSONKeyFunction QueryErrorCode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [QueryErrorCode]
$ctoJSONKeyList :: ToJSONKeyFunction [QueryErrorCode]
toJSONKey :: ToJSONKeyFunction QueryErrorCode
$ctoJSONKey :: ToJSONKeyFunction QueryErrorCode
Data.ToJSONKey,
[Node] -> Either String QueryErrorCode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String QueryErrorCode
$cparseXML :: [Node] -> Either String QueryErrorCode
Data.FromXML,
QueryErrorCode -> XML
forall a. (a -> XML) -> ToXML a
toXML :: QueryErrorCode -> XML
$ctoXML :: QueryErrorCode -> XML
Data.ToXML
)
pattern QueryErrorCode_ACCESS_DENIED :: QueryErrorCode
pattern $bQueryErrorCode_ACCESS_DENIED :: QueryErrorCode
$mQueryErrorCode_ACCESS_DENIED :: forall {r}. QueryErrorCode -> ((# #) -> r) -> ((# #) -> r) -> r
QueryErrorCode_ACCESS_DENIED = QueryErrorCode' "ACCESS_DENIED"
pattern QueryErrorCode_INTERNAL_FAILURE :: QueryErrorCode
pattern $bQueryErrorCode_INTERNAL_FAILURE :: QueryErrorCode
$mQueryErrorCode_INTERNAL_FAILURE :: forall {r}. QueryErrorCode -> ((# #) -> r) -> ((# #) -> r) -> r
QueryErrorCode_INTERNAL_FAILURE = QueryErrorCode' "INTERNAL_FAILURE"
{-# COMPLETE
QueryErrorCode_ACCESS_DENIED,
QueryErrorCode_INTERNAL_FAILURE,
QueryErrorCode'
#-}