AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VersioningConfiguration.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/s3control/model/MFADelete.h>
9#include <aws/s3control/model/BucketVersioningStatus.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3Control
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_S3CONTROL_API VersioningConfiguration();
38 AWS_S3CONTROL_API VersioningConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
42
43
45
49 inline const MFADelete& GetMFADelete() const{ return m_mFADelete; }
50 inline bool MFADeleteHasBeenSet() const { return m_mFADeleteHasBeenSet; }
51 inline void SetMFADelete(const MFADelete& value) { m_mFADeleteHasBeenSet = true; m_mFADelete = value; }
52 inline void SetMFADelete(MFADelete&& value) { m_mFADeleteHasBeenSet = true; m_mFADelete = std::move(value); }
53 inline VersioningConfiguration& WithMFADelete(const MFADelete& value) { SetMFADelete(value); return *this;}
54 inline VersioningConfiguration& WithMFADelete(MFADelete&& value) { SetMFADelete(std::move(value)); return *this;}
56
58
61 inline const BucketVersioningStatus& GetStatus() const{ return m_status; }
62 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
63 inline void SetStatus(const BucketVersioningStatus& value) { m_statusHasBeenSet = true; m_status = value; }
64 inline void SetStatus(BucketVersioningStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
65 inline VersioningConfiguration& WithStatus(const BucketVersioningStatus& value) { SetStatus(value); return *this;}
66 inline VersioningConfiguration& WithStatus(BucketVersioningStatus&& value) { SetStatus(std::move(value)); return *this;}
68 private:
69
70 MFADelete m_mFADelete;
71 bool m_mFADeleteHasBeenSet = false;
72
74 bool m_statusHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace S3Control
79} // namespace Aws
const BucketVersioningStatus & GetStatus() const
VersioningConfiguration & WithStatus(BucketVersioningStatus &&value)
AWS_S3CONTROL_API VersioningConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
VersioningConfiguration & WithStatus(const BucketVersioningStatus &value)
void SetStatus(BucketVersioningStatus &&value)
AWS_S3CONTROL_API VersioningConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
VersioningConfiguration & WithMFADelete(MFADelete &&value)
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
VersioningConfiguration & WithMFADelete(const MFADelete &value)
void SetStatus(const BucketVersioningStatus &value)