/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include provides information about the Amazon S3 Public Access Block configuration
* for accounts.See Also:
AWS
* API Reference
Indicates whether to reject calls to update an S3 bucket if the calls include * a public access control list (ACL).
*/ inline bool GetBlockPublicAcls() const{ return m_blockPublicAcls; } /** *Indicates whether to reject calls to update an S3 bucket if the calls include * a public access control list (ACL).
*/ inline bool BlockPublicAclsHasBeenSet() const { return m_blockPublicAclsHasBeenSet; } /** *Indicates whether to reject calls to update an S3 bucket if the calls include * a public access control list (ACL).
*/ inline void SetBlockPublicAcls(bool value) { m_blockPublicAclsHasBeenSet = true; m_blockPublicAcls = value; } /** *Indicates whether to reject calls to update an S3 bucket if the calls include * a public access control list (ACL).
*/ inline AwsS3AccountPublicAccessBlockDetails& WithBlockPublicAcls(bool value) { SetBlockPublicAcls(value); return *this;} /** *Indicates whether to reject calls to update the access policy for an S3 * bucket or access point if the policy allows public access.
*/ inline bool GetBlockPublicPolicy() const{ return m_blockPublicPolicy; } /** *Indicates whether to reject calls to update the access policy for an S3 * bucket or access point if the policy allows public access.
*/ inline bool BlockPublicPolicyHasBeenSet() const { return m_blockPublicPolicyHasBeenSet; } /** *Indicates whether to reject calls to update the access policy for an S3 * bucket or access point if the policy allows public access.
*/ inline void SetBlockPublicPolicy(bool value) { m_blockPublicPolicyHasBeenSet = true; m_blockPublicPolicy = value; } /** *Indicates whether to reject calls to update the access policy for an S3 * bucket or access point if the policy allows public access.
*/ inline AwsS3AccountPublicAccessBlockDetails& WithBlockPublicPolicy(bool value) { SetBlockPublicPolicy(value); return *this;} /** *Indicates whether Amazon S3 ignores public ACLs that are associated with an * S3 bucket.
*/ inline bool GetIgnorePublicAcls() const{ return m_ignorePublicAcls; } /** *Indicates whether Amazon S3 ignores public ACLs that are associated with an * S3 bucket.
*/ inline bool IgnorePublicAclsHasBeenSet() const { return m_ignorePublicAclsHasBeenSet; } /** *Indicates whether Amazon S3 ignores public ACLs that are associated with an * S3 bucket.
*/ inline void SetIgnorePublicAcls(bool value) { m_ignorePublicAclsHasBeenSet = true; m_ignorePublicAcls = value; } /** *Indicates whether Amazon S3 ignores public ACLs that are associated with an * S3 bucket.
*/ inline AwsS3AccountPublicAccessBlockDetails& WithIgnorePublicAcls(bool value) { SetIgnorePublicAcls(value); return *this;} /** *Indicates whether to restrict access to an access point or S3 bucket that has * a public policy to only Amazon Web Services service principals and authorized * users within the S3 bucket owner's account.
*/ inline bool GetRestrictPublicBuckets() const{ return m_restrictPublicBuckets; } /** *Indicates whether to restrict access to an access point or S3 bucket that has * a public policy to only Amazon Web Services service principals and authorized * users within the S3 bucket owner's account.
*/ inline bool RestrictPublicBucketsHasBeenSet() const { return m_restrictPublicBucketsHasBeenSet; } /** *Indicates whether to restrict access to an access point or S3 bucket that has * a public policy to only Amazon Web Services service principals and authorized * users within the S3 bucket owner's account.
*/ inline void SetRestrictPublicBuckets(bool value) { m_restrictPublicBucketsHasBeenSet = true; m_restrictPublicBuckets = value; } /** *Indicates whether to restrict access to an access point or S3 bucket that has * a public policy to only Amazon Web Services service principals and authorized * users within the S3 bucket owner's account.
*/ inline AwsS3AccountPublicAccessBlockDetails& WithRestrictPublicBuckets(bool value) { SetRestrictPublicBuckets(value); return *this;} private: bool m_blockPublicAcls; bool m_blockPublicAclsHasBeenSet = false; bool m_blockPublicPolicy; bool m_blockPublicPolicyHasBeenSet = false; bool m_ignorePublicAcls; bool m_ignorePublicAclsHasBeenSet = false; bool m_restrictPublicBuckets; bool m_restrictPublicBucketsHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws