{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.MacieV2.Types.MatchingBucket where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MacieV2.Types.BucketMetadataErrorCode
import Amazonka.MacieV2.Types.JobDetails
import Amazonka.MacieV2.Types.ObjectCountByEncryptionType
import Amazonka.MacieV2.Types.ObjectLevelStatistics
import qualified Amazonka.Prelude as Prelude
data MatchingBucket = MatchingBucket'
{
MatchingBucket -> Maybe Integer
sizeInBytesCompressed :: Prelude.Maybe Prelude.Integer,
MatchingBucket -> Maybe ObjectCountByEncryptionType
objectCountByEncryptionType :: Prelude.Maybe ObjectCountByEncryptionType,
MatchingBucket -> Maybe Integer
sizeInBytes :: Prelude.Maybe Prelude.Integer,
MatchingBucket -> Maybe Text
bucketName :: Prelude.Maybe Prelude.Text,
MatchingBucket -> Maybe Integer
classifiableObjectCount :: Prelude.Maybe Prelude.Integer,
MatchingBucket -> Maybe Text
accountId :: Prelude.Maybe Prelude.Text,
MatchingBucket -> Maybe ObjectLevelStatistics
unclassifiableObjectSizeInBytes :: Prelude.Maybe ObjectLevelStatistics,
MatchingBucket -> Maybe ObjectLevelStatistics
unclassifiableObjectCount :: Prelude.Maybe ObjectLevelStatistics,
MatchingBucket -> Maybe BucketMetadataErrorCode
errorCode :: Prelude.Maybe BucketMetadataErrorCode,
MatchingBucket -> Maybe JobDetails
jobDetails :: Prelude.Maybe JobDetails,
MatchingBucket -> Maybe Text
errorMessage :: Prelude.Maybe Prelude.Text,
MatchingBucket -> Maybe Integer
objectCount :: Prelude.Maybe Prelude.Integer,
MatchingBucket -> Maybe Integer
classifiableSizeInBytes :: Prelude.Maybe Prelude.Integer
}
deriving (MatchingBucket -> MatchingBucket -> Bool
(MatchingBucket -> MatchingBucket -> Bool)
-> (MatchingBucket -> MatchingBucket -> Bool) -> Eq MatchingBucket
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MatchingBucket -> MatchingBucket -> Bool
$c/= :: MatchingBucket -> MatchingBucket -> Bool
== :: MatchingBucket -> MatchingBucket -> Bool
$c== :: MatchingBucket -> MatchingBucket -> Bool
Prelude.Eq, ReadPrec [MatchingBucket]
ReadPrec MatchingBucket
Int -> ReadS MatchingBucket
ReadS [MatchingBucket]
(Int -> ReadS MatchingBucket)
-> ReadS [MatchingBucket]
-> ReadPrec MatchingBucket
-> ReadPrec [MatchingBucket]
-> Read MatchingBucket
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MatchingBucket]
$creadListPrec :: ReadPrec [MatchingBucket]
readPrec :: ReadPrec MatchingBucket
$creadPrec :: ReadPrec MatchingBucket
readList :: ReadS [MatchingBucket]
$creadList :: ReadS [MatchingBucket]
readsPrec :: Int -> ReadS MatchingBucket
$creadsPrec :: Int -> ReadS MatchingBucket
Prelude.Read, Int -> MatchingBucket -> ShowS
[MatchingBucket] -> ShowS
MatchingBucket -> String
(Int -> MatchingBucket -> ShowS)
-> (MatchingBucket -> String)
-> ([MatchingBucket] -> ShowS)
-> Show MatchingBucket
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MatchingBucket] -> ShowS
$cshowList :: [MatchingBucket] -> ShowS
show :: MatchingBucket -> String
$cshow :: MatchingBucket -> String
showsPrec :: Int -> MatchingBucket -> ShowS
$cshowsPrec :: Int -> MatchingBucket -> ShowS
Prelude.Show, (forall x. MatchingBucket -> Rep MatchingBucket x)
-> (forall x. Rep MatchingBucket x -> MatchingBucket)
-> Generic MatchingBucket
forall x. Rep MatchingBucket x -> MatchingBucket
forall x. MatchingBucket -> Rep MatchingBucket x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MatchingBucket x -> MatchingBucket
$cfrom :: forall x. MatchingBucket -> Rep MatchingBucket x
Prelude.Generic)
newMatchingBucket ::
MatchingBucket
newMatchingBucket :: MatchingBucket
newMatchingBucket =
MatchingBucket' :: Maybe Integer
-> Maybe ObjectCountByEncryptionType
-> Maybe Integer
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> Maybe ObjectLevelStatistics
-> Maybe ObjectLevelStatistics
-> Maybe BucketMetadataErrorCode
-> Maybe JobDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> MatchingBucket
MatchingBucket'
{ $sel:sizeInBytesCompressed:MatchingBucket' :: Maybe Integer
sizeInBytesCompressed =
Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:objectCountByEncryptionType:MatchingBucket' :: Maybe ObjectCountByEncryptionType
objectCountByEncryptionType = Maybe ObjectCountByEncryptionType
forall a. Maybe a
Prelude.Nothing,
$sel:sizeInBytes:MatchingBucket' :: Maybe Integer
sizeInBytes = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:bucketName:MatchingBucket' :: Maybe Text
bucketName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:classifiableObjectCount:MatchingBucket' :: Maybe Integer
classifiableObjectCount = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:accountId:MatchingBucket' :: Maybe Text
accountId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:unclassifiableObjectSizeInBytes:MatchingBucket' :: Maybe ObjectLevelStatistics
unclassifiableObjectSizeInBytes = Maybe ObjectLevelStatistics
forall a. Maybe a
Prelude.Nothing,
$sel:unclassifiableObjectCount:MatchingBucket' :: Maybe ObjectLevelStatistics
unclassifiableObjectCount = Maybe ObjectLevelStatistics
forall a. Maybe a
Prelude.Nothing,
$sel:errorCode:MatchingBucket' :: Maybe BucketMetadataErrorCode
errorCode = Maybe BucketMetadataErrorCode
forall a. Maybe a
Prelude.Nothing,
$sel:jobDetails:MatchingBucket' :: Maybe JobDetails
jobDetails = Maybe JobDetails
forall a. Maybe a
Prelude.Nothing,
$sel:errorMessage:MatchingBucket' :: Maybe Text
errorMessage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:objectCount:MatchingBucket' :: Maybe Integer
objectCount = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:classifiableSizeInBytes:MatchingBucket' :: Maybe Integer
classifiableSizeInBytes = Maybe Integer
forall a. Maybe a
Prelude.Nothing
}
matchingBucket_sizeInBytesCompressed :: Lens.Lens' MatchingBucket (Prelude.Maybe Prelude.Integer)
matchingBucket_sizeInBytesCompressed :: (Maybe Integer -> f (Maybe Integer))
-> MatchingBucket -> f MatchingBucket
matchingBucket_sizeInBytesCompressed = (MatchingBucket -> Maybe Integer)
-> (MatchingBucket -> Maybe Integer -> MatchingBucket)
-> Lens
MatchingBucket MatchingBucket (Maybe Integer) (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MatchingBucket' {Maybe Integer
sizeInBytesCompressed :: Maybe Integer
$sel:sizeInBytesCompressed:MatchingBucket' :: MatchingBucket -> Maybe Integer
sizeInBytesCompressed} -> Maybe Integer
sizeInBytesCompressed) (\s :: MatchingBucket
s@MatchingBucket' {} Maybe Integer
a -> MatchingBucket
s {$sel:sizeInBytesCompressed:MatchingBucket' :: Maybe Integer
sizeInBytesCompressed = Maybe Integer
a} :: MatchingBucket)
matchingBucket_objectCountByEncryptionType :: Lens.Lens' MatchingBucket (Prelude.Maybe ObjectCountByEncryptionType)
matchingBucket_objectCountByEncryptionType :: (Maybe ObjectCountByEncryptionType
-> f (Maybe ObjectCountByEncryptionType))
-> MatchingBucket -> f MatchingBucket
matchingBucket_objectCountByEncryptionType = (MatchingBucket -> Maybe ObjectCountByEncryptionType)
-> (MatchingBucket
-> Maybe ObjectCountByEncryptionType -> MatchingBucket)
-> Lens
MatchingBucket
MatchingBucket
(Maybe ObjectCountByEncryptionType)
(Maybe ObjectCountByEncryptionType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MatchingBucket' {Maybe ObjectCountByEncryptionType
objectCountByEncryptionType :: Maybe ObjectCountByEncryptionType
$sel:objectCountByEncryptionType:MatchingBucket' :: MatchingBucket -> Maybe ObjectCountByEncryptionType
objectCountByEncryptionType} -> Maybe ObjectCountByEncryptionType
objectCountByEncryptionType) (\s :: MatchingBucket
s@MatchingBucket' {} Maybe ObjectCountByEncryptionType
a -> MatchingBucket
s {$sel:objectCountByEncryptionType:MatchingBucket' :: Maybe ObjectCountByEncryptionType
objectCountByEncryptionType = Maybe ObjectCountByEncryptionType
a} :: MatchingBucket)
matchingBucket_sizeInBytes :: Lens.Lens' MatchingBucket (Prelude.Maybe Prelude.Integer)
matchingBucket_sizeInBytes :: (Maybe Integer -> f (Maybe Integer))
-> MatchingBucket -> f MatchingBucket
matchingBucket_sizeInBytes = (MatchingBucket -> Maybe Integer)
-> (MatchingBucket -> Maybe Integer -> MatchingBucket)
-> Lens
MatchingBucket MatchingBucket (Maybe Integer) (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MatchingBucket' {Maybe Integer
sizeInBytes :: Maybe Integer
$sel:sizeInBytes:MatchingBucket' :: MatchingBucket -> Maybe Integer
sizeInBytes} -> Maybe Integer
sizeInBytes) (\s :: MatchingBucket
s@MatchingBucket' {} Maybe Integer
a -> MatchingBucket
s {$sel:sizeInBytes:MatchingBucket' :: Maybe Integer
sizeInBytes = Maybe Integer
a} :: MatchingBucket)
matchingBucket_bucketName :: Lens.Lens' MatchingBucket (Prelude.Maybe Prelude.Text)
matchingBucket_bucketName :: (Maybe Text -> f (Maybe Text))
-> MatchingBucket -> f MatchingBucket
matchingBucket_bucketName = (MatchingBucket -> Maybe Text)
-> (MatchingBucket -> Maybe Text -> MatchingBucket)
-> Lens MatchingBucket MatchingBucket (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MatchingBucket' {Maybe Text
bucketName :: Maybe Text
$sel:bucketName:MatchingBucket' :: MatchingBucket -> Maybe Text
bucketName} -> Maybe Text
bucketName) (\s :: MatchingBucket
s@MatchingBucket' {} Maybe Text
a -> MatchingBucket
s {$sel:bucketName:MatchingBucket' :: Maybe Text
bucketName = Maybe Text
a} :: MatchingBucket)
matchingBucket_classifiableObjectCount :: Lens.Lens' MatchingBucket (Prelude.Maybe Prelude.Integer)
matchingBucket_classifiableObjectCount :: (Maybe Integer -> f (Maybe Integer))
-> MatchingBucket -> f MatchingBucket
matchingBucket_classifiableObjectCount = (MatchingBucket -> Maybe Integer)
-> (MatchingBucket -> Maybe Integer -> MatchingBucket)
-> Lens
MatchingBucket MatchingBucket (Maybe Integer) (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MatchingBucket' {Maybe Integer
classifiableObjectCount :: Maybe Integer
$sel:classifiableObjectCount:MatchingBucket' :: MatchingBucket -> Maybe Integer
classifiableObjectCount} -> Maybe Integer
classifiableObjectCount) (\s :: MatchingBucket
s@MatchingBucket' {} Maybe Integer
a -> MatchingBucket
s {$sel:classifiableObjectCount:MatchingBucket' :: Maybe Integer
classifiableObjectCount = Maybe Integer
a} :: MatchingBucket)
matchingBucket_accountId :: Lens.Lens' MatchingBucket (Prelude.Maybe Prelude.Text)
matchingBucket_accountId :: (Maybe Text -> f (Maybe Text))
-> MatchingBucket -> f MatchingBucket
matchingBucket_accountId = (MatchingBucket -> Maybe Text)
-> (MatchingBucket -> Maybe Text -> MatchingBucket)
-> Lens MatchingBucket MatchingBucket (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MatchingBucket' {Maybe Text
accountId :: Maybe Text
$sel:accountId:MatchingBucket' :: MatchingBucket -> Maybe Text
accountId} -> Maybe Text
accountId) (\s :: MatchingBucket
s@MatchingBucket' {} Maybe Text
a -> MatchingBucket
s {$sel:accountId:MatchingBucket' :: Maybe Text
accountId = Maybe Text
a} :: MatchingBucket)
matchingBucket_unclassifiableObjectSizeInBytes :: Lens.Lens' MatchingBucket (Prelude.Maybe ObjectLevelStatistics)
matchingBucket_unclassifiableObjectSizeInBytes :: (Maybe ObjectLevelStatistics -> f (Maybe ObjectLevelStatistics))
-> MatchingBucket -> f MatchingBucket
matchingBucket_unclassifiableObjectSizeInBytes = (MatchingBucket -> Maybe ObjectLevelStatistics)
-> (MatchingBucket
-> Maybe ObjectLevelStatistics -> MatchingBucket)
-> Lens
MatchingBucket
MatchingBucket
(Maybe ObjectLevelStatistics)
(Maybe ObjectLevelStatistics)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MatchingBucket' {Maybe ObjectLevelStatistics
unclassifiableObjectSizeInBytes :: Maybe ObjectLevelStatistics
$sel:unclassifiableObjectSizeInBytes:MatchingBucket' :: MatchingBucket -> Maybe ObjectLevelStatistics
unclassifiableObjectSizeInBytes} -> Maybe ObjectLevelStatistics
unclassifiableObjectSizeInBytes) (\s :: MatchingBucket
s@MatchingBucket' {} Maybe ObjectLevelStatistics
a -> MatchingBucket
s {$sel:unclassifiableObjectSizeInBytes:MatchingBucket' :: Maybe ObjectLevelStatistics
unclassifiableObjectSizeInBytes = Maybe ObjectLevelStatistics
a} :: MatchingBucket)
matchingBucket_unclassifiableObjectCount :: Lens.Lens' MatchingBucket (Prelude.Maybe ObjectLevelStatistics)
matchingBucket_unclassifiableObjectCount :: (Maybe ObjectLevelStatistics -> f (Maybe ObjectLevelStatistics))
-> MatchingBucket -> f MatchingBucket
matchingBucket_unclassifiableObjectCount = (MatchingBucket -> Maybe ObjectLevelStatistics)
-> (MatchingBucket
-> Maybe ObjectLevelStatistics -> MatchingBucket)
-> Lens
MatchingBucket
MatchingBucket
(Maybe ObjectLevelStatistics)
(Maybe ObjectLevelStatistics)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MatchingBucket' {Maybe ObjectLevelStatistics
unclassifiableObjectCount :: Maybe ObjectLevelStatistics
$sel:unclassifiableObjectCount:MatchingBucket' :: MatchingBucket -> Maybe ObjectLevelStatistics
unclassifiableObjectCount} -> Maybe ObjectLevelStatistics
unclassifiableObjectCount) (\s :: MatchingBucket
s@MatchingBucket' {} Maybe ObjectLevelStatistics
a -> MatchingBucket
s {$sel:unclassifiableObjectCount:MatchingBucket' :: Maybe ObjectLevelStatistics
unclassifiableObjectCount = Maybe ObjectLevelStatistics
a} :: MatchingBucket)
matchingBucket_errorCode :: Lens.Lens' MatchingBucket (Prelude.Maybe BucketMetadataErrorCode)
matchingBucket_errorCode :: (Maybe BucketMetadataErrorCode
-> f (Maybe BucketMetadataErrorCode))
-> MatchingBucket -> f MatchingBucket
matchingBucket_errorCode = (MatchingBucket -> Maybe BucketMetadataErrorCode)
-> (MatchingBucket
-> Maybe BucketMetadataErrorCode -> MatchingBucket)
-> Lens
MatchingBucket
MatchingBucket
(Maybe BucketMetadataErrorCode)
(Maybe BucketMetadataErrorCode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MatchingBucket' {Maybe BucketMetadataErrorCode
errorCode :: Maybe BucketMetadataErrorCode
$sel:errorCode:MatchingBucket' :: MatchingBucket -> Maybe BucketMetadataErrorCode
errorCode} -> Maybe BucketMetadataErrorCode
errorCode) (\s :: MatchingBucket
s@MatchingBucket' {} Maybe BucketMetadataErrorCode
a -> MatchingBucket
s {$sel:errorCode:MatchingBucket' :: Maybe BucketMetadataErrorCode
errorCode = Maybe BucketMetadataErrorCode
a} :: MatchingBucket)
matchingBucket_jobDetails :: Lens.Lens' MatchingBucket (Prelude.Maybe JobDetails)
matchingBucket_jobDetails :: (Maybe JobDetails -> f (Maybe JobDetails))
-> MatchingBucket -> f MatchingBucket
matchingBucket_jobDetails = (MatchingBucket -> Maybe JobDetails)
-> (MatchingBucket -> Maybe JobDetails -> MatchingBucket)
-> Lens
MatchingBucket MatchingBucket (Maybe JobDetails) (Maybe JobDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MatchingBucket' {Maybe JobDetails
jobDetails :: Maybe JobDetails
$sel:jobDetails:MatchingBucket' :: MatchingBucket -> Maybe JobDetails
jobDetails} -> Maybe JobDetails
jobDetails) (\s :: MatchingBucket
s@MatchingBucket' {} Maybe JobDetails
a -> MatchingBucket
s {$sel:jobDetails:MatchingBucket' :: Maybe JobDetails
jobDetails = Maybe JobDetails
a} :: MatchingBucket)
matchingBucket_errorMessage :: Lens.Lens' MatchingBucket (Prelude.Maybe Prelude.Text)
matchingBucket_errorMessage :: (Maybe Text -> f (Maybe Text))
-> MatchingBucket -> f MatchingBucket
matchingBucket_errorMessage = (MatchingBucket -> Maybe Text)
-> (MatchingBucket -> Maybe Text -> MatchingBucket)
-> Lens MatchingBucket MatchingBucket (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MatchingBucket' {Maybe Text
errorMessage :: Maybe Text
$sel:errorMessage:MatchingBucket' :: MatchingBucket -> Maybe Text
errorMessage} -> Maybe Text
errorMessage) (\s :: MatchingBucket
s@MatchingBucket' {} Maybe Text
a -> MatchingBucket
s {$sel:errorMessage:MatchingBucket' :: Maybe Text
errorMessage = Maybe Text
a} :: MatchingBucket)
matchingBucket_objectCount :: Lens.Lens' MatchingBucket (Prelude.Maybe Prelude.Integer)
matchingBucket_objectCount :: (Maybe Integer -> f (Maybe Integer))
-> MatchingBucket -> f MatchingBucket
matchingBucket_objectCount = (MatchingBucket -> Maybe Integer)
-> (MatchingBucket -> Maybe Integer -> MatchingBucket)
-> Lens
MatchingBucket MatchingBucket (Maybe Integer) (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MatchingBucket' {Maybe Integer
objectCount :: Maybe Integer
$sel:objectCount:MatchingBucket' :: MatchingBucket -> Maybe Integer
objectCount} -> Maybe Integer
objectCount) (\s :: MatchingBucket
s@MatchingBucket' {} Maybe Integer
a -> MatchingBucket
s {$sel:objectCount:MatchingBucket' :: Maybe Integer
objectCount = Maybe Integer
a} :: MatchingBucket)
matchingBucket_classifiableSizeInBytes :: Lens.Lens' MatchingBucket (Prelude.Maybe Prelude.Integer)
matchingBucket_classifiableSizeInBytes :: (Maybe Integer -> f (Maybe Integer))
-> MatchingBucket -> f MatchingBucket
matchingBucket_classifiableSizeInBytes = (MatchingBucket -> Maybe Integer)
-> (MatchingBucket -> Maybe Integer -> MatchingBucket)
-> Lens
MatchingBucket MatchingBucket (Maybe Integer) (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MatchingBucket' {Maybe Integer
classifiableSizeInBytes :: Maybe Integer
$sel:classifiableSizeInBytes:MatchingBucket' :: MatchingBucket -> Maybe Integer
classifiableSizeInBytes} -> Maybe Integer
classifiableSizeInBytes) (\s :: MatchingBucket
s@MatchingBucket' {} Maybe Integer
a -> MatchingBucket
s {$sel:classifiableSizeInBytes:MatchingBucket' :: Maybe Integer
classifiableSizeInBytes = Maybe Integer
a} :: MatchingBucket)
instance Core.FromJSON MatchingBucket where
parseJSON :: Value -> Parser MatchingBucket
parseJSON =
String
-> (Object -> Parser MatchingBucket)
-> Value
-> Parser MatchingBucket
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"MatchingBucket"
( \Object
x ->
Maybe Integer
-> Maybe ObjectCountByEncryptionType
-> Maybe Integer
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> Maybe ObjectLevelStatistics
-> Maybe ObjectLevelStatistics
-> Maybe BucketMetadataErrorCode
-> Maybe JobDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> MatchingBucket
MatchingBucket'
(Maybe Integer
-> Maybe ObjectCountByEncryptionType
-> Maybe Integer
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> Maybe ObjectLevelStatistics
-> Maybe ObjectLevelStatistics
-> Maybe BucketMetadataErrorCode
-> Maybe JobDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> MatchingBucket)
-> Parser (Maybe Integer)
-> Parser
(Maybe ObjectCountByEncryptionType
-> Maybe Integer
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> Maybe ObjectLevelStatistics
-> Maybe ObjectLevelStatistics
-> Maybe BucketMetadataErrorCode
-> Maybe JobDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> MatchingBucket)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"sizeInBytesCompressed")
Parser
(Maybe ObjectCountByEncryptionType
-> Maybe Integer
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> Maybe ObjectLevelStatistics
-> Maybe ObjectLevelStatistics
-> Maybe BucketMetadataErrorCode
-> Maybe JobDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> MatchingBucket)
-> Parser (Maybe ObjectCountByEncryptionType)
-> Parser
(Maybe Integer
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> Maybe ObjectLevelStatistics
-> Maybe ObjectLevelStatistics
-> Maybe BucketMetadataErrorCode
-> Maybe JobDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> MatchingBucket)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ObjectCountByEncryptionType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"objectCountByEncryptionType")
Parser
(Maybe Integer
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> Maybe ObjectLevelStatistics
-> Maybe ObjectLevelStatistics
-> Maybe BucketMetadataErrorCode
-> Maybe JobDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> MatchingBucket)
-> Parser (Maybe Integer)
-> Parser
(Maybe Text
-> Maybe Integer
-> Maybe Text
-> Maybe ObjectLevelStatistics
-> Maybe ObjectLevelStatistics
-> Maybe BucketMetadataErrorCode
-> Maybe JobDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> MatchingBucket)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"sizeInBytes")
Parser
(Maybe Text
-> Maybe Integer
-> Maybe Text
-> Maybe ObjectLevelStatistics
-> Maybe ObjectLevelStatistics
-> Maybe BucketMetadataErrorCode
-> Maybe JobDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> MatchingBucket)
-> Parser (Maybe Text)
-> Parser
(Maybe Integer
-> Maybe Text
-> Maybe ObjectLevelStatistics
-> Maybe ObjectLevelStatistics
-> Maybe BucketMetadataErrorCode
-> Maybe JobDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> MatchingBucket)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"bucketName")
Parser
(Maybe Integer
-> Maybe Text
-> Maybe ObjectLevelStatistics
-> Maybe ObjectLevelStatistics
-> Maybe BucketMetadataErrorCode
-> Maybe JobDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> MatchingBucket)
-> Parser (Maybe Integer)
-> Parser
(Maybe Text
-> Maybe ObjectLevelStatistics
-> Maybe ObjectLevelStatistics
-> Maybe BucketMetadataErrorCode
-> Maybe JobDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> MatchingBucket)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"classifiableObjectCount")
Parser
(Maybe Text
-> Maybe ObjectLevelStatistics
-> Maybe ObjectLevelStatistics
-> Maybe BucketMetadataErrorCode
-> Maybe JobDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> MatchingBucket)
-> Parser (Maybe Text)
-> Parser
(Maybe ObjectLevelStatistics
-> Maybe ObjectLevelStatistics
-> Maybe BucketMetadataErrorCode
-> Maybe JobDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> MatchingBucket)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"accountId")
Parser
(Maybe ObjectLevelStatistics
-> Maybe ObjectLevelStatistics
-> Maybe BucketMetadataErrorCode
-> Maybe JobDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> MatchingBucket)
-> Parser (Maybe ObjectLevelStatistics)
-> Parser
(Maybe ObjectLevelStatistics
-> Maybe BucketMetadataErrorCode
-> Maybe JobDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> MatchingBucket)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ObjectLevelStatistics)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"unclassifiableObjectSizeInBytes")
Parser
(Maybe ObjectLevelStatistics
-> Maybe BucketMetadataErrorCode
-> Maybe JobDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> MatchingBucket)
-> Parser (Maybe ObjectLevelStatistics)
-> Parser
(Maybe BucketMetadataErrorCode
-> Maybe JobDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> MatchingBucket)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ObjectLevelStatistics)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"unclassifiableObjectCount")
Parser
(Maybe BucketMetadataErrorCode
-> Maybe JobDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> MatchingBucket)
-> Parser (Maybe BucketMetadataErrorCode)
-> Parser
(Maybe JobDetails
-> Maybe Text -> Maybe Integer -> Maybe Integer -> MatchingBucket)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe BucketMetadataErrorCode)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"errorCode")
Parser
(Maybe JobDetails
-> Maybe Text -> Maybe Integer -> Maybe Integer -> MatchingBucket)
-> Parser (Maybe JobDetails)
-> Parser
(Maybe Text -> Maybe Integer -> Maybe Integer -> MatchingBucket)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe JobDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"jobDetails")
Parser
(Maybe Text -> Maybe Integer -> Maybe Integer -> MatchingBucket)
-> Parser (Maybe Text)
-> Parser (Maybe Integer -> Maybe Integer -> MatchingBucket)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"errorMessage")
Parser (Maybe Integer -> Maybe Integer -> MatchingBucket)
-> Parser (Maybe Integer)
-> Parser (Maybe Integer -> MatchingBucket)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"objectCount")
Parser (Maybe Integer -> MatchingBucket)
-> Parser (Maybe Integer) -> Parser MatchingBucket
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"classifiableSizeInBytes")
)
instance Prelude.Hashable MatchingBucket
instance Prelude.NFData MatchingBucket