{-# 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.Budgets.Types.AutoAdjustType
-- 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.Budgets.Types.AutoAdjustType
  ( AutoAdjustType
      ( ..,
        AutoAdjustType_FORECAST,
        AutoAdjustType_HISTORICAL
      ),
  )
where

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

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

pattern AutoAdjustType_FORECAST :: AutoAdjustType
pattern $bAutoAdjustType_FORECAST :: AutoAdjustType
$mAutoAdjustType_FORECAST :: forall {r}. AutoAdjustType -> ((# #) -> r) -> ((# #) -> r) -> r
AutoAdjustType_FORECAST = AutoAdjustType' "FORECAST"

pattern AutoAdjustType_HISTORICAL :: AutoAdjustType
pattern $bAutoAdjustType_HISTORICAL :: AutoAdjustType
$mAutoAdjustType_HISTORICAL :: forall {r}. AutoAdjustType -> ((# #) -> r) -> ((# #) -> r) -> r
AutoAdjustType_HISTORICAL = AutoAdjustType' "HISTORICAL"

{-# COMPLETE
  AutoAdjustType_FORECAST,
  AutoAdjustType_HISTORICAL,
  AutoAdjustType'
  #-}