{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.S3.Types.ObjectLockEnabled
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.S3.Types.ObjectLockEnabled
  ( ObjectLockEnabled
      ( ..,
        ObjectLockEnabled_Enabled
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import Amazonka.S3.Internal

newtype ObjectLockEnabled = ObjectLockEnabled'
  { ObjectLockEnabled -> Text
fromObjectLockEnabled ::
      Data.Text
  }
  deriving stock
    ( Int -> ObjectLockEnabled -> ShowS
[ObjectLockEnabled] -> ShowS
ObjectLockEnabled -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq ObjectLockEnabled
Int -> ObjectLockEnabled -> Int
ObjectLockEnabled -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: ObjectLockEnabled -> ()
$crnf :: ObjectLockEnabled -> ()
Prelude.NFData,
      Text -> Either String ObjectLockEnabled
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ObjectLockEnabled
$cfromText :: Text -> Either String ObjectLockEnabled
Data.FromText,
      ObjectLockEnabled -> Text
forall a. (a -> Text) -> ToText a
toText :: ObjectLockEnabled -> Text
$ctoText :: ObjectLockEnabled -> Text
Data.ToText,
      ObjectLockEnabled -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: ObjectLockEnabled -> ByteString
$ctoBS :: ObjectLockEnabled -> ByteString
Data.ToByteString,
      ObjectLockEnabled -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ObjectLockEnabled -> ByteStringBuilder
$cbuild :: ObjectLockEnabled -> ByteStringBuilder
Data.ToLog,
      HeaderName -> ObjectLockEnabled -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ObjectLockEnabled -> [Header]
$ctoHeader :: HeaderName -> ObjectLockEnabled -> [Header]
Data.ToHeader,
      ObjectLockEnabled -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ObjectLockEnabled -> QueryString
$ctoQuery :: ObjectLockEnabled -> QueryString
Data.ToQuery,
      Value -> Parser [ObjectLockEnabled]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [ObjectLockEnabled]
FromJSONKeyFunction ObjectLockEnabled
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ObjectLockEnabled]
$cfromJSONKeyList :: FromJSONKeyFunction [ObjectLockEnabled]
fromJSONKey :: FromJSONKeyFunction ObjectLockEnabled
$cfromJSONKey :: FromJSONKeyFunction ObjectLockEnabled
Data.FromJSONKey,
      [ObjectLockEnabled] -> Encoding
[ObjectLockEnabled] -> Value
ObjectLockEnabled -> Encoding
ObjectLockEnabled -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [ObjectLockEnabled]
ToJSONKeyFunction ObjectLockEnabled
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ObjectLockEnabled]
$ctoJSONKeyList :: ToJSONKeyFunction [ObjectLockEnabled]
toJSONKey :: ToJSONKeyFunction ObjectLockEnabled
$ctoJSONKey :: ToJSONKeyFunction ObjectLockEnabled
Data.ToJSONKey,
      [Node] -> Either String ObjectLockEnabled
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ObjectLockEnabled
$cparseXML :: [Node] -> Either String ObjectLockEnabled
Data.FromXML,
      ObjectLockEnabled -> XML
forall a. (a -> XML) -> ToXML a
toXML :: ObjectLockEnabled -> XML
$ctoXML :: ObjectLockEnabled -> XML
Data.ToXML
    )

pattern ObjectLockEnabled_Enabled :: ObjectLockEnabled
pattern $bObjectLockEnabled_Enabled :: ObjectLockEnabled
$mObjectLockEnabled_Enabled :: forall {r}. ObjectLockEnabled -> ((# #) -> r) -> ((# #) -> r) -> r
ObjectLockEnabled_Enabled = ObjectLockEnabled' "Enabled"

{-# COMPLETE
  ObjectLockEnabled_Enabled,
  ObjectLockEnabled'
  #-}