{-# 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.ApplicationAutoScaling.Types.AdjustmentType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.ApplicationAutoScaling.Types.AdjustmentType
  ( AdjustmentType
      ( ..,
        AdjustmentType_ChangeInCapacity,
        AdjustmentType_ExactCapacity,
        AdjustmentType_PercentChangeInCapacity
      ),
  )
where

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

newtype AdjustmentType = AdjustmentType'
  { AdjustmentType -> Text
fromAdjustmentType ::
      Data.Text
  }
  deriving stock
    ( Int -> AdjustmentType -> ShowS
[AdjustmentType] -> ShowS
AdjustmentType -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq AdjustmentType
Int -> AdjustmentType -> Int
AdjustmentType -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: AdjustmentType -> ()
$crnf :: AdjustmentType -> ()
Prelude.NFData,
      Text -> Either String AdjustmentType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AdjustmentType
$cfromText :: Text -> Either String AdjustmentType
Data.FromText,
      AdjustmentType -> Text
forall a. (a -> Text) -> ToText a
toText :: AdjustmentType -> Text
$ctoText :: AdjustmentType -> Text
Data.ToText,
      AdjustmentType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: AdjustmentType -> ByteString
$ctoBS :: AdjustmentType -> ByteString
Data.ToByteString,
      AdjustmentType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AdjustmentType -> ByteStringBuilder
$cbuild :: AdjustmentType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> AdjustmentType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AdjustmentType -> [Header]
$ctoHeader :: HeaderName -> AdjustmentType -> [Header]
Data.ToHeader,
      AdjustmentType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AdjustmentType -> QueryString
$ctoQuery :: AdjustmentType -> QueryString
Data.ToQuery,
      Value -> Parser [AdjustmentType]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [AdjustmentType]
FromJSONKeyFunction AdjustmentType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AdjustmentType]
$cfromJSONKeyList :: FromJSONKeyFunction [AdjustmentType]
fromJSONKey :: FromJSONKeyFunction AdjustmentType
$cfromJSONKey :: FromJSONKeyFunction AdjustmentType
Data.FromJSONKey,
      [AdjustmentType] -> Encoding
[AdjustmentType] -> Value
AdjustmentType -> Encoding
AdjustmentType -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [AdjustmentType]
ToJSONKeyFunction AdjustmentType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AdjustmentType]
$ctoJSONKeyList :: ToJSONKeyFunction [AdjustmentType]
toJSONKey :: ToJSONKeyFunction AdjustmentType
$ctoJSONKey :: ToJSONKeyFunction AdjustmentType
Data.ToJSONKey,
      [Node] -> Either String AdjustmentType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AdjustmentType
$cparseXML :: [Node] -> Either String AdjustmentType
Data.FromXML,
      AdjustmentType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: AdjustmentType -> XML
$ctoXML :: AdjustmentType -> XML
Data.ToXML
    )

pattern AdjustmentType_ChangeInCapacity :: AdjustmentType
pattern $bAdjustmentType_ChangeInCapacity :: AdjustmentType
$mAdjustmentType_ChangeInCapacity :: forall {r}. AdjustmentType -> ((# #) -> r) -> ((# #) -> r) -> r
AdjustmentType_ChangeInCapacity = AdjustmentType' "ChangeInCapacity"

pattern AdjustmentType_ExactCapacity :: AdjustmentType
pattern $bAdjustmentType_ExactCapacity :: AdjustmentType
$mAdjustmentType_ExactCapacity :: forall {r}. AdjustmentType -> ((# #) -> r) -> ((# #) -> r) -> r
AdjustmentType_ExactCapacity = AdjustmentType' "ExactCapacity"

pattern AdjustmentType_PercentChangeInCapacity :: AdjustmentType
pattern $bAdjustmentType_PercentChangeInCapacity :: AdjustmentType
$mAdjustmentType_PercentChangeInCapacity :: forall {r}. AdjustmentType -> ((# #) -> r) -> ((# #) -> r) -> r
AdjustmentType_PercentChangeInCapacity = AdjustmentType' "PercentChangeInCapacity"

{-# COMPLETE
  AdjustmentType_ChangeInCapacity,
  AdjustmentType_ExactCapacity,
  AdjustmentType_PercentChangeInCapacity,
  AdjustmentType'
  #-}