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