{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.EMR.Types.OnDemandCapacityReservationPreference
( OnDemandCapacityReservationPreference
( ..,
OnDemandCapacityReservationPreference_None,
OnDemandCapacityReservationPreference_Open
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype OnDemandCapacityReservationPreference = OnDemandCapacityReservationPreference'
{ OnDemandCapacityReservationPreference -> Text
fromOnDemandCapacityReservationPreference ::
Core.Text
}
deriving stock
( Int -> OnDemandCapacityReservationPreference -> ShowS
[OnDemandCapacityReservationPreference] -> ShowS
OnDemandCapacityReservationPreference -> String
(Int -> OnDemandCapacityReservationPreference -> ShowS)
-> (OnDemandCapacityReservationPreference -> String)
-> ([OnDemandCapacityReservationPreference] -> ShowS)
-> Show OnDemandCapacityReservationPreference
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [OnDemandCapacityReservationPreference] -> ShowS
$cshowList :: [OnDemandCapacityReservationPreference] -> ShowS
show :: OnDemandCapacityReservationPreference -> String
$cshow :: OnDemandCapacityReservationPreference -> String
showsPrec :: Int -> OnDemandCapacityReservationPreference -> ShowS
$cshowsPrec :: Int -> OnDemandCapacityReservationPreference -> ShowS
Prelude.Show,
ReadPrec [OnDemandCapacityReservationPreference]
ReadPrec OnDemandCapacityReservationPreference
Int -> ReadS OnDemandCapacityReservationPreference
ReadS [OnDemandCapacityReservationPreference]
(Int -> ReadS OnDemandCapacityReservationPreference)
-> ReadS [OnDemandCapacityReservationPreference]
-> ReadPrec OnDemandCapacityReservationPreference
-> ReadPrec [OnDemandCapacityReservationPreference]
-> Read OnDemandCapacityReservationPreference
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [OnDemandCapacityReservationPreference]
$creadListPrec :: ReadPrec [OnDemandCapacityReservationPreference]
readPrec :: ReadPrec OnDemandCapacityReservationPreference
$creadPrec :: ReadPrec OnDemandCapacityReservationPreference
readList :: ReadS [OnDemandCapacityReservationPreference]
$creadList :: ReadS [OnDemandCapacityReservationPreference]
readsPrec :: Int -> ReadS OnDemandCapacityReservationPreference
$creadsPrec :: Int -> ReadS OnDemandCapacityReservationPreference
Prelude.Read,
OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference -> Bool
(OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference -> Bool)
-> (OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference -> Bool)
-> Eq OnDemandCapacityReservationPreference
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference -> Bool
$c/= :: OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference -> Bool
== :: OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference -> Bool
$c== :: OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference -> Bool
Prelude.Eq,
Eq OnDemandCapacityReservationPreference
Eq OnDemandCapacityReservationPreference
-> (OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference -> Ordering)
-> (OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference -> Bool)
-> (OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference -> Bool)
-> (OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference -> Bool)
-> (OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference -> Bool)
-> (OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference)
-> (OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference)
-> Ord OnDemandCapacityReservationPreference
OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference -> Bool
OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference -> Ordering
OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference
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 :: OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference
$cmin :: OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference
max :: OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference
$cmax :: OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference
>= :: OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference -> Bool
$c>= :: OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference -> Bool
> :: OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference -> Bool
$c> :: OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference -> Bool
<= :: OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference -> Bool
$c<= :: OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference -> Bool
< :: OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference -> Bool
$c< :: OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference -> Bool
compare :: OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference -> Ordering
$ccompare :: OnDemandCapacityReservationPreference
-> OnDemandCapacityReservationPreference -> Ordering
$cp1Ord :: Eq OnDemandCapacityReservationPreference
Prelude.Ord,
(forall x.
OnDemandCapacityReservationPreference
-> Rep OnDemandCapacityReservationPreference x)
-> (forall x.
Rep OnDemandCapacityReservationPreference x
-> OnDemandCapacityReservationPreference)
-> Generic OnDemandCapacityReservationPreference
forall x.
Rep OnDemandCapacityReservationPreference x
-> OnDemandCapacityReservationPreference
forall x.
OnDemandCapacityReservationPreference
-> Rep OnDemandCapacityReservationPreference x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep OnDemandCapacityReservationPreference x
-> OnDemandCapacityReservationPreference
$cfrom :: forall x.
OnDemandCapacityReservationPreference
-> Rep OnDemandCapacityReservationPreference x
Prelude.Generic
)
deriving newtype
( Int -> OnDemandCapacityReservationPreference -> Int
OnDemandCapacityReservationPreference -> Int
(Int -> OnDemandCapacityReservationPreference -> Int)
-> (OnDemandCapacityReservationPreference -> Int)
-> Hashable OnDemandCapacityReservationPreference
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: OnDemandCapacityReservationPreference -> Int
$chash :: OnDemandCapacityReservationPreference -> Int
hashWithSalt :: Int -> OnDemandCapacityReservationPreference -> Int
$chashWithSalt :: Int -> OnDemandCapacityReservationPreference -> Int
Prelude.Hashable,
OnDemandCapacityReservationPreference -> ()
(OnDemandCapacityReservationPreference -> ())
-> NFData OnDemandCapacityReservationPreference
forall a. (a -> ()) -> NFData a
rnf :: OnDemandCapacityReservationPreference -> ()
$crnf :: OnDemandCapacityReservationPreference -> ()
Prelude.NFData,
Text -> Either String OnDemandCapacityReservationPreference
(Text -> Either String OnDemandCapacityReservationPreference)
-> FromText OnDemandCapacityReservationPreference
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String OnDemandCapacityReservationPreference
$cfromText :: Text -> Either String OnDemandCapacityReservationPreference
Core.FromText,
OnDemandCapacityReservationPreference -> Text
(OnDemandCapacityReservationPreference -> Text)
-> ToText OnDemandCapacityReservationPreference
forall a. (a -> Text) -> ToText a
toText :: OnDemandCapacityReservationPreference -> Text
$ctoText :: OnDemandCapacityReservationPreference -> Text
Core.ToText,
OnDemandCapacityReservationPreference -> ByteString
(OnDemandCapacityReservationPreference -> ByteString)
-> ToByteString OnDemandCapacityReservationPreference
forall a. (a -> ByteString) -> ToByteString a
toBS :: OnDemandCapacityReservationPreference -> ByteString
$ctoBS :: OnDemandCapacityReservationPreference -> ByteString
Core.ToByteString,
OnDemandCapacityReservationPreference -> ByteStringBuilder
(OnDemandCapacityReservationPreference -> ByteStringBuilder)
-> ToLog OnDemandCapacityReservationPreference
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: OnDemandCapacityReservationPreference -> ByteStringBuilder
$cbuild :: OnDemandCapacityReservationPreference -> ByteStringBuilder
Core.ToLog,
HeaderName -> OnDemandCapacityReservationPreference -> [Header]
(HeaderName -> OnDemandCapacityReservationPreference -> [Header])
-> ToHeader OnDemandCapacityReservationPreference
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> OnDemandCapacityReservationPreference -> [Header]
$ctoHeader :: HeaderName -> OnDemandCapacityReservationPreference -> [Header]
Core.ToHeader,
OnDemandCapacityReservationPreference -> QueryString
(OnDemandCapacityReservationPreference -> QueryString)
-> ToQuery OnDemandCapacityReservationPreference
forall a. (a -> QueryString) -> ToQuery a
toQuery :: OnDemandCapacityReservationPreference -> QueryString
$ctoQuery :: OnDemandCapacityReservationPreference -> QueryString
Core.ToQuery,
Value -> Parser [OnDemandCapacityReservationPreference]
Value -> Parser OnDemandCapacityReservationPreference
(Value -> Parser OnDemandCapacityReservationPreference)
-> (Value -> Parser [OnDemandCapacityReservationPreference])
-> FromJSON OnDemandCapacityReservationPreference
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [OnDemandCapacityReservationPreference]
$cparseJSONList :: Value -> Parser [OnDemandCapacityReservationPreference]
parseJSON :: Value -> Parser OnDemandCapacityReservationPreference
$cparseJSON :: Value -> Parser OnDemandCapacityReservationPreference
Core.FromJSON,
FromJSONKeyFunction [OnDemandCapacityReservationPreference]
FromJSONKeyFunction OnDemandCapacityReservationPreference
FromJSONKeyFunction OnDemandCapacityReservationPreference
-> FromJSONKeyFunction [OnDemandCapacityReservationPreference]
-> FromJSONKey OnDemandCapacityReservationPreference
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [OnDemandCapacityReservationPreference]
$cfromJSONKeyList :: FromJSONKeyFunction [OnDemandCapacityReservationPreference]
fromJSONKey :: FromJSONKeyFunction OnDemandCapacityReservationPreference
$cfromJSONKey :: FromJSONKeyFunction OnDemandCapacityReservationPreference
Core.FromJSONKey,
[OnDemandCapacityReservationPreference] -> Encoding
[OnDemandCapacityReservationPreference] -> Value
OnDemandCapacityReservationPreference -> Encoding
OnDemandCapacityReservationPreference -> Value
(OnDemandCapacityReservationPreference -> Value)
-> (OnDemandCapacityReservationPreference -> Encoding)
-> ([OnDemandCapacityReservationPreference] -> Value)
-> ([OnDemandCapacityReservationPreference] -> Encoding)
-> ToJSON OnDemandCapacityReservationPreference
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [OnDemandCapacityReservationPreference] -> Encoding
$ctoEncodingList :: [OnDemandCapacityReservationPreference] -> Encoding
toJSONList :: [OnDemandCapacityReservationPreference] -> Value
$ctoJSONList :: [OnDemandCapacityReservationPreference] -> Value
toEncoding :: OnDemandCapacityReservationPreference -> Encoding
$ctoEncoding :: OnDemandCapacityReservationPreference -> Encoding
toJSON :: OnDemandCapacityReservationPreference -> Value
$ctoJSON :: OnDemandCapacityReservationPreference -> Value
Core.ToJSON,
ToJSONKeyFunction [OnDemandCapacityReservationPreference]
ToJSONKeyFunction OnDemandCapacityReservationPreference
ToJSONKeyFunction OnDemandCapacityReservationPreference
-> ToJSONKeyFunction [OnDemandCapacityReservationPreference]
-> ToJSONKey OnDemandCapacityReservationPreference
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [OnDemandCapacityReservationPreference]
$ctoJSONKeyList :: ToJSONKeyFunction [OnDemandCapacityReservationPreference]
toJSONKey :: ToJSONKeyFunction OnDemandCapacityReservationPreference
$ctoJSONKey :: ToJSONKeyFunction OnDemandCapacityReservationPreference
Core.ToJSONKey,
[Node] -> Either String OnDemandCapacityReservationPreference
([Node] -> Either String OnDemandCapacityReservationPreference)
-> FromXML OnDemandCapacityReservationPreference
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String OnDemandCapacityReservationPreference
$cparseXML :: [Node] -> Either String OnDemandCapacityReservationPreference
Core.FromXML,
OnDemandCapacityReservationPreference -> XML
(OnDemandCapacityReservationPreference -> XML)
-> ToXML OnDemandCapacityReservationPreference
forall a. (a -> XML) -> ToXML a
toXML :: OnDemandCapacityReservationPreference -> XML
$ctoXML :: OnDemandCapacityReservationPreference -> XML
Core.ToXML
)
pattern OnDemandCapacityReservationPreference_None :: OnDemandCapacityReservationPreference
pattern $bOnDemandCapacityReservationPreference_None :: OnDemandCapacityReservationPreference
$mOnDemandCapacityReservationPreference_None :: forall r.
OnDemandCapacityReservationPreference
-> (Void# -> r) -> (Void# -> r) -> r
OnDemandCapacityReservationPreference_None = OnDemandCapacityReservationPreference' "none"
pattern OnDemandCapacityReservationPreference_Open :: OnDemandCapacityReservationPreference
pattern $bOnDemandCapacityReservationPreference_Open :: OnDemandCapacityReservationPreference
$mOnDemandCapacityReservationPreference_Open :: forall r.
OnDemandCapacityReservationPreference
-> (Void# -> r) -> (Void# -> r) -> r
OnDemandCapacityReservationPreference_Open = OnDemandCapacityReservationPreference' "open"
{-# COMPLETE
OnDemandCapacityReservationPreference_None,
OnDemandCapacityReservationPreference_Open,
OnDemandCapacityReservationPreference'
#-}