{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.StorageGateway.Types.GatewayCapacity
( GatewayCapacity
( ..,
GatewayCapacity_Large,
GatewayCapacity_Medium,
GatewayCapacity_Small
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype GatewayCapacity = GatewayCapacity'
{ GatewayCapacity -> Text
fromGatewayCapacity ::
Core.Text
}
deriving stock
( Int -> GatewayCapacity -> ShowS
[GatewayCapacity] -> ShowS
GatewayCapacity -> String
(Int -> GatewayCapacity -> ShowS)
-> (GatewayCapacity -> String)
-> ([GatewayCapacity] -> ShowS)
-> Show GatewayCapacity
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GatewayCapacity] -> ShowS
$cshowList :: [GatewayCapacity] -> ShowS
show :: GatewayCapacity -> String
$cshow :: GatewayCapacity -> String
showsPrec :: Int -> GatewayCapacity -> ShowS
$cshowsPrec :: Int -> GatewayCapacity -> ShowS
Prelude.Show,
ReadPrec [GatewayCapacity]
ReadPrec GatewayCapacity
Int -> ReadS GatewayCapacity
ReadS [GatewayCapacity]
(Int -> ReadS GatewayCapacity)
-> ReadS [GatewayCapacity]
-> ReadPrec GatewayCapacity
-> ReadPrec [GatewayCapacity]
-> Read GatewayCapacity
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GatewayCapacity]
$creadListPrec :: ReadPrec [GatewayCapacity]
readPrec :: ReadPrec GatewayCapacity
$creadPrec :: ReadPrec GatewayCapacity
readList :: ReadS [GatewayCapacity]
$creadList :: ReadS [GatewayCapacity]
readsPrec :: Int -> ReadS GatewayCapacity
$creadsPrec :: Int -> ReadS GatewayCapacity
Prelude.Read,
GatewayCapacity -> GatewayCapacity -> Bool
(GatewayCapacity -> GatewayCapacity -> Bool)
-> (GatewayCapacity -> GatewayCapacity -> Bool)
-> Eq GatewayCapacity
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GatewayCapacity -> GatewayCapacity -> Bool
$c/= :: GatewayCapacity -> GatewayCapacity -> Bool
== :: GatewayCapacity -> GatewayCapacity -> Bool
$c== :: GatewayCapacity -> GatewayCapacity -> Bool
Prelude.Eq,
Eq GatewayCapacity
Eq GatewayCapacity
-> (GatewayCapacity -> GatewayCapacity -> Ordering)
-> (GatewayCapacity -> GatewayCapacity -> Bool)
-> (GatewayCapacity -> GatewayCapacity -> Bool)
-> (GatewayCapacity -> GatewayCapacity -> Bool)
-> (GatewayCapacity -> GatewayCapacity -> Bool)
-> (GatewayCapacity -> GatewayCapacity -> GatewayCapacity)
-> (GatewayCapacity -> GatewayCapacity -> GatewayCapacity)
-> Ord GatewayCapacity
GatewayCapacity -> GatewayCapacity -> Bool
GatewayCapacity -> GatewayCapacity -> Ordering
GatewayCapacity -> GatewayCapacity -> GatewayCapacity
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 :: GatewayCapacity -> GatewayCapacity -> GatewayCapacity
$cmin :: GatewayCapacity -> GatewayCapacity -> GatewayCapacity
max :: GatewayCapacity -> GatewayCapacity -> GatewayCapacity
$cmax :: GatewayCapacity -> GatewayCapacity -> GatewayCapacity
>= :: GatewayCapacity -> GatewayCapacity -> Bool
$c>= :: GatewayCapacity -> GatewayCapacity -> Bool
> :: GatewayCapacity -> GatewayCapacity -> Bool
$c> :: GatewayCapacity -> GatewayCapacity -> Bool
<= :: GatewayCapacity -> GatewayCapacity -> Bool
$c<= :: GatewayCapacity -> GatewayCapacity -> Bool
< :: GatewayCapacity -> GatewayCapacity -> Bool
$c< :: GatewayCapacity -> GatewayCapacity -> Bool
compare :: GatewayCapacity -> GatewayCapacity -> Ordering
$ccompare :: GatewayCapacity -> GatewayCapacity -> Ordering
$cp1Ord :: Eq GatewayCapacity
Prelude.Ord,
(forall x. GatewayCapacity -> Rep GatewayCapacity x)
-> (forall x. Rep GatewayCapacity x -> GatewayCapacity)
-> Generic GatewayCapacity
forall x. Rep GatewayCapacity x -> GatewayCapacity
forall x. GatewayCapacity -> Rep GatewayCapacity x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GatewayCapacity x -> GatewayCapacity
$cfrom :: forall x. GatewayCapacity -> Rep GatewayCapacity x
Prelude.Generic
)
deriving newtype
( Int -> GatewayCapacity -> Int
GatewayCapacity -> Int
(Int -> GatewayCapacity -> Int)
-> (GatewayCapacity -> Int) -> Hashable GatewayCapacity
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: GatewayCapacity -> Int
$chash :: GatewayCapacity -> Int
hashWithSalt :: Int -> GatewayCapacity -> Int
$chashWithSalt :: Int -> GatewayCapacity -> Int
Prelude.Hashable,
GatewayCapacity -> ()
(GatewayCapacity -> ()) -> NFData GatewayCapacity
forall a. (a -> ()) -> NFData a
rnf :: GatewayCapacity -> ()
$crnf :: GatewayCapacity -> ()
Prelude.NFData,
Text -> Either String GatewayCapacity
(Text -> Either String GatewayCapacity) -> FromText GatewayCapacity
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String GatewayCapacity
$cfromText :: Text -> Either String GatewayCapacity
Core.FromText,
GatewayCapacity -> Text
(GatewayCapacity -> Text) -> ToText GatewayCapacity
forall a. (a -> Text) -> ToText a
toText :: GatewayCapacity -> Text
$ctoText :: GatewayCapacity -> Text
Core.ToText,
GatewayCapacity -> ByteString
(GatewayCapacity -> ByteString) -> ToByteString GatewayCapacity
forall a. (a -> ByteString) -> ToByteString a
toBS :: GatewayCapacity -> ByteString
$ctoBS :: GatewayCapacity -> ByteString
Core.ToByteString,
GatewayCapacity -> ByteStringBuilder
(GatewayCapacity -> ByteStringBuilder) -> ToLog GatewayCapacity
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: GatewayCapacity -> ByteStringBuilder
$cbuild :: GatewayCapacity -> ByteStringBuilder
Core.ToLog,
HeaderName -> GatewayCapacity -> [Header]
(HeaderName -> GatewayCapacity -> [Header])
-> ToHeader GatewayCapacity
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> GatewayCapacity -> [Header]
$ctoHeader :: HeaderName -> GatewayCapacity -> [Header]
Core.ToHeader,
GatewayCapacity -> QueryString
(GatewayCapacity -> QueryString) -> ToQuery GatewayCapacity
forall a. (a -> QueryString) -> ToQuery a
toQuery :: GatewayCapacity -> QueryString
$ctoQuery :: GatewayCapacity -> QueryString
Core.ToQuery,
Value -> Parser [GatewayCapacity]
Value -> Parser GatewayCapacity
(Value -> Parser GatewayCapacity)
-> (Value -> Parser [GatewayCapacity]) -> FromJSON GatewayCapacity
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [GatewayCapacity]
$cparseJSONList :: Value -> Parser [GatewayCapacity]
parseJSON :: Value -> Parser GatewayCapacity
$cparseJSON :: Value -> Parser GatewayCapacity
Core.FromJSON,
FromJSONKeyFunction [GatewayCapacity]
FromJSONKeyFunction GatewayCapacity
FromJSONKeyFunction GatewayCapacity
-> FromJSONKeyFunction [GatewayCapacity]
-> FromJSONKey GatewayCapacity
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [GatewayCapacity]
$cfromJSONKeyList :: FromJSONKeyFunction [GatewayCapacity]
fromJSONKey :: FromJSONKeyFunction GatewayCapacity
$cfromJSONKey :: FromJSONKeyFunction GatewayCapacity
Core.FromJSONKey,
[GatewayCapacity] -> Encoding
[GatewayCapacity] -> Value
GatewayCapacity -> Encoding
GatewayCapacity -> Value
(GatewayCapacity -> Value)
-> (GatewayCapacity -> Encoding)
-> ([GatewayCapacity] -> Value)
-> ([GatewayCapacity] -> Encoding)
-> ToJSON GatewayCapacity
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [GatewayCapacity] -> Encoding
$ctoEncodingList :: [GatewayCapacity] -> Encoding
toJSONList :: [GatewayCapacity] -> Value
$ctoJSONList :: [GatewayCapacity] -> Value
toEncoding :: GatewayCapacity -> Encoding
$ctoEncoding :: GatewayCapacity -> Encoding
toJSON :: GatewayCapacity -> Value
$ctoJSON :: GatewayCapacity -> Value
Core.ToJSON,
ToJSONKeyFunction [GatewayCapacity]
ToJSONKeyFunction GatewayCapacity
ToJSONKeyFunction GatewayCapacity
-> ToJSONKeyFunction [GatewayCapacity] -> ToJSONKey GatewayCapacity
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [GatewayCapacity]
$ctoJSONKeyList :: ToJSONKeyFunction [GatewayCapacity]
toJSONKey :: ToJSONKeyFunction GatewayCapacity
$ctoJSONKey :: ToJSONKeyFunction GatewayCapacity
Core.ToJSONKey,
[Node] -> Either String GatewayCapacity
([Node] -> Either String GatewayCapacity)
-> FromXML GatewayCapacity
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String GatewayCapacity
$cparseXML :: [Node] -> Either String GatewayCapacity
Core.FromXML,
GatewayCapacity -> XML
(GatewayCapacity -> XML) -> ToXML GatewayCapacity
forall a. (a -> XML) -> ToXML a
toXML :: GatewayCapacity -> XML
$ctoXML :: GatewayCapacity -> XML
Core.ToXML
)
pattern GatewayCapacity_Large :: GatewayCapacity
pattern $bGatewayCapacity_Large :: GatewayCapacity
$mGatewayCapacity_Large :: forall r. GatewayCapacity -> (Void# -> r) -> (Void# -> r) -> r
GatewayCapacity_Large = GatewayCapacity' "Large"
pattern GatewayCapacity_Medium :: GatewayCapacity
pattern $bGatewayCapacity_Medium :: GatewayCapacity
$mGatewayCapacity_Medium :: forall r. GatewayCapacity -> (Void# -> r) -> (Void# -> r) -> r
GatewayCapacity_Medium = GatewayCapacity' "Medium"
pattern GatewayCapacity_Small :: GatewayCapacity
pattern $bGatewayCapacity_Small :: GatewayCapacity
$mGatewayCapacity_Small :: forall r. GatewayCapacity -> (Void# -> r) -> (Void# -> r) -> r
GatewayCapacity_Small = GatewayCapacity' "Small"
{-# COMPLETE
GatewayCapacity_Large,
GatewayCapacity_Medium,
GatewayCapacity_Small,
GatewayCapacity'
#-}