{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude
import Amazonka.S3.Internal

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

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

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

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