{-# 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.WorkflowState
( WorkflowState
( ..,
WorkflowState_ASSIGNED,
WorkflowState_DEFERRED,
WorkflowState_IN_PROGRESS,
WorkflowState_NEW,
WorkflowState_RESOLVED
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype WorkflowState = WorkflowState'
{ WorkflowState -> Text
fromWorkflowState ::
Core.Text
}
deriving stock
( Int -> WorkflowState -> ShowS
[WorkflowState] -> ShowS
WorkflowState -> String
(Int -> WorkflowState -> ShowS)
-> (WorkflowState -> String)
-> ([WorkflowState] -> ShowS)
-> Show WorkflowState
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [WorkflowState] -> ShowS
$cshowList :: [WorkflowState] -> ShowS
show :: WorkflowState -> String
$cshow :: WorkflowState -> String
showsPrec :: Int -> WorkflowState -> ShowS
$cshowsPrec :: Int -> WorkflowState -> ShowS
Prelude.Show,
ReadPrec [WorkflowState]
ReadPrec WorkflowState
Int -> ReadS WorkflowState
ReadS [WorkflowState]
(Int -> ReadS WorkflowState)
-> ReadS [WorkflowState]
-> ReadPrec WorkflowState
-> ReadPrec [WorkflowState]
-> Read WorkflowState
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [WorkflowState]
$creadListPrec :: ReadPrec [WorkflowState]
readPrec :: ReadPrec WorkflowState
$creadPrec :: ReadPrec WorkflowState
readList :: ReadS [WorkflowState]
$creadList :: ReadS [WorkflowState]
readsPrec :: Int -> ReadS WorkflowState
$creadsPrec :: Int -> ReadS WorkflowState
Prelude.Read,
WorkflowState -> WorkflowState -> Bool
(WorkflowState -> WorkflowState -> Bool)
-> (WorkflowState -> WorkflowState -> Bool) -> Eq WorkflowState
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: WorkflowState -> WorkflowState -> Bool
$c/= :: WorkflowState -> WorkflowState -> Bool
== :: WorkflowState -> WorkflowState -> Bool
$c== :: WorkflowState -> WorkflowState -> Bool
Prelude.Eq,
Eq WorkflowState
Eq WorkflowState
-> (WorkflowState -> WorkflowState -> Ordering)
-> (WorkflowState -> WorkflowState -> Bool)
-> (WorkflowState -> WorkflowState -> Bool)
-> (WorkflowState -> WorkflowState -> Bool)
-> (WorkflowState -> WorkflowState -> Bool)
-> (WorkflowState -> WorkflowState -> WorkflowState)
-> (WorkflowState -> WorkflowState -> WorkflowState)
-> Ord WorkflowState
WorkflowState -> WorkflowState -> Bool
WorkflowState -> WorkflowState -> Ordering
WorkflowState -> WorkflowState -> WorkflowState
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 :: WorkflowState -> WorkflowState -> WorkflowState
$cmin :: WorkflowState -> WorkflowState -> WorkflowState
max :: WorkflowState -> WorkflowState -> WorkflowState
$cmax :: WorkflowState -> WorkflowState -> WorkflowState
>= :: WorkflowState -> WorkflowState -> Bool
$c>= :: WorkflowState -> WorkflowState -> Bool
> :: WorkflowState -> WorkflowState -> Bool
$c> :: WorkflowState -> WorkflowState -> Bool
<= :: WorkflowState -> WorkflowState -> Bool
$c<= :: WorkflowState -> WorkflowState -> Bool
< :: WorkflowState -> WorkflowState -> Bool
$c< :: WorkflowState -> WorkflowState -> Bool
compare :: WorkflowState -> WorkflowState -> Ordering
$ccompare :: WorkflowState -> WorkflowState -> Ordering
$cp1Ord :: Eq WorkflowState
Prelude.Ord,
(forall x. WorkflowState -> Rep WorkflowState x)
-> (forall x. Rep WorkflowState x -> WorkflowState)
-> Generic WorkflowState
forall x. Rep WorkflowState x -> WorkflowState
forall x. WorkflowState -> Rep WorkflowState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep WorkflowState x -> WorkflowState
$cfrom :: forall x. WorkflowState -> Rep WorkflowState x
Prelude.Generic
)
deriving newtype
( Int -> WorkflowState -> Int
WorkflowState -> Int
(Int -> WorkflowState -> Int)
-> (WorkflowState -> Int) -> Hashable WorkflowState
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: WorkflowState -> Int
$chash :: WorkflowState -> Int
hashWithSalt :: Int -> WorkflowState -> Int
$chashWithSalt :: Int -> WorkflowState -> Int
Prelude.Hashable,
WorkflowState -> ()
(WorkflowState -> ()) -> NFData WorkflowState
forall a. (a -> ()) -> NFData a
rnf :: WorkflowState -> ()
$crnf :: WorkflowState -> ()
Prelude.NFData,
Text -> Either String WorkflowState
(Text -> Either String WorkflowState) -> FromText WorkflowState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String WorkflowState
$cfromText :: Text -> Either String WorkflowState
Core.FromText,
WorkflowState -> Text
(WorkflowState -> Text) -> ToText WorkflowState
forall a. (a -> Text) -> ToText a
toText :: WorkflowState -> Text
$ctoText :: WorkflowState -> Text
Core.ToText,
WorkflowState -> ByteString
(WorkflowState -> ByteString) -> ToByteString WorkflowState
forall a. (a -> ByteString) -> ToByteString a
toBS :: WorkflowState -> ByteString
$ctoBS :: WorkflowState -> ByteString
Core.ToByteString,
WorkflowState -> ByteStringBuilder
(WorkflowState -> ByteStringBuilder) -> ToLog WorkflowState
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: WorkflowState -> ByteStringBuilder
$cbuild :: WorkflowState -> ByteStringBuilder
Core.ToLog,
HeaderName -> WorkflowState -> [Header]
(HeaderName -> WorkflowState -> [Header]) -> ToHeader WorkflowState
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> WorkflowState -> [Header]
$ctoHeader :: HeaderName -> WorkflowState -> [Header]
Core.ToHeader,
WorkflowState -> QueryString
(WorkflowState -> QueryString) -> ToQuery WorkflowState
forall a. (a -> QueryString) -> ToQuery a
toQuery :: WorkflowState -> QueryString
$ctoQuery :: WorkflowState -> QueryString
Core.ToQuery,
Value -> Parser [WorkflowState]
Value -> Parser WorkflowState
(Value -> Parser WorkflowState)
-> (Value -> Parser [WorkflowState]) -> FromJSON WorkflowState
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [WorkflowState]
$cparseJSONList :: Value -> Parser [WorkflowState]
parseJSON :: Value -> Parser WorkflowState
$cparseJSON :: Value -> Parser WorkflowState
Core.FromJSON,
FromJSONKeyFunction [WorkflowState]
FromJSONKeyFunction WorkflowState
FromJSONKeyFunction WorkflowState
-> FromJSONKeyFunction [WorkflowState] -> FromJSONKey WorkflowState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [WorkflowState]
$cfromJSONKeyList :: FromJSONKeyFunction [WorkflowState]
fromJSONKey :: FromJSONKeyFunction WorkflowState
$cfromJSONKey :: FromJSONKeyFunction WorkflowState
Core.FromJSONKey,
[WorkflowState] -> Encoding
[WorkflowState] -> Value
WorkflowState -> Encoding
WorkflowState -> Value
(WorkflowState -> Value)
-> (WorkflowState -> Encoding)
-> ([WorkflowState] -> Value)
-> ([WorkflowState] -> Encoding)
-> ToJSON WorkflowState
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [WorkflowState] -> Encoding
$ctoEncodingList :: [WorkflowState] -> Encoding
toJSONList :: [WorkflowState] -> Value
$ctoJSONList :: [WorkflowState] -> Value
toEncoding :: WorkflowState -> Encoding
$ctoEncoding :: WorkflowState -> Encoding
toJSON :: WorkflowState -> Value
$ctoJSON :: WorkflowState -> Value
Core.ToJSON,
ToJSONKeyFunction [WorkflowState]
ToJSONKeyFunction WorkflowState
ToJSONKeyFunction WorkflowState
-> ToJSONKeyFunction [WorkflowState] -> ToJSONKey WorkflowState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [WorkflowState]
$ctoJSONKeyList :: ToJSONKeyFunction [WorkflowState]
toJSONKey :: ToJSONKeyFunction WorkflowState
$ctoJSONKey :: ToJSONKeyFunction WorkflowState
Core.ToJSONKey,
[Node] -> Either String WorkflowState
([Node] -> Either String WorkflowState) -> FromXML WorkflowState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String WorkflowState
$cparseXML :: [Node] -> Either String WorkflowState
Core.FromXML,
WorkflowState -> XML
(WorkflowState -> XML) -> ToXML WorkflowState
forall a. (a -> XML) -> ToXML a
toXML :: WorkflowState -> XML
$ctoXML :: WorkflowState -> XML
Core.ToXML
)
pattern WorkflowState_ASSIGNED :: WorkflowState
pattern $bWorkflowState_ASSIGNED :: WorkflowState
$mWorkflowState_ASSIGNED :: forall r. WorkflowState -> (Void# -> r) -> (Void# -> r) -> r
WorkflowState_ASSIGNED = WorkflowState' "ASSIGNED"
pattern WorkflowState_DEFERRED :: WorkflowState
pattern $bWorkflowState_DEFERRED :: WorkflowState
$mWorkflowState_DEFERRED :: forall r. WorkflowState -> (Void# -> r) -> (Void# -> r) -> r
WorkflowState_DEFERRED = WorkflowState' "DEFERRED"
pattern WorkflowState_IN_PROGRESS :: WorkflowState
pattern $bWorkflowState_IN_PROGRESS :: WorkflowState
$mWorkflowState_IN_PROGRESS :: forall r. WorkflowState -> (Void# -> r) -> (Void# -> r) -> r
WorkflowState_IN_PROGRESS = WorkflowState' "IN_PROGRESS"
pattern WorkflowState_NEW :: WorkflowState
pattern $bWorkflowState_NEW :: WorkflowState
$mWorkflowState_NEW :: forall r. WorkflowState -> (Void# -> r) -> (Void# -> r) -> r
WorkflowState_NEW = WorkflowState' "NEW"
pattern WorkflowState_RESOLVED :: WorkflowState
pattern $bWorkflowState_RESOLVED :: WorkflowState
$mWorkflowState_RESOLVED :: forall r. WorkflowState -> (Void# -> r) -> (Void# -> r) -> r
WorkflowState_RESOLVED = WorkflowState' "RESOLVED"
{-# COMPLETE
WorkflowState_ASSIGNED,
WorkflowState_DEFERRED,
WorkflowState_IN_PROGRESS,
WorkflowState_NEW,
WorkflowState_RESOLVED,
WorkflowState'
#-}