AWS SDK for C++  1.8.154
AWS SDK for C++
NoncurrentVersionTransition.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Xml
16 {
17  class XmlNode;
18 } // namespace Xml
19 } // namespace Utils
20 namespace S3Control
21 {
22 namespace Model
23 {
24 
32  {
33  public:
37 
38  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39 
40 
49  inline int GetNoncurrentDays() const{ return m_noncurrentDays; }
50 
59  inline bool NoncurrentDaysHasBeenSet() const { return m_noncurrentDaysHasBeenSet; }
60 
69  inline void SetNoncurrentDays(int value) { m_noncurrentDaysHasBeenSet = true; m_noncurrentDays = value; }
70 
79  inline NoncurrentVersionTransition& WithNoncurrentDays(int value) { SetNoncurrentDays(value); return *this;}
80 
81 
85  inline const TransitionStorageClass& GetStorageClass() const{ return m_storageClass; }
86 
90  inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
91 
95  inline void SetStorageClass(const TransitionStorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
96 
100  inline void SetStorageClass(TransitionStorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = std::move(value); }
101 
105  inline NoncurrentVersionTransition& WithStorageClass(const TransitionStorageClass& value) { SetStorageClass(value); return *this;}
106 
110  inline NoncurrentVersionTransition& WithStorageClass(TransitionStorageClass&& value) { SetStorageClass(std::move(value)); return *this;}
111 
112  private:
113 
114  int m_noncurrentDays;
115  bool m_noncurrentDaysHasBeenSet;
116 
117  TransitionStorageClass m_storageClass;
118  bool m_storageClassHasBeenSet;
119  };
120 
121 } // namespace Model
122 } // namespace S3Control
123 } // namespace Aws
Aws::S3Control::Model::NoncurrentVersionTransition::SetStorageClass
void SetStorageClass(TransitionStorageClass &&value)
Definition: NoncurrentVersionTransition.h:100
Aws::S3Control::Model::NoncurrentVersionTransition::NoncurrentVersionTransition
NoncurrentVersionTransition()
Aws::S3Control::Model::NoncurrentVersionTransition::operator=
NoncurrentVersionTransition & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3Control::Model::NoncurrentVersionTransition
Definition: NoncurrentVersionTransition.h:32
S3Control_EXPORTS.h
Aws::S3Control::Model::NoncurrentVersionTransition::WithStorageClass
NoncurrentVersionTransition & WithStorageClass(TransitionStorageClass &&value)
Definition: NoncurrentVersionTransition.h:110
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::S3Control::Model::NoncurrentVersionTransition::NoncurrentDaysHasBeenSet
bool NoncurrentDaysHasBeenSet() const
Definition: NoncurrentVersionTransition.h:59
Aws::S3Control::Model::NoncurrentVersionTransition::NoncurrentVersionTransition
NoncurrentVersionTransition(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::NoncurrentVersionTransition::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::S3Control::Model::NoncurrentVersionTransition::GetStorageClass
const TransitionStorageClass & GetStorageClass() const
Definition: NoncurrentVersionTransition.h:85
Aws::S3Control::Model::NoncurrentVersionTransition::StorageClassHasBeenSet
bool StorageClassHasBeenSet() const
Definition: NoncurrentVersionTransition.h:90
Aws::S3Control::Model::NoncurrentVersionTransition::WithNoncurrentDays
NoncurrentVersionTransition & WithNoncurrentDays(int value)
Definition: NoncurrentVersionTransition.h:79
Aws::S3Control::Model::NoncurrentVersionTransition::WithStorageClass
NoncurrentVersionTransition & WithStorageClass(const TransitionStorageClass &value)
Definition: NoncurrentVersionTransition.h:105
Aws::S3Control::Model::NoncurrentVersionTransition::GetNoncurrentDays
int GetNoncurrentDays() const
Definition: NoncurrentVersionTransition.h:49
Aws
Definition: AccessManagementClient.h:15
Aws::S3Control::Model::TransitionStorageClass
TransitionStorageClass
Definition: TransitionStorageClass.h:17
Aws::S3Control::Model::NoncurrentVersionTransition::SetNoncurrentDays
void SetNoncurrentDays(int value)
Definition: NoncurrentVersionTransition.h:69
TransitionStorageClass.h
Aws::S3Control::Model::NoncurrentVersionTransition::SetStorageClass
void SetStorageClass(const TransitionStorageClass &value)
Definition: NoncurrentVersionTransition.h:95