{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.SecurityHub.Types.WorkflowStatus
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SecurityHub.Types.WorkflowStatus
  ( WorkflowStatus
      ( ..,
        WorkflowStatus_NEW,
        WorkflowStatus_NOTIFIED,
        WorkflowStatus_RESOLVED,
        WorkflowStatus_SUPPRESSED
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

newtype WorkflowStatus = WorkflowStatus'
  { WorkflowStatus -> Text
fromWorkflowStatus ::
      Core.Text
  }
  deriving stock
    ( Int -> WorkflowStatus -> ShowS
[WorkflowStatus] -> ShowS
WorkflowStatus -> String
(Int -> WorkflowStatus -> ShowS)
-> (WorkflowStatus -> String)
-> ([WorkflowStatus] -> ShowS)
-> Show WorkflowStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [WorkflowStatus] -> ShowS
$cshowList :: [WorkflowStatus] -> ShowS
show :: WorkflowStatus -> String
$cshow :: WorkflowStatus -> String
showsPrec :: Int -> WorkflowStatus -> ShowS
$cshowsPrec :: Int -> WorkflowStatus -> ShowS
Prelude.Show,
      ReadPrec [WorkflowStatus]
ReadPrec WorkflowStatus
Int -> ReadS WorkflowStatus
ReadS [WorkflowStatus]
(Int -> ReadS WorkflowStatus)
-> ReadS [WorkflowStatus]
-> ReadPrec WorkflowStatus
-> ReadPrec [WorkflowStatus]
-> Read WorkflowStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [WorkflowStatus]
$creadListPrec :: ReadPrec [WorkflowStatus]
readPrec :: ReadPrec WorkflowStatus
$creadPrec :: ReadPrec WorkflowStatus
readList :: ReadS [WorkflowStatus]
$creadList :: ReadS [WorkflowStatus]
readsPrec :: Int -> ReadS WorkflowStatus
$creadsPrec :: Int -> ReadS WorkflowStatus
Prelude.Read,
      WorkflowStatus -> WorkflowStatus -> Bool
(WorkflowStatus -> WorkflowStatus -> Bool)
-> (WorkflowStatus -> WorkflowStatus -> Bool) -> Eq WorkflowStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: WorkflowStatus -> WorkflowStatus -> Bool
$c/= :: WorkflowStatus -> WorkflowStatus -> Bool
== :: WorkflowStatus -> WorkflowStatus -> Bool
$c== :: WorkflowStatus -> WorkflowStatus -> Bool
Prelude.Eq,
      Eq WorkflowStatus
Eq WorkflowStatus
-> (WorkflowStatus -> WorkflowStatus -> Ordering)
-> (WorkflowStatus -> WorkflowStatus -> Bool)
-> (WorkflowStatus -> WorkflowStatus -> Bool)
-> (WorkflowStatus -> WorkflowStatus -> Bool)
-> (WorkflowStatus -> WorkflowStatus -> Bool)
-> (WorkflowStatus -> WorkflowStatus -> WorkflowStatus)
-> (WorkflowStatus -> WorkflowStatus -> WorkflowStatus)
-> Ord WorkflowStatus
WorkflowStatus -> WorkflowStatus -> Bool
WorkflowStatus -> WorkflowStatus -> Ordering
WorkflowStatus -> WorkflowStatus -> WorkflowStatus
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 :: WorkflowStatus -> WorkflowStatus -> WorkflowStatus
$cmin :: WorkflowStatus -> WorkflowStatus -> WorkflowStatus
max :: WorkflowStatus -> WorkflowStatus -> WorkflowStatus
$cmax :: WorkflowStatus -> WorkflowStatus -> WorkflowStatus
>= :: WorkflowStatus -> WorkflowStatus -> Bool
$c>= :: WorkflowStatus -> WorkflowStatus -> Bool
> :: WorkflowStatus -> WorkflowStatus -> Bool
$c> :: WorkflowStatus -> WorkflowStatus -> Bool
<= :: WorkflowStatus -> WorkflowStatus -> Bool
$c<= :: WorkflowStatus -> WorkflowStatus -> Bool
< :: WorkflowStatus -> WorkflowStatus -> Bool
$c< :: WorkflowStatus -> WorkflowStatus -> Bool
compare :: WorkflowStatus -> WorkflowStatus -> Ordering
$ccompare :: WorkflowStatus -> WorkflowStatus -> Ordering
$cp1Ord :: Eq WorkflowStatus
Prelude.Ord,
      (forall x. WorkflowStatus -> Rep WorkflowStatus x)
-> (forall x. Rep WorkflowStatus x -> WorkflowStatus)
-> Generic WorkflowStatus
forall x. Rep WorkflowStatus x -> WorkflowStatus
forall x. WorkflowStatus -> Rep WorkflowStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep WorkflowStatus x -> WorkflowStatus
$cfrom :: forall x. WorkflowStatus -> Rep WorkflowStatus x
Prelude.Generic
    )
  deriving newtype
    ( Int -> WorkflowStatus -> Int
WorkflowStatus -> Int
(Int -> WorkflowStatus -> Int)
-> (WorkflowStatus -> Int) -> Hashable WorkflowStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: WorkflowStatus -> Int
$chash :: WorkflowStatus -> Int
hashWithSalt :: Int -> WorkflowStatus -> Int
$chashWithSalt :: Int -> WorkflowStatus -> Int
Prelude.Hashable,
      WorkflowStatus -> ()
(WorkflowStatus -> ()) -> NFData WorkflowStatus
forall a. (a -> ()) -> NFData a
rnf :: WorkflowStatus -> ()
$crnf :: WorkflowStatus -> ()
Prelude.NFData,
      Text -> Either String WorkflowStatus
(Text -> Either String WorkflowStatus) -> FromText WorkflowStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String WorkflowStatus
$cfromText :: Text -> Either String WorkflowStatus
Core.FromText,
      WorkflowStatus -> Text
(WorkflowStatus -> Text) -> ToText WorkflowStatus
forall a. (a -> Text) -> ToText a
toText :: WorkflowStatus -> Text
$ctoText :: WorkflowStatus -> Text
Core.ToText,
      WorkflowStatus -> ByteString
(WorkflowStatus -> ByteString) -> ToByteString WorkflowStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: WorkflowStatus -> ByteString
$ctoBS :: WorkflowStatus -> ByteString
Core.ToByteString,
      WorkflowStatus -> ByteStringBuilder
(WorkflowStatus -> ByteStringBuilder) -> ToLog WorkflowStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: WorkflowStatus -> ByteStringBuilder
$cbuild :: WorkflowStatus -> ByteStringBuilder
Core.ToLog,
      HeaderName -> WorkflowStatus -> [Header]
(HeaderName -> WorkflowStatus -> [Header])
-> ToHeader WorkflowStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> WorkflowStatus -> [Header]
$ctoHeader :: HeaderName -> WorkflowStatus -> [Header]
Core.ToHeader,
      WorkflowStatus -> QueryString
(WorkflowStatus -> QueryString) -> ToQuery WorkflowStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: WorkflowStatus -> QueryString
$ctoQuery :: WorkflowStatus -> QueryString
Core.ToQuery,
      Value -> Parser [WorkflowStatus]
Value -> Parser WorkflowStatus
(Value -> Parser WorkflowStatus)
-> (Value -> Parser [WorkflowStatus]) -> FromJSON WorkflowStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [WorkflowStatus]
$cparseJSONList :: Value -> Parser [WorkflowStatus]
parseJSON :: Value -> Parser WorkflowStatus
$cparseJSON :: Value -> Parser WorkflowStatus
Core.FromJSON,
      FromJSONKeyFunction [WorkflowStatus]
FromJSONKeyFunction WorkflowStatus
FromJSONKeyFunction WorkflowStatus
-> FromJSONKeyFunction [WorkflowStatus]
-> FromJSONKey WorkflowStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [WorkflowStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [WorkflowStatus]
fromJSONKey :: FromJSONKeyFunction WorkflowStatus
$cfromJSONKey :: FromJSONKeyFunction WorkflowStatus
Core.FromJSONKey,
      [WorkflowStatus] -> Encoding
[WorkflowStatus] -> Value
WorkflowStatus -> Encoding
WorkflowStatus -> Value
(WorkflowStatus -> Value)
-> (WorkflowStatus -> Encoding)
-> ([WorkflowStatus] -> Value)
-> ([WorkflowStatus] -> Encoding)
-> ToJSON WorkflowStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [WorkflowStatus] -> Encoding
$ctoEncodingList :: [WorkflowStatus] -> Encoding
toJSONList :: [WorkflowStatus] -> Value
$ctoJSONList :: [WorkflowStatus] -> Value
toEncoding :: WorkflowStatus -> Encoding
$ctoEncoding :: WorkflowStatus -> Encoding
toJSON :: WorkflowStatus -> Value
$ctoJSON :: WorkflowStatus -> Value
Core.ToJSON,
      ToJSONKeyFunction [WorkflowStatus]
ToJSONKeyFunction WorkflowStatus
ToJSONKeyFunction WorkflowStatus
-> ToJSONKeyFunction [WorkflowStatus] -> ToJSONKey WorkflowStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [WorkflowStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [WorkflowStatus]
toJSONKey :: ToJSONKeyFunction WorkflowStatus
$ctoJSONKey :: ToJSONKeyFunction WorkflowStatus
Core.ToJSONKey,
      [Node] -> Either String WorkflowStatus
([Node] -> Either String WorkflowStatus) -> FromXML WorkflowStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String WorkflowStatus
$cparseXML :: [Node] -> Either String WorkflowStatus
Core.FromXML,
      WorkflowStatus -> XML
(WorkflowStatus -> XML) -> ToXML WorkflowStatus
forall a. (a -> XML) -> ToXML a
toXML :: WorkflowStatus -> XML
$ctoXML :: WorkflowStatus -> XML
Core.ToXML
    )

pattern WorkflowStatus_NEW :: WorkflowStatus
pattern $bWorkflowStatus_NEW :: WorkflowStatus
$mWorkflowStatus_NEW :: forall r. WorkflowStatus -> (Void# -> r) -> (Void# -> r) -> r
WorkflowStatus_NEW = WorkflowStatus' "NEW"

pattern WorkflowStatus_NOTIFIED :: WorkflowStatus
pattern $bWorkflowStatus_NOTIFIED :: WorkflowStatus
$mWorkflowStatus_NOTIFIED :: forall r. WorkflowStatus -> (Void# -> r) -> (Void# -> r) -> r
WorkflowStatus_NOTIFIED = WorkflowStatus' "NOTIFIED"

pattern WorkflowStatus_RESOLVED :: WorkflowStatus
pattern $bWorkflowStatus_RESOLVED :: WorkflowStatus
$mWorkflowStatus_RESOLVED :: forall r. WorkflowStatus -> (Void# -> r) -> (Void# -> r) -> r
WorkflowStatus_RESOLVED = WorkflowStatus' "RESOLVED"

pattern WorkflowStatus_SUPPRESSED :: WorkflowStatus
pattern $bWorkflowStatus_SUPPRESSED :: WorkflowStatus
$mWorkflowStatus_SUPPRESSED :: forall r. WorkflowStatus -> (Void# -> r) -> (Void# -> r) -> r
WorkflowStatus_SUPPRESSED = WorkflowStatus' "SUPPRESSED"

{-# COMPLETE
  WorkflowStatus_NEW,
  WorkflowStatus_NOTIFIED,
  WorkflowStatus_RESOLVED,
  WorkflowStatus_SUPPRESSED,
  WorkflowStatus'
  #-}