AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DefaultRetention.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/model/ObjectLockRetentionMode.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Xml
16{
17 class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace S3
21{
22namespace Model
23{
24
37 {
38 public:
39 AWS_S3_API DefaultRetention();
40 AWS_S3_API DefaultRetention(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
44
45
47
52 inline const ObjectLockRetentionMode& GetMode() const{ return m_mode; }
53 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
54 inline void SetMode(const ObjectLockRetentionMode& value) { m_modeHasBeenSet = true; m_mode = value; }
55 inline void SetMode(ObjectLockRetentionMode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); }
56 inline DefaultRetention& WithMode(const ObjectLockRetentionMode& value) { SetMode(value); return *this;}
57 inline DefaultRetention& WithMode(ObjectLockRetentionMode&& value) { SetMode(std::move(value)); return *this;}
59
61
65 inline int GetDays() const{ return m_days; }
66 inline bool DaysHasBeenSet() const { return m_daysHasBeenSet; }
67 inline void SetDays(int value) { m_daysHasBeenSet = true; m_days = value; }
68 inline DefaultRetention& WithDays(int value) { SetDays(value); return *this;}
70
72
76 inline int GetYears() const{ return m_years; }
77 inline bool YearsHasBeenSet() const { return m_yearsHasBeenSet; }
78 inline void SetYears(int value) { m_yearsHasBeenSet = true; m_years = value; }
79 inline DefaultRetention& WithYears(int value) { SetYears(value); return *this;}
81 private:
82
84 bool m_modeHasBeenSet = false;
85
86 int m_days;
87 bool m_daysHasBeenSet = false;
88
89 int m_years;
90 bool m_yearsHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace S3
95} // namespace Aws
DefaultRetention & WithDays(int value)
AWS_S3_API DefaultRetention(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetMode(const ObjectLockRetentionMode &value)
DefaultRetention & WithMode(const ObjectLockRetentionMode &value)
void SetMode(ObjectLockRetentionMode &&value)
AWS_S3_API DefaultRetention & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DefaultRetention & WithYears(int value)
const ObjectLockRetentionMode & GetMode() const
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
DefaultRetention & WithMode(ObjectLockRetentionMode &&value)