AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
DefaultRetention.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.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:
42
44
45
51 inline const ObjectLockRetentionMode& GetMode() const{ return m_mode; }
52
58 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
59
65 inline void SetMode(const ObjectLockRetentionMode& value) { m_modeHasBeenSet = true; m_mode = value; }
66
72 inline void SetMode(ObjectLockRetentionMode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); }
73
79 inline DefaultRetention& WithMode(const ObjectLockRetentionMode& value) { SetMode(value); return *this;}
80
86 inline DefaultRetention& WithMode(ObjectLockRetentionMode&& value) { SetMode(std::move(value)); return *this;}
87
88
93 inline int GetDays() const{ return m_days; }
94
99 inline bool DaysHasBeenSet() const { return m_daysHasBeenSet; }
100
105 inline void SetDays(int value) { m_daysHasBeenSet = true; m_days = value; }
106
111 inline DefaultRetention& WithDays(int value) { SetDays(value); return *this;}
112
113
118 inline int GetYears() const{ return m_years; }
119
124 inline bool YearsHasBeenSet() const { return m_yearsHasBeenSet; }
125
130 inline void SetYears(int value) { m_yearsHasBeenSet = true; m_years = value; }
131
136 inline DefaultRetention& WithYears(int value) { SetYears(value); return *this;}
137
138 private:
139
141 bool m_modeHasBeenSet = false;
142
143 int m_days;
144 bool m_daysHasBeenSet = false;
145
146 int m_years;
147 bool m_yearsHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace S3
152} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
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)