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

Provides information about the permissions settings of the bucket-level * access control list (ACL) for an S3 bucket.

See Also:

AWS * API Reference

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

Specifies whether the ACL grants the general public with read access * permissions for the bucket.

*/ inline bool GetAllowsPublicReadAccess() const{ return m_allowsPublicReadAccess; } /** *

Specifies whether the ACL grants the general public with read access * permissions for the bucket.

*/ inline bool AllowsPublicReadAccessHasBeenSet() const { return m_allowsPublicReadAccessHasBeenSet; } /** *

Specifies whether the ACL grants the general public with read access * permissions for the bucket.

*/ inline void SetAllowsPublicReadAccess(bool value) { m_allowsPublicReadAccessHasBeenSet = true; m_allowsPublicReadAccess = value; } /** *

Specifies whether the ACL grants the general public with read access * permissions for the bucket.

*/ inline AccessControlList& WithAllowsPublicReadAccess(bool value) { SetAllowsPublicReadAccess(value); return *this;} /** *

Specifies whether the ACL grants the general public with write access * permissions for the bucket.

*/ inline bool GetAllowsPublicWriteAccess() const{ return m_allowsPublicWriteAccess; } /** *

Specifies whether the ACL grants the general public with write access * permissions for the bucket.

*/ inline bool AllowsPublicWriteAccessHasBeenSet() const { return m_allowsPublicWriteAccessHasBeenSet; } /** *

Specifies whether the ACL grants the general public with write access * permissions for the bucket.

*/ inline void SetAllowsPublicWriteAccess(bool value) { m_allowsPublicWriteAccessHasBeenSet = true; m_allowsPublicWriteAccess = value; } /** *

Specifies whether the ACL grants the general public with write access * permissions for the bucket.

*/ inline AccessControlList& 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 Macie2 } // namespace Aws