AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Transition.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/s3/model/TransitionStorageClass.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_S3_API Transition();
39 AWS_S3_API Transition(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_S3_API Transition& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
43
44
46
50 inline const Aws::Utils::DateTime& GetDate() const{ return m_date; }
51 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
52 inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; }
53 inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); }
54 inline Transition& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;}
55 inline Transition& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(value)); return *this;}
57
59
63 inline int GetDays() const{ return m_days; }
64 inline bool DaysHasBeenSet() const { return m_daysHasBeenSet; }
65 inline void SetDays(int value) { m_daysHasBeenSet = true; m_days = value; }
66 inline Transition& WithDays(int value) { SetDays(value); return *this;}
68
70
73 inline const TransitionStorageClass& GetStorageClass() const{ return m_storageClass; }
74 inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
75 inline void SetStorageClass(const TransitionStorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
76 inline void SetStorageClass(TransitionStorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = std::move(value); }
77 inline Transition& WithStorageClass(const TransitionStorageClass& value) { SetStorageClass(value); return *this;}
78 inline Transition& WithStorageClass(TransitionStorageClass&& value) { SetStorageClass(std::move(value)); return *this;}
80 private:
81
83 bool m_dateHasBeenSet = false;
84
85 int m_days;
86 bool m_daysHasBeenSet = false;
87
88 TransitionStorageClass m_storageClass;
89 bool m_storageClassHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace S3
94} // namespace Aws
bool StorageClassHasBeenSet() const
Definition Transition.h:74
Transition & WithDays(int value)
Definition Transition.h:66
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetDays(int value)
Definition Transition.h:65
void SetStorageClass(TransitionStorageClass &&value)
Definition Transition.h:76
AWS_S3_API Transition(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetStorageClass(const TransitionStorageClass &value)
Definition Transition.h:75
Transition & WithDate(const Aws::Utils::DateTime &value)
Definition Transition.h:54
void SetDate(Aws::Utils::DateTime &&value)
Definition Transition.h:53
Transition & WithStorageClass(const TransitionStorageClass &value)
Definition Transition.h:77
Transition & WithDate(Aws::Utils::DateTime &&value)
Definition Transition.h:55
const TransitionStorageClass & GetStorageClass() const
Definition Transition.h:73
Transition & WithStorageClass(TransitionStorageClass &&value)
Definition Transition.h:78
AWS_S3_API Transition & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool DateHasBeenSet() const
Definition Transition.h:51
bool DaysHasBeenSet() const
Definition Transition.h:64
void SetDate(const Aws::Utils::DateTime &value)
Definition Transition.h:52
const Aws::Utils::DateTime & GetDate() const
Definition Transition.h:50