{-# 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.ObjectLockLegalHoldStatus
-- 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.ObjectLockLegalHoldStatus
  ( ObjectLockLegalHoldStatus
      ( ..,
        ObjectLockLegalHoldStatus_OFF,
        ObjectLockLegalHoldStatus_ON
      ),
  )
where

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

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

pattern ObjectLockLegalHoldStatus_OFF :: ObjectLockLegalHoldStatus
pattern $bObjectLockLegalHoldStatus_OFF :: ObjectLockLegalHoldStatus
$mObjectLockLegalHoldStatus_OFF :: forall {r}.
ObjectLockLegalHoldStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ObjectLockLegalHoldStatus_OFF = ObjectLockLegalHoldStatus' "OFF"

pattern ObjectLockLegalHoldStatus_ON :: ObjectLockLegalHoldStatus
pattern $bObjectLockLegalHoldStatus_ON :: ObjectLockLegalHoldStatus
$mObjectLockLegalHoldStatus_ON :: forall {r}.
ObjectLockLegalHoldStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ObjectLockLegalHoldStatus_ON = ObjectLockLegalHoldStatus' "ON"

{-# COMPLETE
  ObjectLockLegalHoldStatus_OFF,
  ObjectLockLegalHoldStatus_ON,
  ObjectLockLegalHoldStatus'
  #-}