/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Macie2 { namespace Model { /** *

Provides information about the bucket-level permissions settings for an S3 * bucket.

See Also:

AWS * API Reference

*/ class BucketLevelPermissions { public: AWS_MACIE2_API BucketLevelPermissions(); AWS_MACIE2_API BucketLevelPermissions(Aws::Utils::Json::JsonView jsonValue); AWS_MACIE2_API BucketLevelPermissions& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The permissions settings of the access control list (ACL) for the bucket. * This value is null if an ACL hasn't been defined for the bucket.

*/ inline const AccessControlList& GetAccessControlList() const{ return m_accessControlList; } /** *

The permissions settings of the access control list (ACL) for the bucket. * This value is null if an ACL hasn't been defined for the bucket.

*/ inline bool AccessControlListHasBeenSet() const { return m_accessControlListHasBeenSet; } /** *

The permissions settings of the access control list (ACL) for the bucket. * This value is null if an ACL hasn't been defined for the bucket.

*/ inline void SetAccessControlList(const AccessControlList& value) { m_accessControlListHasBeenSet = true; m_accessControlList = value; } /** *

The permissions settings of the access control list (ACL) for the bucket. * This value is null if an ACL hasn't been defined for the bucket.

*/ inline void SetAccessControlList(AccessControlList&& value) { m_accessControlListHasBeenSet = true; m_accessControlList = std::move(value); } /** *

The permissions settings of the access control list (ACL) for the bucket. * This value is null if an ACL hasn't been defined for the bucket.

*/ inline BucketLevelPermissions& WithAccessControlList(const AccessControlList& value) { SetAccessControlList(value); return *this;} /** *

The permissions settings of the access control list (ACL) for the bucket. * This value is null if an ACL hasn't been defined for the bucket.

*/ inline BucketLevelPermissions& WithAccessControlList(AccessControlList&& value) { SetAccessControlList(std::move(value)); return *this;} /** *

The block public access settings for the bucket.

*/ inline const BlockPublicAccess& GetBlockPublicAccess() const{ return m_blockPublicAccess; } /** *

The block public access settings for the bucket.

*/ inline bool BlockPublicAccessHasBeenSet() const { return m_blockPublicAccessHasBeenSet; } /** *

The block public access settings for the bucket.

*/ inline void SetBlockPublicAccess(const BlockPublicAccess& value) { m_blockPublicAccessHasBeenSet = true; m_blockPublicAccess = value; } /** *

The block public access settings for the bucket.

*/ inline void SetBlockPublicAccess(BlockPublicAccess&& value) { m_blockPublicAccessHasBeenSet = true; m_blockPublicAccess = std::move(value); } /** *

The block public access settings for the bucket.

*/ inline BucketLevelPermissions& WithBlockPublicAccess(const BlockPublicAccess& value) { SetBlockPublicAccess(value); return *this;} /** *

The block public access settings for the bucket.

*/ inline BucketLevelPermissions& WithBlockPublicAccess(BlockPublicAccess&& value) { SetBlockPublicAccess(std::move(value)); return *this;} /** *

The permissions settings of the bucket policy for the bucket. This value is * null if a bucket policy hasn't been defined for the bucket.

*/ inline const BucketPolicy& GetBucketPolicy() const{ return m_bucketPolicy; } /** *

The permissions settings of the bucket policy for the bucket. This value is * null if a bucket policy hasn't been defined for the bucket.

*/ inline bool BucketPolicyHasBeenSet() const { return m_bucketPolicyHasBeenSet; } /** *

The permissions settings of the bucket policy for the bucket. This value is * null if a bucket policy hasn't been defined for the bucket.

*/ inline void SetBucketPolicy(const BucketPolicy& value) { m_bucketPolicyHasBeenSet = true; m_bucketPolicy = value; } /** *

The permissions settings of the bucket policy for the bucket. This value is * null if a bucket policy hasn't been defined for the bucket.

*/ inline void SetBucketPolicy(BucketPolicy&& value) { m_bucketPolicyHasBeenSet = true; m_bucketPolicy = std::move(value); } /** *

The permissions settings of the bucket policy for the bucket. This value is * null if a bucket policy hasn't been defined for the bucket.

*/ inline BucketLevelPermissions& WithBucketPolicy(const BucketPolicy& value) { SetBucketPolicy(value); return *this;} /** *

The permissions settings of the bucket policy for the bucket. This value is * null if a bucket policy hasn't been defined for the bucket.

*/ inline BucketLevelPermissions& WithBucketPolicy(BucketPolicy&& value) { SetBucketPolicy(std::move(value)); return *this;} private: AccessControlList m_accessControlList; bool m_accessControlListHasBeenSet = false; BlockPublicAccess m_blockPublicAccess; bool m_blockPublicAccessHasBeenSet = false; BucketPolicy m_bucketPolicy; bool m_bucketPolicyHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws