{-# 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.SubscriptionState
-- 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.Shield.Types.SubscriptionState
  ( SubscriptionState
      ( ..,
        SubscriptionState_ACTIVE,
        SubscriptionState_INACTIVE
      ),
  )
where

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

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

pattern SubscriptionState_ACTIVE :: SubscriptionState
pattern $bSubscriptionState_ACTIVE :: SubscriptionState
$mSubscriptionState_ACTIVE :: forall {r}. SubscriptionState -> ((# #) -> r) -> ((# #) -> r) -> r
SubscriptionState_ACTIVE = SubscriptionState' "ACTIVE"

pattern SubscriptionState_INACTIVE :: SubscriptionState
pattern $bSubscriptionState_INACTIVE :: SubscriptionState
$mSubscriptionState_INACTIVE :: forall {r}. SubscriptionState -> ((# #) -> r) -> ((# #) -> r) -> r
SubscriptionState_INACTIVE = SubscriptionState' "INACTIVE"

{-# COMPLETE
  SubscriptionState_ACTIVE,
  SubscriptionState_INACTIVE,
  SubscriptionState'
  #-}