AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#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:
42 AWS_S3_API NoncurrentVersionTransition() = default;
45
46 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
47
48
50
58 inline int GetNoncurrentDays() const { return m_noncurrentDays; }
59 inline bool NoncurrentDaysHasBeenSet() const { return m_noncurrentDaysHasBeenSet; }
60 inline void SetNoncurrentDays(int value) { m_noncurrentDaysHasBeenSet = true; m_noncurrentDays = value; }
61 inline NoncurrentVersionTransition& WithNoncurrentDays(int value) { SetNoncurrentDays(value); return *this;}
63
65
68 inline TransitionStorageClass GetStorageClass() const { return m_storageClass; }
69 inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
70 inline void SetStorageClass(TransitionStorageClass value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
73
75
84 inline int GetNewerNoncurrentVersions() const { return m_newerNoncurrentVersions; }
85 inline bool NewerNoncurrentVersionsHasBeenSet() const { return m_newerNoncurrentVersionsHasBeenSet; }
86 inline void SetNewerNoncurrentVersions(int value) { m_newerNoncurrentVersionsHasBeenSet = true; m_newerNoncurrentVersions = value; }
89 private:
90
91 int m_noncurrentDays{0};
92 bool m_noncurrentDaysHasBeenSet = false;
93
95 bool m_storageClassHasBeenSet = false;
96
97 int m_newerNoncurrentVersions{0};
98 bool m_newerNoncurrentVersionsHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace S3
103} // 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)