{-# 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.OpenSearch.Types.ReservedInstancePaymentOption
-- 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.OpenSearch.Types.ReservedInstancePaymentOption
  ( ReservedInstancePaymentOption
      ( ..,
        ReservedInstancePaymentOption_ALL_UPFRONT,
        ReservedInstancePaymentOption_NO_UPFRONT,
        ReservedInstancePaymentOption_PARTIAL_UPFRONT
      ),
  )
where

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

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

pattern ReservedInstancePaymentOption_ALL_UPFRONT :: ReservedInstancePaymentOption
pattern $bReservedInstancePaymentOption_ALL_UPFRONT :: ReservedInstancePaymentOption
$mReservedInstancePaymentOption_ALL_UPFRONT :: forall {r}.
ReservedInstancePaymentOption -> ((# #) -> r) -> ((# #) -> r) -> r
ReservedInstancePaymentOption_ALL_UPFRONT = ReservedInstancePaymentOption' "ALL_UPFRONT"

pattern ReservedInstancePaymentOption_NO_UPFRONT :: ReservedInstancePaymentOption
pattern $bReservedInstancePaymentOption_NO_UPFRONT :: ReservedInstancePaymentOption
$mReservedInstancePaymentOption_NO_UPFRONT :: forall {r}.
ReservedInstancePaymentOption -> ((# #) -> r) -> ((# #) -> r) -> r
ReservedInstancePaymentOption_NO_UPFRONT = ReservedInstancePaymentOption' "NO_UPFRONT"

pattern ReservedInstancePaymentOption_PARTIAL_UPFRONT :: ReservedInstancePaymentOption
pattern $bReservedInstancePaymentOption_PARTIAL_UPFRONT :: ReservedInstancePaymentOption
$mReservedInstancePaymentOption_PARTIAL_UPFRONT :: forall {r}.
ReservedInstancePaymentOption -> ((# #) -> r) -> ((# #) -> r) -> r
ReservedInstancePaymentOption_PARTIAL_UPFRONT = ReservedInstancePaymentOption' "PARTIAL_UPFRONT"

{-# COMPLETE
  ReservedInstancePaymentOption_ALL_UPFRONT,
  ReservedInstancePaymentOption_NO_UPFRONT,
  ReservedInstancePaymentOption_PARTIAL_UPFRONT,
  ReservedInstancePaymentOption'
  #-}