/** * 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 GuardDuty { namespace Model { /** *

Contains information on the current access control policies for the * bucket.

See Also:

AWS * API Reference

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

A value that indicates whether public read access for the bucket is enabled * through an Access Control List (ACL).

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

A value that indicates whether public read access for the bucket is enabled * through an Access Control List (ACL).

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

A value that indicates whether public read access for the bucket is enabled * through an Access Control List (ACL).

*/ 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 an Access Control List (ACL).

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

A value that indicates whether public write access for the bucket is enabled * through an Access Control List (ACL).

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

A value that indicates whether public write access for the bucket is enabled * through an Access Control List (ACL).

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

A value that indicates whether public write access for the bucket is enabled * through an Access Control List (ACL).

*/ 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 an Access Control List (ACL).

*/ 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 GuardDuty } // namespace Aws