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