{-# 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-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.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.Prelude as Prelude

newtype IpSetStatus = IpSetStatus'
  { IpSetStatus -> Text
fromIpSetStatus ::
      Core.Text
  }
  deriving stock
    ( Int -> IpSetStatus -> ShowS
[IpSetStatus] -> ShowS
IpSetStatus -> String
(Int -> IpSetStatus -> ShowS)
-> (IpSetStatus -> String)
-> ([IpSetStatus] -> ShowS)
-> Show IpSetStatus
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]
(Int -> ReadS IpSetStatus)
-> ReadS [IpSetStatus]
-> ReadPrec IpSetStatus
-> ReadPrec [IpSetStatus]
-> Read 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
(IpSetStatus -> IpSetStatus -> Bool)
-> (IpSetStatus -> IpSetStatus -> Bool) -> Eq IpSetStatus
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
Eq IpSetStatus
-> (IpSetStatus -> IpSetStatus -> Ordering)
-> (IpSetStatus -> IpSetStatus -> Bool)
-> (IpSetStatus -> IpSetStatus -> Bool)
-> (IpSetStatus -> IpSetStatus -> Bool)
-> (IpSetStatus -> IpSetStatus -> Bool)
-> (IpSetStatus -> IpSetStatus -> IpSetStatus)
-> (IpSetStatus -> IpSetStatus -> IpSetStatus)
-> Ord 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
$cp1Ord :: Eq IpSetStatus
Prelude.Ord,
      (forall x. IpSetStatus -> Rep IpSetStatus x)
-> (forall x. Rep IpSetStatus x -> IpSetStatus)
-> Generic IpSetStatus
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
    ( Int -> IpSetStatus -> Int
IpSetStatus -> Int
(Int -> IpSetStatus -> Int)
-> (IpSetStatus -> Int) -> Hashable IpSetStatus
forall 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 -> ()
(IpSetStatus -> ()) -> NFData IpSetStatus
forall a. (a -> ()) -> NFData a
rnf :: IpSetStatus -> ()
$crnf :: IpSetStatus -> ()
Prelude.NFData,
      Text -> Either String IpSetStatus
(Text -> Either String IpSetStatus) -> FromText IpSetStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String IpSetStatus
$cfromText :: Text -> Either String IpSetStatus
Core.FromText,
      IpSetStatus -> Text
(IpSetStatus -> Text) -> ToText IpSetStatus
forall a. (a -> Text) -> ToText a
toText :: IpSetStatus -> Text
$ctoText :: IpSetStatus -> Text
Core.ToText,
      IpSetStatus -> ByteString
(IpSetStatus -> ByteString) -> ToByteString IpSetStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: IpSetStatus -> ByteString
$ctoBS :: IpSetStatus -> ByteString
Core.ToByteString,
      IpSetStatus -> ByteStringBuilder
(IpSetStatus -> ByteStringBuilder) -> ToLog IpSetStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: IpSetStatus -> ByteStringBuilder
$cbuild :: IpSetStatus -> ByteStringBuilder
Core.ToLog,
      HeaderName -> IpSetStatus -> [Header]
(HeaderName -> IpSetStatus -> [Header]) -> ToHeader IpSetStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> IpSetStatus -> [Header]
$ctoHeader :: HeaderName -> IpSetStatus -> [Header]
Core.ToHeader,
      IpSetStatus -> QueryString
(IpSetStatus -> QueryString) -> ToQuery IpSetStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: IpSetStatus -> QueryString
$ctoQuery :: IpSetStatus -> QueryString
Core.ToQuery,
      Value -> Parser [IpSetStatus]
Value -> Parser IpSetStatus
(Value -> Parser IpSetStatus)
-> (Value -> Parser [IpSetStatus]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [IpSetStatus]
FromJSONKeyFunction IpSetStatus
FromJSONKeyFunction IpSetStatus
-> FromJSONKeyFunction [IpSetStatus] -> FromJSONKey IpSetStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [IpSetStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [IpSetStatus]
fromJSONKey :: FromJSONKeyFunction IpSetStatus
$cfromJSONKey :: FromJSONKeyFunction IpSetStatus
Core.FromJSONKey,
      [IpSetStatus] -> Encoding
[IpSetStatus] -> Value
IpSetStatus -> Encoding
IpSetStatus -> Value
(IpSetStatus -> Value)
-> (IpSetStatus -> Encoding)
-> ([IpSetStatus] -> Value)
-> ([IpSetStatus] -> Encoding)
-> ToJSON IpSetStatus
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
Core.ToJSON,
      ToJSONKeyFunction [IpSetStatus]
ToJSONKeyFunction IpSetStatus
ToJSONKeyFunction IpSetStatus
-> ToJSONKeyFunction [IpSetStatus] -> ToJSONKey IpSetStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [IpSetStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [IpSetStatus]
toJSONKey :: ToJSONKeyFunction IpSetStatus
$ctoJSONKey :: ToJSONKeyFunction IpSetStatus
Core.ToJSONKey,
      [Node] -> Either String IpSetStatus
([Node] -> Either String IpSetStatus) -> FromXML IpSetStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String IpSetStatus
$cparseXML :: [Node] -> Either String IpSetStatus
Core.FromXML,
      IpSetStatus -> XML
(IpSetStatus -> XML) -> ToXML IpSetStatus
forall a. (a -> XML) -> ToXML a
toXML :: IpSetStatus -> XML
$ctoXML :: IpSetStatus -> XML
Core.ToXML
    )

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

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

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

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

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

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

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

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