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