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/s3control/S3Control_EXPORTS.h>
8#include <aws/s3control/model/TransitionStorageClass.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Xml {
15class XmlNode;
16} // namespace Xml
17} // namespace Utils
18namespace S3Control {
19namespace Model {
20
28 public:
29 AWS_S3CONTROL_API NoncurrentVersionTransition() = default;
30 AWS_S3CONTROL_API NoncurrentVersionTransition(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
34
36
44 inline int GetNoncurrentDays() const { return m_noncurrentDays; }
45 inline bool NoncurrentDaysHasBeenSet() const { return m_noncurrentDaysHasBeenSet; }
46 inline void SetNoncurrentDays(int value) {
47 m_noncurrentDaysHasBeenSet = true;
48 m_noncurrentDays = value;
49 }
51 SetNoncurrentDays(value);
52 return *this;
53 }
55
57
60 inline TransitionStorageClass GetStorageClass() const { return m_storageClass; }
61 inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
63 m_storageClassHasBeenSet = true;
64 m_storageClass = value;
65 }
67 SetStorageClass(value);
68 return *this;
69 }
71 private:
72 int m_noncurrentDays{0};
73
75 bool m_noncurrentDaysHasBeenSet = false;
76 bool m_storageClassHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace S3Control
81} // namespace Aws
AWS_S3CONTROL_API NoncurrentVersionTransition(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
NoncurrentVersionTransition & WithStorageClass(TransitionStorageClass value)
NoncurrentVersionTransition & WithNoncurrentDays(int value)
AWS_S3CONTROL_API NoncurrentVersionTransition()=default
AWS_S3CONTROL_API NoncurrentVersionTransition & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)