{-# 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.ElasticSearch.Types.ReservedElasticsearchInstancePaymentOption
-- 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.ElasticSearch.Types.ReservedElasticsearchInstancePaymentOption
  ( ReservedElasticsearchInstancePaymentOption
      ( ..,
        ReservedElasticsearchInstancePaymentOption_ALL_UPFRONT,
        ReservedElasticsearchInstancePaymentOption_NO_UPFRONT,
        ReservedElasticsearchInstancePaymentOption_PARTIAL_UPFRONT
      ),
  )
where

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

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

pattern ReservedElasticsearchInstancePaymentOption_ALL_UPFRONT :: ReservedElasticsearchInstancePaymentOption
pattern $bReservedElasticsearchInstancePaymentOption_ALL_UPFRONT :: ReservedElasticsearchInstancePaymentOption
$mReservedElasticsearchInstancePaymentOption_ALL_UPFRONT :: forall {r}.
ReservedElasticsearchInstancePaymentOption
-> ((# #) -> r) -> ((# #) -> r) -> r
ReservedElasticsearchInstancePaymentOption_ALL_UPFRONT = ReservedElasticsearchInstancePaymentOption' "ALL_UPFRONT"

pattern ReservedElasticsearchInstancePaymentOption_NO_UPFRONT :: ReservedElasticsearchInstancePaymentOption
pattern $bReservedElasticsearchInstancePaymentOption_NO_UPFRONT :: ReservedElasticsearchInstancePaymentOption
$mReservedElasticsearchInstancePaymentOption_NO_UPFRONT :: forall {r}.
ReservedElasticsearchInstancePaymentOption
-> ((# #) -> r) -> ((# #) -> r) -> r
ReservedElasticsearchInstancePaymentOption_NO_UPFRONT = ReservedElasticsearchInstancePaymentOption' "NO_UPFRONT"

pattern ReservedElasticsearchInstancePaymentOption_PARTIAL_UPFRONT :: ReservedElasticsearchInstancePaymentOption
pattern $bReservedElasticsearchInstancePaymentOption_PARTIAL_UPFRONT :: ReservedElasticsearchInstancePaymentOption
$mReservedElasticsearchInstancePaymentOption_PARTIAL_UPFRONT :: forall {r}.
ReservedElasticsearchInstancePaymentOption
-> ((# #) -> r) -> ((# #) -> r) -> r
ReservedElasticsearchInstancePaymentOption_PARTIAL_UPFRONT = ReservedElasticsearchInstancePaymentOption' "PARTIAL_UPFRONT"

{-# COMPLETE
  ReservedElasticsearchInstancePaymentOption_ALL_UPFRONT,
  ReservedElasticsearchInstancePaymentOption_NO_UPFRONT,
  ReservedElasticsearchInstancePaymentOption_PARTIAL_UPFRONT,
  ReservedElasticsearchInstancePaymentOption'
  #-}