/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace S3Control { namespace Model { /** *

Describes the versioning state of an Amazon S3 on Outposts bucket. For more * information, see PutBucketVersioning.

See * Also:

AWS * API Reference

*/ class VersioningConfiguration { public: AWS_S3CONTROL_API VersioningConfiguration(); AWS_S3CONTROL_API VersioningConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_S3CONTROL_API VersioningConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

Specifies whether MFA delete is enabled or disabled in the bucket versioning * configuration for the S3 on Outposts bucket.

*/ inline const MFADelete& GetMFADelete() const{ return m_mFADelete; } /** *

Specifies whether MFA delete is enabled or disabled in the bucket versioning * configuration for the S3 on Outposts bucket.

*/ inline bool MFADeleteHasBeenSet() const { return m_mFADeleteHasBeenSet; } /** *

Specifies whether MFA delete is enabled or disabled in the bucket versioning * configuration for the S3 on Outposts bucket.

*/ inline void SetMFADelete(const MFADelete& value) { m_mFADeleteHasBeenSet = true; m_mFADelete = value; } /** *

Specifies whether MFA delete is enabled or disabled in the bucket versioning * configuration for the S3 on Outposts bucket.

*/ inline void SetMFADelete(MFADelete&& value) { m_mFADeleteHasBeenSet = true; m_mFADelete = std::move(value); } /** *

Specifies whether MFA delete is enabled or disabled in the bucket versioning * configuration for the S3 on Outposts bucket.

*/ inline VersioningConfiguration& WithMFADelete(const MFADelete& value) { SetMFADelete(value); return *this;} /** *

Specifies whether MFA delete is enabled or disabled in the bucket versioning * configuration for the S3 on Outposts bucket.

*/ inline VersioningConfiguration& WithMFADelete(MFADelete&& value) { SetMFADelete(std::move(value)); return *this;} /** *

Sets the versioning state of the S3 on Outposts bucket.

*/ inline const BucketVersioningStatus& GetStatus() const{ return m_status; } /** *

Sets the versioning state of the S3 on Outposts bucket.

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

Sets the versioning state of the S3 on Outposts bucket.

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

Sets the versioning state of the S3 on Outposts bucket.

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

Sets the versioning state of the S3 on Outposts bucket.

*/ inline VersioningConfiguration& WithStatus(const BucketVersioningStatus& value) { SetStatus(value); return *this;} /** *

Sets the versioning state of the S3 on Outposts bucket.

*/ inline VersioningConfiguration& WithStatus(BucketVersioningStatus&& value) { SetStatus(std::move(value)); return *this;} private: MFADelete m_mFADelete; bool m_mFADeleteHasBeenSet = false; BucketVersioningStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace S3Control } // namespace Aws