AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
NoncurrentVersionExpiration.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
30 public:
31 AWS_S3_API NoncurrentVersionExpiration() = default;
34
35 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
36
38
48 inline int GetNoncurrentDays() const { return m_noncurrentDays; }
49 inline bool NoncurrentDaysHasBeenSet() const { return m_noncurrentDaysHasBeenSet; }
50 inline void SetNoncurrentDays(int value) {
51 m_noncurrentDaysHasBeenSet = true;
52 m_noncurrentDays = value;
53 }
55 SetNoncurrentDays(value);
56 return *this;
57 }
59
61
71 inline int GetNewerNoncurrentVersions() const { return m_newerNoncurrentVersions; }
72 inline bool NewerNoncurrentVersionsHasBeenSet() const { return m_newerNoncurrentVersionsHasBeenSet; }
73 inline void SetNewerNoncurrentVersions(int value) {
74 m_newerNoncurrentVersionsHasBeenSet = true;
75 m_newerNoncurrentVersions = value;
76 }
79 return *this;
80 }
82 private:
83 int m_noncurrentDays{0};
84
85 int m_newerNoncurrentVersions{0};
86 bool m_noncurrentDaysHasBeenSet = false;
87 bool m_newerNoncurrentVersionsHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace S3
92} // namespace Aws
NoncurrentVersionExpiration & WithNoncurrentDays(int value)
NoncurrentVersionExpiration & WithNewerNoncurrentVersions(int value)
AWS_S3_API NoncurrentVersionExpiration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API NoncurrentVersionExpiration(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3_API NoncurrentVersionExpiration()=default