AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
NoncurrentVersionExpiration.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Xml
14{
15 class XmlNode;
16} // namespace Xml
17} // namespace Utils
18namespace S3
19{
20namespace Model
21{
22
35 {
36 public:
37 AWS_S3_API NoncurrentVersionExpiration() = default;
40
41 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
42
43
45
55 inline int GetNoncurrentDays() const { return m_noncurrentDays; }
56 inline bool NoncurrentDaysHasBeenSet() const { return m_noncurrentDaysHasBeenSet; }
57 inline void SetNoncurrentDays(int value) { m_noncurrentDaysHasBeenSet = true; m_noncurrentDays = value; }
58 inline NoncurrentVersionExpiration& WithNoncurrentDays(int value) { SetNoncurrentDays(value); return *this;}
60
62
72 inline int GetNewerNoncurrentVersions() const { return m_newerNoncurrentVersions; }
73 inline bool NewerNoncurrentVersionsHasBeenSet() const { return m_newerNoncurrentVersionsHasBeenSet; }
74 inline void SetNewerNoncurrentVersions(int value) { m_newerNoncurrentVersionsHasBeenSet = true; m_newerNoncurrentVersions = value; }
77 private:
78
79 int m_noncurrentDays{0};
80 bool m_noncurrentDaysHasBeenSet = false;
81
82 int m_newerNoncurrentVersions{0};
83 bool m_newerNoncurrentVersionsHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace S3
88} // 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