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