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