{-# 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.AppConfig.Types.GrowthType
-- 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.AppConfig.Types.GrowthType
  ( GrowthType
      ( ..,
        GrowthType_EXPONENTIAL,
        GrowthType_LINEAR
      ),
  )
where

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

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

pattern GrowthType_EXPONENTIAL :: GrowthType
pattern $bGrowthType_EXPONENTIAL :: GrowthType
$mGrowthType_EXPONENTIAL :: forall r. GrowthType -> (Void# -> r) -> (Void# -> r) -> r
GrowthType_EXPONENTIAL = GrowthType' "EXPONENTIAL"

pattern GrowthType_LINEAR :: GrowthType
pattern $bGrowthType_LINEAR :: GrowthType
$mGrowthType_LINEAR :: forall r. GrowthType -> (Void# -> r) -> (Void# -> r) -> r
GrowthType_LINEAR = GrowthType' "LINEAR"

{-# COMPLETE
  GrowthType_EXPONENTIAL,
  GrowthType_LINEAR,
  GrowthType'
  #-}