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