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

Provides information about the permissions settings that determine whether an * S3 bucket is publicly accessible.

See Also:

AWS * API Reference

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

Specifies whether the bucket is publicly accessible due to the combination of * permissions settings that apply to the bucket. Possible values are:

*
  • NOT_PUBLIC - The bucket isn't publicly accessible.

  • *
  • PUBLIC - The bucket is publicly accessible.

  • UNKNOWN - * Amazon Macie can't determine whether the bucket is publicly * accessible.

*/ inline const EffectivePermission& GetEffectivePermission() const{ return m_effectivePermission; } /** *

Specifies whether the bucket is publicly accessible due to the combination of * permissions settings that apply to the bucket. Possible values are:

*
  • NOT_PUBLIC - The bucket isn't publicly accessible.

  • *
  • PUBLIC - The bucket is publicly accessible.

  • UNKNOWN - * Amazon Macie can't determine whether the bucket is publicly * accessible.

*/ inline bool EffectivePermissionHasBeenSet() const { return m_effectivePermissionHasBeenSet; } /** *

Specifies whether the bucket is publicly accessible due to the combination of * permissions settings that apply to the bucket. Possible values are:

*
  • NOT_PUBLIC - The bucket isn't publicly accessible.

  • *
  • PUBLIC - The bucket is publicly accessible.

  • UNKNOWN - * Amazon Macie can't determine whether the bucket is publicly * accessible.

*/ inline void SetEffectivePermission(const EffectivePermission& value) { m_effectivePermissionHasBeenSet = true; m_effectivePermission = value; } /** *

Specifies whether the bucket is publicly accessible due to the combination of * permissions settings that apply to the bucket. Possible values are:

*
  • NOT_PUBLIC - The bucket isn't publicly accessible.

  • *
  • PUBLIC - The bucket is publicly accessible.

  • UNKNOWN - * Amazon Macie can't determine whether the bucket is publicly * accessible.

*/ inline void SetEffectivePermission(EffectivePermission&& value) { m_effectivePermissionHasBeenSet = true; m_effectivePermission = std::move(value); } /** *

Specifies whether the bucket is publicly accessible due to the combination of * permissions settings that apply to the bucket. Possible values are:

*
  • NOT_PUBLIC - The bucket isn't publicly accessible.

  • *
  • PUBLIC - The bucket is publicly accessible.

  • UNKNOWN - * Amazon Macie can't determine whether the bucket is publicly * accessible.

*/ inline BucketPublicAccess& WithEffectivePermission(const EffectivePermission& value) { SetEffectivePermission(value); return *this;} /** *

Specifies whether the bucket is publicly accessible due to the combination of * permissions settings that apply to the bucket. Possible values are:

*
  • NOT_PUBLIC - The bucket isn't publicly accessible.

  • *
  • PUBLIC - The bucket is publicly accessible.

  • UNKNOWN - * Amazon Macie can't determine whether the bucket is publicly * accessible.

*/ inline BucketPublicAccess& WithEffectivePermission(EffectivePermission&& value) { SetEffectivePermission(std::move(value)); return *this;} /** *

The account-level and bucket-level permissions settings for the bucket.

*/ inline const BucketPermissionConfiguration& GetPermissionConfiguration() const{ return m_permissionConfiguration; } /** *

The account-level and bucket-level permissions settings for the bucket.

*/ inline bool PermissionConfigurationHasBeenSet() const { return m_permissionConfigurationHasBeenSet; } /** *

The account-level and bucket-level permissions settings for the bucket.

*/ inline void SetPermissionConfiguration(const BucketPermissionConfiguration& value) { m_permissionConfigurationHasBeenSet = true; m_permissionConfiguration = value; } /** *

The account-level and bucket-level permissions settings for the bucket.

*/ inline void SetPermissionConfiguration(BucketPermissionConfiguration&& value) { m_permissionConfigurationHasBeenSet = true; m_permissionConfiguration = std::move(value); } /** *

The account-level and bucket-level permissions settings for the bucket.

*/ inline BucketPublicAccess& WithPermissionConfiguration(const BucketPermissionConfiguration& value) { SetPermissionConfiguration(value); return *this;} /** *

The account-level and bucket-level permissions settings for the bucket.

*/ inline BucketPublicAccess& WithPermissionConfiguration(BucketPermissionConfiguration&& value) { SetPermissionConfiguration(std::move(value)); return *this;} private: EffectivePermission m_effectivePermission; bool m_effectivePermissionHasBeenSet = false; BucketPermissionConfiguration m_permissionConfiguration; bool m_permissionConfigurationHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws