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/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/s3-crt/model/MFADelete.h>
9#include <aws/s3-crt/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 S3Crt
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_S3CRT_API VersioningConfiguration();
41
42 AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
43
44
46
52 inline const MFADelete& GetMFADelete() const{ return m_mFADelete; }
53 inline bool MFADeleteHasBeenSet() const { return m_mFADeleteHasBeenSet; }
54 inline void SetMFADelete(const MFADelete& value) { m_mFADeleteHasBeenSet = true; m_mFADelete = value; }
55 inline void SetMFADelete(MFADelete&& value) { m_mFADeleteHasBeenSet = true; m_mFADelete = std::move(value); }
56 inline VersioningConfiguration& WithMFADelete(const MFADelete& value) { SetMFADelete(value); return *this;}
57 inline VersioningConfiguration& WithMFADelete(MFADelete&& value) { SetMFADelete(std::move(value)); return *this;}
59
61
64 inline const BucketVersioningStatus& GetStatus() const{ return m_status; }
65 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
66 inline void SetStatus(const BucketVersioningStatus& value) { m_statusHasBeenSet = true; m_status = value; }
67 inline void SetStatus(BucketVersioningStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
68 inline VersioningConfiguration& WithStatus(const BucketVersioningStatus& value) { SetStatus(value); return *this;}
69 inline VersioningConfiguration& WithStatus(BucketVersioningStatus&& value) { SetStatus(std::move(value)); return *this;}
71 private:
72
73 MFADelete m_mFADelete;
74 bool m_mFADeleteHasBeenSet = false;
75
77 bool m_statusHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace S3Crt
82} // namespace Aws
void SetStatus(BucketVersioningStatus &&value)
AWS_S3CRT_API VersioningConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetStatus(const BucketVersioningStatus &value)
VersioningConfiguration & WithStatus(const BucketVersioningStatus &value)
AWS_S3CRT_API VersioningConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
VersioningConfiguration & WithMFADelete(const MFADelete &value)
VersioningConfiguration & WithStatus(BucketVersioningStatus &&value)
VersioningConfiguration & WithMFADelete(MFADelete &&value)
const BucketVersioningStatus & GetStatus() const