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

Contains information about how permissions are configured for the S3 * bucket.

See Also:

AWS * API Reference

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

Contains information about the bucket level permissions for the S3 * bucket.

*/ inline const BucketLevelPermissions& GetBucketLevelPermissions() const{ return m_bucketLevelPermissions; } /** *

Contains information about the bucket level permissions for the S3 * bucket.

*/ inline bool BucketLevelPermissionsHasBeenSet() const { return m_bucketLevelPermissionsHasBeenSet; } /** *

Contains information about the bucket level permissions for the S3 * bucket.

*/ inline void SetBucketLevelPermissions(const BucketLevelPermissions& value) { m_bucketLevelPermissionsHasBeenSet = true; m_bucketLevelPermissions = value; } /** *

Contains information about the bucket level permissions for the S3 * bucket.

*/ inline void SetBucketLevelPermissions(BucketLevelPermissions&& value) { m_bucketLevelPermissionsHasBeenSet = true; m_bucketLevelPermissions = std::move(value); } /** *

Contains information about the bucket level permissions for the S3 * bucket.

*/ inline PermissionConfiguration& WithBucketLevelPermissions(const BucketLevelPermissions& value) { SetBucketLevelPermissions(value); return *this;} /** *

Contains information about the bucket level permissions for the S3 * bucket.

*/ inline PermissionConfiguration& WithBucketLevelPermissions(BucketLevelPermissions&& value) { SetBucketLevelPermissions(std::move(value)); return *this;} /** *

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

*/ inline const AccountLevelPermissions& GetAccountLevelPermissions() const{ return m_accountLevelPermissions; } /** *

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

*/ inline bool AccountLevelPermissionsHasBeenSet() const { return m_accountLevelPermissionsHasBeenSet; } /** *

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

*/ inline void SetAccountLevelPermissions(const AccountLevelPermissions& value) { m_accountLevelPermissionsHasBeenSet = true; m_accountLevelPermissions = value; } /** *

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

*/ inline void SetAccountLevelPermissions(AccountLevelPermissions&& value) { m_accountLevelPermissionsHasBeenSet = true; m_accountLevelPermissions = std::move(value); } /** *

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

*/ inline PermissionConfiguration& WithAccountLevelPermissions(const AccountLevelPermissions& value) { SetAccountLevelPermissions(value); return *this;} /** *

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

*/ inline PermissionConfiguration& WithAccountLevelPermissions(AccountLevelPermissions&& value) { SetAccountLevelPermissions(std::move(value)); return *this;} private: BucketLevelPermissions m_bucketLevelPermissions; bool m_bucketLevelPermissionsHasBeenSet = false; AccountLevelPermissions m_accountLevelPermissions; bool m_accountLevelPermissionsHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws