AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
NoncurrentVersionExpiration.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Xml {
12class XmlNode;
13} // namespace Xml
14} // namespace Utils
15namespace S3Control {
16namespace Model {
17
25 public:
26 AWS_S3CONTROL_API NoncurrentVersionExpiration() = default;
27 AWS_S3CONTROL_API NoncurrentVersionExpiration(const Aws::Utils::Xml::XmlNode& xmlNode);
29
30 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
31
33
41 inline int GetNoncurrentDays() const { return m_noncurrentDays; }
42 inline bool NoncurrentDaysHasBeenSet() const { return m_noncurrentDaysHasBeenSet; }
43 inline void SetNoncurrentDays(int value) {
44 m_noncurrentDaysHasBeenSet = true;
45 m_noncurrentDays = value;
46 }
48 SetNoncurrentDays(value);
49 return *this;
50 }
52
54
61 inline int GetNewerNoncurrentVersions() const { return m_newerNoncurrentVersions; }
62 inline bool NewerNoncurrentVersionsHasBeenSet() const { return m_newerNoncurrentVersionsHasBeenSet; }
63 inline void SetNewerNoncurrentVersions(int value) {
64 m_newerNoncurrentVersionsHasBeenSet = true;
65 m_newerNoncurrentVersions = value;
66 }
69 return *this;
70 }
72 private:
73 int m_noncurrentDays{0};
74
75 int m_newerNoncurrentVersions{0};
76 bool m_noncurrentDaysHasBeenSet = false;
77 bool m_newerNoncurrentVersionsHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace S3Control
82} // namespace Aws
NoncurrentVersionExpiration & WithNewerNoncurrentVersions(int value)
NoncurrentVersionExpiration & WithNoncurrentDays(int value)
AWS_S3CONTROL_API NoncurrentVersionExpiration()=default
AWS_S3CONTROL_API NoncurrentVersionExpiration(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3CONTROL_API NoncurrentVersionExpiration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)