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