AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
NoncurrentVersionTransition.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Xml
16{
17 class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace S3
21{
22namespace Model
23{
24
40 {
41 public:
45
47
48
57 inline int GetNoncurrentDays() const{ return m_noncurrentDays; }
58
67 inline bool NoncurrentDaysHasBeenSet() const { return m_noncurrentDaysHasBeenSet; }
68
77 inline void SetNoncurrentDays(int value) { m_noncurrentDaysHasBeenSet = true; m_noncurrentDays = value; }
78
87 inline NoncurrentVersionTransition& WithNoncurrentDays(int value) { SetNoncurrentDays(value); return *this;}
88
89
93 inline const TransitionStorageClass& GetStorageClass() const{ return m_storageClass; }
94
98 inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
99
103 inline void SetStorageClass(const TransitionStorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
104
108 inline void SetStorageClass(TransitionStorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = std::move(value); }
109
114
118 inline NoncurrentVersionTransition& WithStorageClass(TransitionStorageClass&& value) { SetStorageClass(std::move(value)); return *this;}
119
120
128 inline int GetNewerNoncurrentVersions() const{ return m_newerNoncurrentVersions; }
129
137 inline bool NewerNoncurrentVersionsHasBeenSet() const { return m_newerNoncurrentVersionsHasBeenSet; }
138
146 inline void SetNewerNoncurrentVersions(int value) { m_newerNoncurrentVersionsHasBeenSet = true; m_newerNoncurrentVersions = value; }
147
156
157 private:
158
159 int m_noncurrentDays;
160 bool m_noncurrentDaysHasBeenSet = false;
161
162 TransitionStorageClass m_storageClass;
163 bool m_storageClassHasBeenSet = false;
164
165 int m_newerNoncurrentVersions;
166 bool m_newerNoncurrentVersionsHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace S3
171} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
NoncurrentVersionTransition & WithStorageClass(const TransitionStorageClass &value)
NoncurrentVersionTransition & WithNewerNoncurrentVersions(int value)
void SetStorageClass(const TransitionStorageClass &value)
NoncurrentVersionTransition & WithNoncurrentDays(int value)
NoncurrentVersionTransition & WithStorageClass(TransitionStorageClass &&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 & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const TransitionStorageClass & GetStorageClass() const
void SetStorageClass(TransitionStorageClass &&value)