AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
VersioningConfiguration.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3
22{
23namespace Model
24{
25
36 {
37 public:
41
43
44
51 inline const MFADelete& GetMFADelete() const{ return m_mFADelete; }
52
59 inline bool MFADeleteHasBeenSet() const { return m_mFADeleteHasBeenSet; }
60
67 inline void SetMFADelete(const MFADelete& value) { m_mFADeleteHasBeenSet = true; m_mFADelete = value; }
68
75 inline void SetMFADelete(MFADelete&& value) { m_mFADeleteHasBeenSet = true; m_mFADelete = std::move(value); }
76
83 inline VersioningConfiguration& WithMFADelete(const MFADelete& value) { SetMFADelete(value); return *this;}
84
91 inline VersioningConfiguration& WithMFADelete(MFADelete&& value) { SetMFADelete(std::move(value)); return *this;}
92
93
97 inline const BucketVersioningStatus& GetStatus() const{ return m_status; }
98
102 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
103
107 inline void SetStatus(const BucketVersioningStatus& value) { m_statusHasBeenSet = true; m_status = value; }
108
112 inline void SetStatus(BucketVersioningStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
113
117 inline VersioningConfiguration& WithStatus(const BucketVersioningStatus& value) { SetStatus(value); return *this;}
118
122 inline VersioningConfiguration& WithStatus(BucketVersioningStatus&& value) { SetStatus(std::move(value)); return *this;}
123
124 private:
125
126 MFADelete m_mFADelete;
127 bool m_mFADeleteHasBeenSet = false;
128
129 BucketVersioningStatus m_status;
130 bool m_statusHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace S3
135} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
VersioningConfiguration & WithStatus(BucketVersioningStatus &&value)
AWS_S3_API VersioningConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
VersioningConfiguration & WithMFADelete(const MFADelete &value)
const BucketVersioningStatus & GetStatus() const
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
VersioningConfiguration & WithStatus(const BucketVersioningStatus &value)
void SetStatus(BucketVersioningStatus &&value)
void SetStatus(const BucketVersioningStatus &value)
VersioningConfiguration & WithMFADelete(MFADelete &&value)
AWS_S3_API VersioningConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)