{-# 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.AutoRenew
-- 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.AutoRenew
  ( AutoRenew
      ( ..,
        AutoRenew_DISABLED,
        AutoRenew_ENABLED
      ),
  )
where

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

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

pattern AutoRenew_DISABLED :: AutoRenew
pattern $bAutoRenew_DISABLED :: AutoRenew
$mAutoRenew_DISABLED :: forall {r}. AutoRenew -> ((# #) -> r) -> ((# #) -> r) -> r
AutoRenew_DISABLED = AutoRenew' "DISABLED"

pattern AutoRenew_ENABLED :: AutoRenew
pattern $bAutoRenew_ENABLED :: AutoRenew
$mAutoRenew_ENABLED :: forall {r}. AutoRenew -> ((# #) -> r) -> ((# #) -> r) -> r
AutoRenew_ENABLED = AutoRenew' "ENABLED"

{-# COMPLETE
  AutoRenew_DISABLED,
  AutoRenew_ENABLED,
  AutoRenew'
  #-}