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