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