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

Contains information about the account level permissions on the S3 * bucket.

See Also:

AWS * API Reference

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

Describes the S3 Block Public Access settings of the bucket's parent * account.

*/ inline const BlockPublicAccess& GetBlockPublicAccess() const{ return m_blockPublicAccess; } /** *

Describes the S3 Block Public Access settings of the bucket's parent * account.

*/ inline bool BlockPublicAccessHasBeenSet() const { return m_blockPublicAccessHasBeenSet; } /** *

Describes the S3 Block Public Access settings of the bucket's parent * account.

*/ inline void SetBlockPublicAccess(const BlockPublicAccess& value) { m_blockPublicAccessHasBeenSet = true; m_blockPublicAccess = value; } /** *

Describes the S3 Block Public Access settings of the bucket's parent * account.

*/ inline void SetBlockPublicAccess(BlockPublicAccess&& value) { m_blockPublicAccessHasBeenSet = true; m_blockPublicAccess = std::move(value); } /** *

Describes the S3 Block Public Access settings of the bucket's parent * account.

*/ inline AccountLevelPermissions& WithBlockPublicAccess(const BlockPublicAccess& value) { SetBlockPublicAccess(value); return *this;} /** *

Describes the S3 Block Public Access settings of the bucket's parent * account.

*/ inline AccountLevelPermissions& WithBlockPublicAccess(BlockPublicAccess&& value) { SetBlockPublicAccess(std::move(value)); return *this;} private: BlockPublicAccess m_blockPublicAccess; bool m_blockPublicAccessHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws