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