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

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

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

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

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

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