AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Xml
16{
17 class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace S3Control
21{
22namespace Model
23{
24
32 {
33 public:
34 AWS_S3CONTROL_API NoncurrentVersionTransition() = default;
35 AWS_S3CONTROL_API NoncurrentVersionTransition(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
40
42
50 inline int GetNoncurrentDays() const { return m_noncurrentDays; }
51 inline bool NoncurrentDaysHasBeenSet() const { return m_noncurrentDaysHasBeenSet; }
52 inline void SetNoncurrentDays(int value) { m_noncurrentDaysHasBeenSet = true; m_noncurrentDays = value; }
53 inline NoncurrentVersionTransition& WithNoncurrentDays(int value) { SetNoncurrentDays(value); return *this;}
55
57
60 inline TransitionStorageClass GetStorageClass() const { return m_storageClass; }
61 inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
62 inline void SetStorageClass(TransitionStorageClass value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
65 private:
66
67 int m_noncurrentDays{0};
68 bool m_noncurrentDaysHasBeenSet = false;
69
71 bool m_storageClassHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace S3Control
76} // 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)