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