{-# 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.Shield.Types.ProactiveEngagementStatus
-- 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.Shield.Types.ProactiveEngagementStatus
  ( ProactiveEngagementStatus
      ( ..,
        ProactiveEngagementStatus_DISABLED,
        ProactiveEngagementStatus_ENABLED,
        ProactiveEngagementStatus_PENDING
      ),
  )
where

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

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

pattern ProactiveEngagementStatus_DISABLED :: ProactiveEngagementStatus
pattern $bProactiveEngagementStatus_DISABLED :: ProactiveEngagementStatus
$mProactiveEngagementStatus_DISABLED :: forall r.
ProactiveEngagementStatus -> (Void# -> r) -> (Void# -> r) -> r
ProactiveEngagementStatus_DISABLED = ProactiveEngagementStatus' "DISABLED"

pattern ProactiveEngagementStatus_ENABLED :: ProactiveEngagementStatus
pattern $bProactiveEngagementStatus_ENABLED :: ProactiveEngagementStatus
$mProactiveEngagementStatus_ENABLED :: forall r.
ProactiveEngagementStatus -> (Void# -> r) -> (Void# -> r) -> r
ProactiveEngagementStatus_ENABLED = ProactiveEngagementStatus' "ENABLED"

pattern ProactiveEngagementStatus_PENDING :: ProactiveEngagementStatus
pattern $bProactiveEngagementStatus_PENDING :: ProactiveEngagementStatus
$mProactiveEngagementStatus_PENDING :: forall r.
ProactiveEngagementStatus -> (Void# -> r) -> (Void# -> r) -> r
ProactiveEngagementStatus_PENDING = ProactiveEngagementStatus' "PENDING"

{-# COMPLETE
  ProactiveEngagementStatus_DISABLED,
  ProactiveEngagementStatus_ENABLED,
  ProactiveEngagementStatus_PENDING,
  ProactiveEngagementStatus'
  #-}