AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ObjectLockRetention.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/model/ObjectLockRetentionMode.h>
9#include <aws/core/utils/DateTime.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
32 {
33 public:
34 AWS_S3_API ObjectLockRetention() = default;
37
38 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
40
42
45 inline ObjectLockRetentionMode GetMode() const { return m_mode; }
46 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
47 inline void SetMode(ObjectLockRetentionMode value) { m_modeHasBeenSet = true; m_mode = value; }
48 inline ObjectLockRetention& WithMode(ObjectLockRetentionMode value) { SetMode(value); return *this;}
50
52
55 inline const Aws::Utils::DateTime& GetRetainUntilDate() const { return m_retainUntilDate; }
56 inline bool RetainUntilDateHasBeenSet() const { return m_retainUntilDateHasBeenSet; }
57 template<typename RetainUntilDateT = Aws::Utils::DateTime>
58 void SetRetainUntilDate(RetainUntilDateT&& value) { m_retainUntilDateHasBeenSet = true; m_retainUntilDate = std::forward<RetainUntilDateT>(value); }
59 template<typename RetainUntilDateT = Aws::Utils::DateTime>
60 ObjectLockRetention& WithRetainUntilDate(RetainUntilDateT&& value) { SetRetainUntilDate(std::forward<RetainUntilDateT>(value)); return *this;}
62 private:
63
65 bool m_modeHasBeenSet = false;
66
67 Aws::Utils::DateTime m_retainUntilDate{};
68 bool m_retainUntilDateHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace S3
73} // namespace Aws
void SetMode(ObjectLockRetentionMode value)
AWS_S3_API ObjectLockRetention()=default
void SetRetainUntilDate(RetainUntilDateT &&value)
AWS_S3_API ObjectLockRetention(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API ObjectLockRetention & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
ObjectLockRetention & WithRetainUntilDate(RetainUntilDateT &&value)
ObjectLockRetention & WithMode(ObjectLockRetentionMode value)
ObjectLockRetentionMode GetMode() const
const Aws::Utils::DateTime & GetRetainUntilDate() const