/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides information about the permissions settings of a bucket policy for an
* S3 bucket.See Also:
AWS
* API Reference
Specifies whether the bucket policy allows the general public to have read * access to the bucket.
*/ inline bool GetAllowsPublicReadAccess() const{ return m_allowsPublicReadAccess; } /** *Specifies whether the bucket policy allows the general public to have read * access to the bucket.
*/ inline bool AllowsPublicReadAccessHasBeenSet() const { return m_allowsPublicReadAccessHasBeenSet; } /** *Specifies whether the bucket policy allows the general public to have read * access to the bucket.
*/ inline void SetAllowsPublicReadAccess(bool value) { m_allowsPublicReadAccessHasBeenSet = true; m_allowsPublicReadAccess = value; } /** *Specifies whether the bucket policy allows the general public to have read * access to the bucket.
*/ inline BucketPolicy& WithAllowsPublicReadAccess(bool value) { SetAllowsPublicReadAccess(value); return *this;} /** *Specifies whether the bucket policy allows the general public to have write * access to the bucket.
*/ inline bool GetAllowsPublicWriteAccess() const{ return m_allowsPublicWriteAccess; } /** *Specifies whether the bucket policy allows the general public to have write * access to the bucket.
*/ inline bool AllowsPublicWriteAccessHasBeenSet() const { return m_allowsPublicWriteAccessHasBeenSet; } /** *Specifies whether the bucket policy allows the general public to have write * access to the bucket.
*/ inline void SetAllowsPublicWriteAccess(bool value) { m_allowsPublicWriteAccessHasBeenSet = true; m_allowsPublicWriteAccess = value; } /** *Specifies whether the bucket policy allows the general public to have write * access to the bucket.
*/ inline BucketPolicy& WithAllowsPublicWriteAccess(bool value) { SetAllowsPublicWriteAccess(value); return *this;} private: bool m_allowsPublicReadAccess; bool m_allowsPublicReadAccessHasBeenSet; bool m_allowsPublicWriteAccess; bool m_allowsPublicWriteAccessHasBeenSet; }; } // namespace Model } // namespace Macie2 } // namespace Aws