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