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