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

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

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

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

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

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

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