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