/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information on the current bucket policies for the S3
* bucket.See Also:
AWS
* API Reference
A value that indicates whether public read access for the bucket is enabled * through a bucket policy.
*/ inline bool GetAllowsPublicReadAccess() const{ return m_allowsPublicReadAccess; } /** *A value that indicates whether public read access for the bucket is enabled * through a bucket policy.
*/ inline bool AllowsPublicReadAccessHasBeenSet() const { return m_allowsPublicReadAccessHasBeenSet; } /** *A value that indicates whether public read access for the bucket is enabled * through a bucket policy.
*/ inline void SetAllowsPublicReadAccess(bool value) { m_allowsPublicReadAccessHasBeenSet = true; m_allowsPublicReadAccess = value; } /** *A value that indicates whether public read access for the bucket is enabled * through a bucket policy.
*/ inline BucketPolicy& WithAllowsPublicReadAccess(bool value) { SetAllowsPublicReadAccess(value); return *this;} /** *A value that indicates whether public write access for the bucket is enabled * through a bucket policy.
*/ inline bool GetAllowsPublicWriteAccess() const{ return m_allowsPublicWriteAccess; } /** *A value that indicates whether public write access for the bucket is enabled * through a bucket policy.
*/ inline bool AllowsPublicWriteAccessHasBeenSet() const { return m_allowsPublicWriteAccessHasBeenSet; } /** *A value that indicates whether public write access for the bucket is enabled * through a bucket policy.
*/ inline void SetAllowsPublicWriteAccess(bool value) { m_allowsPublicWriteAccessHasBeenSet = true; m_allowsPublicWriteAccess = value; } /** *A value that indicates whether public write access for the bucket is enabled * through a bucket policy.
*/ inline BucketPolicy& WithAllowsPublicWriteAccess(bool value) { SetAllowsPublicWriteAccess(value); return *this;} private: bool m_allowsPublicReadAccess; bool m_allowsPublicReadAccessHasBeenSet = false; bool m_allowsPublicWriteAccess; bool m_allowsPublicWriteAccessHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws