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