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

Describes the versioning state of an S3 bucket.

See Also:

AWS * API Reference

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

Specifies whether MFA delete is currently enabled in the S3 bucket versioning * configuration. If the S3 bucket was never configured with MFA delete, then this * attribute is not included.

*/ inline bool GetIsMfaDeleteEnabled() const{ return m_isMfaDeleteEnabled; } /** *

Specifies whether MFA delete is currently enabled in the S3 bucket versioning * configuration. If the S3 bucket was never configured with MFA delete, then this * attribute is not included.

*/ inline bool IsMfaDeleteEnabledHasBeenSet() const { return m_isMfaDeleteEnabledHasBeenSet; } /** *

Specifies whether MFA delete is currently enabled in the S3 bucket versioning * configuration. If the S3 bucket was never configured with MFA delete, then this * attribute is not included.

*/ inline void SetIsMfaDeleteEnabled(bool value) { m_isMfaDeleteEnabledHasBeenSet = true; m_isMfaDeleteEnabled = value; } /** *

Specifies whether MFA delete is currently enabled in the S3 bucket versioning * configuration. If the S3 bucket was never configured with MFA delete, then this * attribute is not included.

*/ inline AwsS3BucketBucketVersioningConfiguration& WithIsMfaDeleteEnabled(bool value) { SetIsMfaDeleteEnabled(value); return *this;} /** *

The versioning status of the S3 bucket. Valid values are Enabled * or Suspended.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The versioning status of the S3 bucket. Valid values are Enabled * or Suspended.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The versioning status of the S3 bucket. Valid values are Enabled * or Suspended.

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The versioning status of the S3 bucket. Valid values are Enabled * or Suspended.

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The versioning status of the S3 bucket. Valid values are Enabled * or Suspended.

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The versioning status of the S3 bucket. Valid values are Enabled * or Suspended.

*/ inline AwsS3BucketBucketVersioningConfiguration& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The versioning status of the S3 bucket. Valid values are Enabled * or Suspended.

*/ inline AwsS3BucketBucketVersioningConfiguration& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The versioning status of the S3 bucket. Valid values are Enabled * or Suspended.

*/ inline AwsS3BucketBucketVersioningConfiguration& WithStatus(const char* value) { SetStatus(value); return *this;} private: bool m_isMfaDeleteEnabled; bool m_isMfaDeleteEnabledHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws