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