{-# 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.MediaLive.Types.ReservationAutomaticRenewal
-- 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.MediaLive.Types.ReservationAutomaticRenewal
  ( ReservationAutomaticRenewal
      ( ..,
        ReservationAutomaticRenewal_DISABLED,
        ReservationAutomaticRenewal_ENABLED,
        ReservationAutomaticRenewal_UNAVAILABLE
      ),
  )
where

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

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

pattern ReservationAutomaticRenewal_DISABLED :: ReservationAutomaticRenewal
pattern $bReservationAutomaticRenewal_DISABLED :: ReservationAutomaticRenewal
$mReservationAutomaticRenewal_DISABLED :: forall {r}.
ReservationAutomaticRenewal -> ((# #) -> r) -> ((# #) -> r) -> r
ReservationAutomaticRenewal_DISABLED = ReservationAutomaticRenewal' "DISABLED"

pattern ReservationAutomaticRenewal_ENABLED :: ReservationAutomaticRenewal
pattern $bReservationAutomaticRenewal_ENABLED :: ReservationAutomaticRenewal
$mReservationAutomaticRenewal_ENABLED :: forall {r}.
ReservationAutomaticRenewal -> ((# #) -> r) -> ((# #) -> r) -> r
ReservationAutomaticRenewal_ENABLED = ReservationAutomaticRenewal' "ENABLED"

pattern ReservationAutomaticRenewal_UNAVAILABLE :: ReservationAutomaticRenewal
pattern $bReservationAutomaticRenewal_UNAVAILABLE :: ReservationAutomaticRenewal
$mReservationAutomaticRenewal_UNAVAILABLE :: forall {r}.
ReservationAutomaticRenewal -> ((# #) -> r) -> ((# #) -> r) -> r
ReservationAutomaticRenewal_UNAVAILABLE = ReservationAutomaticRenewal' "UNAVAILABLE"

{-# COMPLETE
  ReservationAutomaticRenewal_DISABLED,
  ReservationAutomaticRenewal_ENABLED,
  ReservationAutomaticRenewal_UNAVAILABLE,
  ReservationAutomaticRenewal'
  #-}