{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.StorageGateway.Types.RetentionLockType
( RetentionLockType
( ..,
RetentionLockType_COMPLIANCE,
RetentionLockType_GOVERNANCE,
RetentionLockType_NONE
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype RetentionLockType = RetentionLockType'
{ RetentionLockType -> Text
fromRetentionLockType ::
Data.Text
}
deriving stock
( Int -> RetentionLockType -> ShowS
[RetentionLockType] -> ShowS
RetentionLockType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RetentionLockType] -> ShowS
$cshowList :: [RetentionLockType] -> ShowS
show :: RetentionLockType -> String
$cshow :: RetentionLockType -> String
showsPrec :: Int -> RetentionLockType -> ShowS
$cshowsPrec :: Int -> RetentionLockType -> ShowS
Prelude.Show,
ReadPrec [RetentionLockType]
ReadPrec RetentionLockType
Int -> ReadS RetentionLockType
ReadS [RetentionLockType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RetentionLockType]
$creadListPrec :: ReadPrec [RetentionLockType]
readPrec :: ReadPrec RetentionLockType
$creadPrec :: ReadPrec RetentionLockType
readList :: ReadS [RetentionLockType]
$creadList :: ReadS [RetentionLockType]
readsPrec :: Int -> ReadS RetentionLockType
$creadsPrec :: Int -> ReadS RetentionLockType
Prelude.Read,
RetentionLockType -> RetentionLockType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RetentionLockType -> RetentionLockType -> Bool
$c/= :: RetentionLockType -> RetentionLockType -> Bool
== :: RetentionLockType -> RetentionLockType -> Bool
$c== :: RetentionLockType -> RetentionLockType -> Bool
Prelude.Eq,
Eq RetentionLockType
RetentionLockType -> RetentionLockType -> Bool
RetentionLockType -> RetentionLockType -> Ordering
RetentionLockType -> RetentionLockType -> RetentionLockType
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 :: RetentionLockType -> RetentionLockType -> RetentionLockType
$cmin :: RetentionLockType -> RetentionLockType -> RetentionLockType
max :: RetentionLockType -> RetentionLockType -> RetentionLockType
$cmax :: RetentionLockType -> RetentionLockType -> RetentionLockType
>= :: RetentionLockType -> RetentionLockType -> Bool
$c>= :: RetentionLockType -> RetentionLockType -> Bool
> :: RetentionLockType -> RetentionLockType -> Bool
$c> :: RetentionLockType -> RetentionLockType -> Bool
<= :: RetentionLockType -> RetentionLockType -> Bool
$c<= :: RetentionLockType -> RetentionLockType -> Bool
< :: RetentionLockType -> RetentionLockType -> Bool
$c< :: RetentionLockType -> RetentionLockType -> Bool
compare :: RetentionLockType -> RetentionLockType -> Ordering
$ccompare :: RetentionLockType -> RetentionLockType -> Ordering
Prelude.Ord,
forall x. Rep RetentionLockType x -> RetentionLockType
forall x. RetentionLockType -> Rep RetentionLockType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RetentionLockType x -> RetentionLockType
$cfrom :: forall x. RetentionLockType -> Rep RetentionLockType x
Prelude.Generic
)
deriving newtype
( Eq RetentionLockType
Int -> RetentionLockType -> Int
RetentionLockType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: RetentionLockType -> Int
$chash :: RetentionLockType -> Int
hashWithSalt :: Int -> RetentionLockType -> Int
$chashWithSalt :: Int -> RetentionLockType -> Int
Prelude.Hashable,
RetentionLockType -> ()
forall a. (a -> ()) -> NFData a
rnf :: RetentionLockType -> ()
$crnf :: RetentionLockType -> ()
Prelude.NFData,
Text -> Either String RetentionLockType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String RetentionLockType
$cfromText :: Text -> Either String RetentionLockType
Data.FromText,
RetentionLockType -> Text
forall a. (a -> Text) -> ToText a
toText :: RetentionLockType -> Text
$ctoText :: RetentionLockType -> Text
Data.ToText,
RetentionLockType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: RetentionLockType -> ByteString
$ctoBS :: RetentionLockType -> ByteString
Data.ToByteString,
RetentionLockType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: RetentionLockType -> ByteStringBuilder
$cbuild :: RetentionLockType -> ByteStringBuilder
Data.ToLog,
HeaderName -> RetentionLockType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> RetentionLockType -> [Header]
$ctoHeader :: HeaderName -> RetentionLockType -> [Header]
Data.ToHeader,
RetentionLockType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: RetentionLockType -> QueryString
$ctoQuery :: RetentionLockType -> QueryString
Data.ToQuery,
Value -> Parser [RetentionLockType]
Value -> Parser RetentionLockType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [RetentionLockType]
$cparseJSONList :: Value -> Parser [RetentionLockType]
parseJSON :: Value -> Parser RetentionLockType
$cparseJSON :: Value -> Parser RetentionLockType
Data.FromJSON,
FromJSONKeyFunction [RetentionLockType]
FromJSONKeyFunction RetentionLockType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [RetentionLockType]
$cfromJSONKeyList :: FromJSONKeyFunction [RetentionLockType]
fromJSONKey :: FromJSONKeyFunction RetentionLockType
$cfromJSONKey :: FromJSONKeyFunction RetentionLockType
Data.FromJSONKey,
[RetentionLockType] -> Encoding
[RetentionLockType] -> Value
RetentionLockType -> Encoding
RetentionLockType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [RetentionLockType] -> Encoding
$ctoEncodingList :: [RetentionLockType] -> Encoding
toJSONList :: [RetentionLockType] -> Value
$ctoJSONList :: [RetentionLockType] -> Value
toEncoding :: RetentionLockType -> Encoding
$ctoEncoding :: RetentionLockType -> Encoding
toJSON :: RetentionLockType -> Value
$ctoJSON :: RetentionLockType -> Value
Data.ToJSON,
ToJSONKeyFunction [RetentionLockType]
ToJSONKeyFunction RetentionLockType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [RetentionLockType]
$ctoJSONKeyList :: ToJSONKeyFunction [RetentionLockType]
toJSONKey :: ToJSONKeyFunction RetentionLockType
$ctoJSONKey :: ToJSONKeyFunction RetentionLockType
Data.ToJSONKey,
[Node] -> Either String RetentionLockType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String RetentionLockType
$cparseXML :: [Node] -> Either String RetentionLockType
Data.FromXML,
RetentionLockType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: RetentionLockType -> XML
$ctoXML :: RetentionLockType -> XML
Data.ToXML
)
pattern RetentionLockType_COMPLIANCE :: RetentionLockType
pattern $bRetentionLockType_COMPLIANCE :: RetentionLockType
$mRetentionLockType_COMPLIANCE :: forall {r}. RetentionLockType -> ((# #) -> r) -> ((# #) -> r) -> r
RetentionLockType_COMPLIANCE = RetentionLockType' "COMPLIANCE"
pattern RetentionLockType_GOVERNANCE :: RetentionLockType
pattern $bRetentionLockType_GOVERNANCE :: RetentionLockType
$mRetentionLockType_GOVERNANCE :: forall {r}. RetentionLockType -> ((# #) -> r) -> ((# #) -> r) -> r
RetentionLockType_GOVERNANCE = RetentionLockType' "GOVERNANCE"
pattern RetentionLockType_NONE :: RetentionLockType
pattern $bRetentionLockType_NONE :: RetentionLockType
$mRetentionLockType_NONE :: forall {r}. RetentionLockType -> ((# #) -> r) -> ((# #) -> r) -> r
RetentionLockType_NONE = RetentionLockType' "NONE"
{-# COMPLETE
RetentionLockType_COMPLIANCE,
RetentionLockType_GOVERNANCE,
RetentionLockType_NONE,
RetentionLockType'
#-}