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