AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
NoncurrentVersionTransition.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/model/TransitionStorageClass.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Xml {
15class XmlNode;
16} // namespace Xml
17} // namespace Utils
18namespace S3 {
19namespace Model {
20
36 public:
37 AWS_S3_API NoncurrentVersionTransition() = default;
40
41 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
42
44
52 inline int GetNoncurrentDays() const { return m_noncurrentDays; }
53 inline bool NoncurrentDaysHasBeenSet() const { return m_noncurrentDaysHasBeenSet; }
54 inline void SetNoncurrentDays(int value) {
55 m_noncurrentDaysHasBeenSet = true;
56 m_noncurrentDays = value;
57 }
59 SetNoncurrentDays(value);
60 return *this;
61 }
63
65
68 inline TransitionStorageClass GetStorageClass() const { return m_storageClass; }
69 inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
71 m_storageClassHasBeenSet = true;
72 m_storageClass = value;
73 }
75 SetStorageClass(value);
76 return *this;
77 }
79
81
90 inline int GetNewerNoncurrentVersions() const { return m_newerNoncurrentVersions; }
91 inline bool NewerNoncurrentVersionsHasBeenSet() const { return m_newerNoncurrentVersionsHasBeenSet; }
92 inline void SetNewerNoncurrentVersions(int value) {
93 m_newerNoncurrentVersionsHasBeenSet = true;
94 m_newerNoncurrentVersions = value;
95 }
98 return *this;
99 }
101 private:
102 int m_noncurrentDays{0};
103
105
106 int m_newerNoncurrentVersions{0};
107 bool m_noncurrentDaysHasBeenSet = false;
108 bool m_storageClassHasBeenSet = false;
109 bool m_newerNoncurrentVersionsHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace S3
114} // namespace Aws
NoncurrentVersionTransition & WithNewerNoncurrentVersions(int value)
NoncurrentVersionTransition & WithNoncurrentDays(int value)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3_API NoncurrentVersionTransition(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API NoncurrentVersionTransition()=default
AWS_S3_API NoncurrentVersionTransition & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
NoncurrentVersionTransition & WithStorageClass(TransitionStorageClass value)