/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information about the bucket level permissions for the S3
* bucket.See Also:
AWS
* API Reference
Contains information on how Access Control Policies are applied to the * bucket.
*/ inline const AccessControlList& GetAccessControlList() const{ return m_accessControlList; } /** *Contains information on how Access Control Policies are applied to the * bucket.
*/ inline bool AccessControlListHasBeenSet() const { return m_accessControlListHasBeenSet; } /** *Contains information on how Access Control Policies are applied to the * bucket.
*/ inline void SetAccessControlList(const AccessControlList& value) { m_accessControlListHasBeenSet = true; m_accessControlList = value; } /** *Contains information on how Access Control Policies are applied to the * bucket.
*/ inline void SetAccessControlList(AccessControlList&& value) { m_accessControlListHasBeenSet = true; m_accessControlList = std::move(value); } /** *Contains information on how Access Control Policies are applied to the * bucket.
*/ inline BucketLevelPermissions& WithAccessControlList(const AccessControlList& value) { SetAccessControlList(value); return *this;} /** *Contains information on how Access Control Policies are applied to the * bucket.
*/ inline BucketLevelPermissions& WithAccessControlList(AccessControlList&& value) { SetAccessControlList(std::move(value)); return *this;} /** *Contains information on the bucket policies for the S3 bucket.
*/ inline const BucketPolicy& GetBucketPolicy() const{ return m_bucketPolicy; } /** *Contains information on the bucket policies for the S3 bucket.
*/ inline bool BucketPolicyHasBeenSet() const { return m_bucketPolicyHasBeenSet; } /** *Contains information on the bucket policies for the S3 bucket.
*/ inline void SetBucketPolicy(const BucketPolicy& value) { m_bucketPolicyHasBeenSet = true; m_bucketPolicy = value; } /** *Contains information on the bucket policies for the S3 bucket.
*/ inline void SetBucketPolicy(BucketPolicy&& value) { m_bucketPolicyHasBeenSet = true; m_bucketPolicy = std::move(value); } /** *Contains information on the bucket policies for the S3 bucket.
*/ inline BucketLevelPermissions& WithBucketPolicy(const BucketPolicy& value) { SetBucketPolicy(value); return *this;} /** *Contains information on the bucket policies for the S3 bucket.
*/ inline BucketLevelPermissions& WithBucketPolicy(BucketPolicy&& value) { SetBucketPolicy(std::move(value)); return *this;} /** *Contains information on which account level S3 Block Public Access settings * are applied to the S3 bucket.
*/ inline const BlockPublicAccess& GetBlockPublicAccess() const{ return m_blockPublicAccess; } /** *Contains information on which account level S3 Block Public Access settings * are applied to the S3 bucket.
*/ inline bool BlockPublicAccessHasBeenSet() const { return m_blockPublicAccessHasBeenSet; } /** *Contains information on which account level S3 Block Public Access settings * are applied to the S3 bucket.
*/ inline void SetBlockPublicAccess(const BlockPublicAccess& value) { m_blockPublicAccessHasBeenSet = true; m_blockPublicAccess = value; } /** *Contains information on which account level S3 Block Public Access settings * are applied to the S3 bucket.
*/ inline void SetBlockPublicAccess(BlockPublicAccess&& value) { m_blockPublicAccessHasBeenSet = true; m_blockPublicAccess = std::move(value); } /** *Contains information on which account level S3 Block Public Access settings * are applied to the S3 bucket.
*/ inline BucketLevelPermissions& WithBlockPublicAccess(const BlockPublicAccess& value) { SetBlockPublicAccess(value); return *this;} /** *Contains information on which account level S3 Block Public Access settings * are applied to the S3 bucket.
*/ inline BucketLevelPermissions& WithBlockPublicAccess(BlockPublicAccess&& value) { SetBlockPublicAccess(std::move(value)); return *this;} private: AccessControlList m_accessControlList; bool m_accessControlListHasBeenSet = false; BucketPolicy m_bucketPolicy; bool m_bucketPolicyHasBeenSet = false; BlockPublicAccess m_blockPublicAccess; bool m_blockPublicAccessHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws