AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
S3Retention.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/s3control/model/S3ObjectLockRetentionMode.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
38 {
39 public:
40 AWS_S3CONTROL_API S3Retention() = default;
41 AWS_S3CONTROL_API S3Retention(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_S3CONTROL_API S3Retention& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
45
46
48
52 inline const Aws::Utils::DateTime& GetRetainUntilDate() const { return m_retainUntilDate; }
53 inline bool RetainUntilDateHasBeenSet() const { return m_retainUntilDateHasBeenSet; }
54 template<typename RetainUntilDateT = Aws::Utils::DateTime>
55 void SetRetainUntilDate(RetainUntilDateT&& value) { m_retainUntilDateHasBeenSet = true; m_retainUntilDate = std::forward<RetainUntilDateT>(value); }
56 template<typename RetainUntilDateT = Aws::Utils::DateTime>
57 S3Retention& WithRetainUntilDate(RetainUntilDateT&& value) { SetRetainUntilDate(std::forward<RetainUntilDateT>(value)); return *this;}
59
61
65 inline S3ObjectLockRetentionMode GetMode() const { return m_mode; }
66 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
67 inline void SetMode(S3ObjectLockRetentionMode value) { m_modeHasBeenSet = true; m_mode = value; }
68 inline S3Retention& WithMode(S3ObjectLockRetentionMode value) { SetMode(value); return *this;}
70 private:
71
72 Aws::Utils::DateTime m_retainUntilDate{};
73 bool m_retainUntilDateHasBeenSet = false;
74
76 bool m_modeHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace S3Control
81} // namespace Aws
S3ObjectLockRetentionMode GetMode() const
Definition S3Retention.h:65
void SetMode(S3ObjectLockRetentionMode value)
Definition S3Retention.h:67
S3Retention & WithRetainUntilDate(RetainUntilDateT &&value)
Definition S3Retention.h:57
AWS_S3CONTROL_API S3Retention()=default
void SetRetainUntilDate(RetainUntilDateT &&value)
Definition S3Retention.h:55
const Aws::Utils::DateTime & GetRetainUntilDate() const
Definition S3Retention.h:52
AWS_S3CONTROL_API S3Retention(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3CONTROL_API S3Retention & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
S3Retention & WithMode(S3ObjectLockRetentionMode value)
Definition S3Retention.h:68