{-# 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.APIGateway.Types.CacheClusterSize
-- 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.APIGateway.Types.CacheClusterSize
  ( CacheClusterSize
      ( ..,
        CacheClusterSize_
      ),
  )
where

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

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

pattern CacheClusterSize_ :: CacheClusterSize
pattern $bCacheClusterSize_ :: CacheClusterSize
$mCacheClusterSize_ :: forall r. CacheClusterSize -> (Void# -> r) -> (Void# -> r) -> r
CacheClusterSize_ = CacheClusterSize' "28.4"

{-# COMPLETE
  CacheClusterSize_,
  CacheClusterSize'
  #-}