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