{-# 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.IpSetStatus
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.GuardDuty.Types.IpSetStatus
  ( IpSetStatus
      ( ..,
        IpSetStatus_ACTIVATING,
        IpSetStatus_ACTIVE,
        IpSetStatus_DEACTIVATING,
        IpSetStatus_DELETED,
        IpSetStatus_DELETE_PENDING,
        IpSetStatus_ERROR,
        IpSetStatus_INACTIVE
      ),
  )
where

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

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

pattern IpSetStatus_ACTIVATING :: IpSetStatus
pattern $bIpSetStatus_ACTIVATING :: IpSetStatus
$mIpSetStatus_ACTIVATING :: forall {r}. IpSetStatus -> ((# #) -> r) -> ((# #) -> r) -> r
IpSetStatus_ACTIVATING = IpSetStatus' "ACTIVATING"

pattern IpSetStatus_ACTIVE :: IpSetStatus
pattern $bIpSetStatus_ACTIVE :: IpSetStatus
$mIpSetStatus_ACTIVE :: forall {r}. IpSetStatus -> ((# #) -> r) -> ((# #) -> r) -> r
IpSetStatus_ACTIVE = IpSetStatus' "ACTIVE"

pattern IpSetStatus_DEACTIVATING :: IpSetStatus
pattern $bIpSetStatus_DEACTIVATING :: IpSetStatus
$mIpSetStatus_DEACTIVATING :: forall {r}. IpSetStatus -> ((# #) -> r) -> ((# #) -> r) -> r
IpSetStatus_DEACTIVATING = IpSetStatus' "DEACTIVATING"

pattern IpSetStatus_DELETED :: IpSetStatus
pattern $bIpSetStatus_DELETED :: IpSetStatus
$mIpSetStatus_DELETED :: forall {r}. IpSetStatus -> ((# #) -> r) -> ((# #) -> r) -> r
IpSetStatus_DELETED = IpSetStatus' "DELETED"

pattern IpSetStatus_DELETE_PENDING :: IpSetStatus
pattern $bIpSetStatus_DELETE_PENDING :: IpSetStatus
$mIpSetStatus_DELETE_PENDING :: forall {r}. IpSetStatus -> ((# #) -> r) -> ((# #) -> r) -> r
IpSetStatus_DELETE_PENDING = IpSetStatus' "DELETE_PENDING"

pattern IpSetStatus_ERROR :: IpSetStatus
pattern $bIpSetStatus_ERROR :: IpSetStatus
$mIpSetStatus_ERROR :: forall {r}. IpSetStatus -> ((# #) -> r) -> ((# #) -> r) -> r
IpSetStatus_ERROR = IpSetStatus' "ERROR"

pattern IpSetStatus_INACTIVE :: IpSetStatus
pattern $bIpSetStatus_INACTIVE :: IpSetStatus
$mIpSetStatus_INACTIVE :: forall {r}. IpSetStatus -> ((# #) -> r) -> ((# #) -> r) -> r
IpSetStatus_INACTIVE = IpSetStatus' "INACTIVE"

{-# COMPLETE
  IpSetStatus_ACTIVATING,
  IpSetStatus_ACTIVE,
  IpSetStatus_DEACTIVATING,
  IpSetStatus_DELETED,
  IpSetStatus_DELETE_PENDING,
  IpSetStatus_ERROR,
  IpSetStatus_INACTIVE,
  IpSetStatus'
  #-}