{-# 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.GuardDuty.Types.ThreatIntelSetStatus
-- 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.GuardDuty.Types.ThreatIntelSetStatus
  ( ThreatIntelSetStatus
      ( ..,
        ThreatIntelSetStatus_ACTIVATING,
        ThreatIntelSetStatus_ACTIVE,
        ThreatIntelSetStatus_DEACTIVATING,
        ThreatIntelSetStatus_DELETED,
        ThreatIntelSetStatus_DELETE_PENDING,
        ThreatIntelSetStatus_ERROR,
        ThreatIntelSetStatus_INACTIVE
      ),
  )
where

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

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

pattern ThreatIntelSetStatus_ACTIVATING :: ThreatIntelSetStatus
pattern $bThreatIntelSetStatus_ACTIVATING :: ThreatIntelSetStatus
$mThreatIntelSetStatus_ACTIVATING :: forall r. ThreatIntelSetStatus -> (Void# -> r) -> (Void# -> r) -> r
ThreatIntelSetStatus_ACTIVATING = ThreatIntelSetStatus' "ACTIVATING"

pattern ThreatIntelSetStatus_ACTIVE :: ThreatIntelSetStatus
pattern $bThreatIntelSetStatus_ACTIVE :: ThreatIntelSetStatus
$mThreatIntelSetStatus_ACTIVE :: forall r. ThreatIntelSetStatus -> (Void# -> r) -> (Void# -> r) -> r
ThreatIntelSetStatus_ACTIVE = ThreatIntelSetStatus' "ACTIVE"

pattern ThreatIntelSetStatus_DEACTIVATING :: ThreatIntelSetStatus
pattern $bThreatIntelSetStatus_DEACTIVATING :: ThreatIntelSetStatus
$mThreatIntelSetStatus_DEACTIVATING :: forall r. ThreatIntelSetStatus -> (Void# -> r) -> (Void# -> r) -> r
ThreatIntelSetStatus_DEACTIVATING = ThreatIntelSetStatus' "DEACTIVATING"

pattern ThreatIntelSetStatus_DELETED :: ThreatIntelSetStatus
pattern $bThreatIntelSetStatus_DELETED :: ThreatIntelSetStatus
$mThreatIntelSetStatus_DELETED :: forall r. ThreatIntelSetStatus -> (Void# -> r) -> (Void# -> r) -> r
ThreatIntelSetStatus_DELETED = ThreatIntelSetStatus' "DELETED"

pattern ThreatIntelSetStatus_DELETE_PENDING :: ThreatIntelSetStatus
pattern $bThreatIntelSetStatus_DELETE_PENDING :: ThreatIntelSetStatus
$mThreatIntelSetStatus_DELETE_PENDING :: forall r. ThreatIntelSetStatus -> (Void# -> r) -> (Void# -> r) -> r
ThreatIntelSetStatus_DELETE_PENDING = ThreatIntelSetStatus' "DELETE_PENDING"

pattern ThreatIntelSetStatus_ERROR :: ThreatIntelSetStatus
pattern $bThreatIntelSetStatus_ERROR :: ThreatIntelSetStatus
$mThreatIntelSetStatus_ERROR :: forall r. ThreatIntelSetStatus -> (Void# -> r) -> (Void# -> r) -> r
ThreatIntelSetStatus_ERROR = ThreatIntelSetStatus' "ERROR"

pattern ThreatIntelSetStatus_INACTIVE :: ThreatIntelSetStatus
pattern $bThreatIntelSetStatus_INACTIVE :: ThreatIntelSetStatus
$mThreatIntelSetStatus_INACTIVE :: forall r. ThreatIntelSetStatus -> (Void# -> r) -> (Void# -> r) -> r
ThreatIntelSetStatus_INACTIVE = ThreatIntelSetStatus' "INACTIVE"

{-# COMPLETE
  ThreatIntelSetStatus_ACTIVATING,
  ThreatIntelSetStatus_ACTIVE,
  ThreatIntelSetStatus_DEACTIVATING,
  ThreatIntelSetStatus_DELETED,
  ThreatIntelSetStatus_DELETE_PENDING,
  ThreatIntelSetStatus_ERROR,
  ThreatIntelSetStatus_INACTIVE,
  ThreatIntelSetStatus'
  #-}