AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
EventHoldDuration.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Xml {
12class XmlNode;
13} // namespace Xml
14} // namespace Utils
15namespace S3 {
16namespace Model {
17
25 public:
26 AWS_S3_API EventHoldDuration() = default;
27 AWS_S3_API EventHoldDuration(const Aws::Utils::Xml::XmlNode& xmlNode);
29
30 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
31
33
37 inline int GetDays() const { return m_days; }
38 inline bool DaysHasBeenSet() const { return m_daysHasBeenSet; }
39 inline void SetDays(int value) {
40 m_daysHasBeenSet = true;
41 m_days = value;
42 }
43 inline EventHoldDuration& WithDays(int value) {
44 SetDays(value);
45 return *this;
46 }
48
50
54 inline int GetYears() const { return m_years; }
55 inline bool YearsHasBeenSet() const { return m_yearsHasBeenSet; }
56 inline void SetYears(int value) {
57 m_yearsHasBeenSet = true;
58 m_years = value;
59 }
60 inline EventHoldDuration& WithYears(int value) {
61 SetYears(value);
62 return *this;
63 }
65 private:
66 int m_days{0};
67
68 int m_years{0};
69 bool m_daysHasBeenSet = false;
70 bool m_yearsHasBeenSet = false;
71};
72
73} // namespace Model
74} // namespace S3
75} // namespace Aws
EventHoldDuration & WithYears(int value)
AWS_S3_API EventHoldDuration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API EventHoldDuration()=default
EventHoldDuration & WithDays(int value)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3_API EventHoldDuration(const Aws::Utils::Xml::XmlNode &xmlNode)