{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.AutoScalingPlans.Types.PredictiveScalingMaxCapacityBehavior
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.AutoScalingPlans.Types.PredictiveScalingMaxCapacityBehavior
  ( PredictiveScalingMaxCapacityBehavior
      ( ..,
        PredictiveScalingMaxCapacityBehavior_SetForecastCapacityToMaxCapacity,
        PredictiveScalingMaxCapacityBehavior_SetMaxCapacityAboveForecastCapacity,
        PredictiveScalingMaxCapacityBehavior_SetMaxCapacityToForecastCapacity
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

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

pattern PredictiveScalingMaxCapacityBehavior_SetForecastCapacityToMaxCapacity :: PredictiveScalingMaxCapacityBehavior
pattern $bPredictiveScalingMaxCapacityBehavior_SetForecastCapacityToMaxCapacity :: PredictiveScalingMaxCapacityBehavior
$mPredictiveScalingMaxCapacityBehavior_SetForecastCapacityToMaxCapacity :: forall r.
PredictiveScalingMaxCapacityBehavior
-> (Void# -> r) -> (Void# -> r) -> r
PredictiveScalingMaxCapacityBehavior_SetForecastCapacityToMaxCapacity = PredictiveScalingMaxCapacityBehavior' "SetForecastCapacityToMaxCapacity"

pattern PredictiveScalingMaxCapacityBehavior_SetMaxCapacityAboveForecastCapacity :: PredictiveScalingMaxCapacityBehavior
pattern $bPredictiveScalingMaxCapacityBehavior_SetMaxCapacityAboveForecastCapacity :: PredictiveScalingMaxCapacityBehavior
$mPredictiveScalingMaxCapacityBehavior_SetMaxCapacityAboveForecastCapacity :: forall r.
PredictiveScalingMaxCapacityBehavior
-> (Void# -> r) -> (Void# -> r) -> r
PredictiveScalingMaxCapacityBehavior_SetMaxCapacityAboveForecastCapacity = PredictiveScalingMaxCapacityBehavior' "SetMaxCapacityAboveForecastCapacity"

pattern PredictiveScalingMaxCapacityBehavior_SetMaxCapacityToForecastCapacity :: PredictiveScalingMaxCapacityBehavior
pattern $bPredictiveScalingMaxCapacityBehavior_SetMaxCapacityToForecastCapacity :: PredictiveScalingMaxCapacityBehavior
$mPredictiveScalingMaxCapacityBehavior_SetMaxCapacityToForecastCapacity :: forall r.
PredictiveScalingMaxCapacityBehavior
-> (Void# -> r) -> (Void# -> r) -> r
PredictiveScalingMaxCapacityBehavior_SetMaxCapacityToForecastCapacity = PredictiveScalingMaxCapacityBehavior' "SetMaxCapacityToForecastCapacity"

{-# COMPLETE
  PredictiveScalingMaxCapacityBehavior_SetForecastCapacityToMaxCapacity,
  PredictiveScalingMaxCapacityBehavior_SetMaxCapacityAboveForecastCapacity,
  PredictiveScalingMaxCapacityBehavior_SetMaxCapacityToForecastCapacity,
  PredictiveScalingMaxCapacityBehavior'
  #-}