AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 const TransitionStorageClass& GetStorageClass() const{ return m_storageClass; }
69 inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
70 inline void SetStorageClass(const TransitionStorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
71 inline void SetStorageClass(TransitionStorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = std::move(value); }
73 inline NoncurrentVersionTransition& WithStorageClass(TransitionStorageClass&& value) { SetStorageClass(std::move(value)); return *this;}
75
77
86 inline int GetNewerNoncurrentVersions() const{ return m_newerNoncurrentVersions; }
87 inline bool NewerNoncurrentVersionsHasBeenSet() const { return m_newerNoncurrentVersionsHasBeenSet; }
88 inline void SetNewerNoncurrentVersions(int value) { m_newerNoncurrentVersionsHasBeenSet = true; m_newerNoncurrentVersions = value; }
91 private:
92
93 int m_noncurrentDays;
94 bool m_noncurrentDaysHasBeenSet = false;
95
96 TransitionStorageClass m_storageClass;
97 bool m_storageClassHasBeenSet = false;
98
99 int m_newerNoncurrentVersions;
100 bool m_newerNoncurrentVersionsHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace S3
105} // namespace Aws
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)