AWS SDK for C++  1.8.154
AWS SDK for C++
Transition.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace S3Control
22 {
23 namespace Model
24 {
25 
36  {
37  public:
41 
42  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
43 
44 
49  inline const Aws::Utils::DateTime& GetDate() const{ return m_date; }
50 
55  inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
56 
61  inline void SetDate(const Aws::Utils::DateTime& value) { m_dateHasBeenSet = true; m_date = value; }
62 
67  inline void SetDate(Aws::Utils::DateTime&& value) { m_dateHasBeenSet = true; m_date = std::move(value); }
68 
73  inline Transition& WithDate(const Aws::Utils::DateTime& value) { SetDate(value); return *this;}
74 
79  inline Transition& WithDate(Aws::Utils::DateTime&& value) { SetDate(std::move(value)); return *this;}
80 
81 
86  inline int GetDays() const{ return m_days; }
87 
92  inline bool DaysHasBeenSet() const { return m_daysHasBeenSet; }
93 
98  inline void SetDays(int value) { m_daysHasBeenSet = true; m_days = value; }
99 
104  inline Transition& WithDays(int value) { SetDays(value); return *this;}
105 
106 
110  inline const TransitionStorageClass& GetStorageClass() const{ return m_storageClass; }
111 
115  inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
116 
120  inline void SetStorageClass(const TransitionStorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
121 
125  inline void SetStorageClass(TransitionStorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = std::move(value); }
126 
130  inline Transition& WithStorageClass(const TransitionStorageClass& value) { SetStorageClass(value); return *this;}
131 
135  inline Transition& WithStorageClass(TransitionStorageClass&& value) { SetStorageClass(std::move(value)); return *this;}
136 
137  private:
138 
139  Aws::Utils::DateTime m_date;
140  bool m_dateHasBeenSet;
141 
142  int m_days;
143  bool m_daysHasBeenSet;
144 
145  TransitionStorageClass m_storageClass;
146  bool m_storageClassHasBeenSet;
147  };
148 
149 } // namespace Model
150 } // namespace S3Control
151 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::S3Control::Model::Transition::SetDate
void SetDate(Aws::Utils::DateTime &&value)
Definition: Transition.h:67
Aws::S3Control::Model::Transition::WithDate
Transition & WithDate(const Aws::Utils::DateTime &value)
Definition: Transition.h:73
Aws::S3Control::Model::Transition::WithStorageClass
Transition & WithStorageClass(TransitionStorageClass &&value)
Definition: Transition.h:135
DateTime.h
Aws::S3Control::Model::Transition::Transition
Transition(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3Control::Model::Transition::SetStorageClass
void SetStorageClass(const TransitionStorageClass &value)
Definition: Transition.h:120
Aws::S3Control::Model::Transition::StorageClassHasBeenSet
bool StorageClassHasBeenSet() const
Definition: Transition.h:115
Aws::S3Control::Model::Transition::operator=
Transition & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::S3Control::Model::Transition::Transition
Transition()
Aws::S3Control::Model::Transition::WithDate
Transition & WithDate(Aws::Utils::DateTime &&value)
Definition: Transition.h:79
S3Control_EXPORTS.h
Aws::S3Control::Model::Transition::SetDate
void SetDate(const Aws::Utils::DateTime &value)
Definition: Transition.h:61
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::S3Control::Model::Transition::GetStorageClass
const TransitionStorageClass & GetStorageClass() const
Definition: Transition.h:110
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::Transition::GetDate
const Aws::Utils::DateTime & GetDate() const
Definition: Transition.h:49
Aws::S3Control::Model::Transition
Definition: Transition.h:36
Aws::S3Control::Model::Transition::GetDays
int GetDays() const
Definition: Transition.h:86
Aws::S3Control::Model::Transition::DateHasBeenSet
bool DateHasBeenSet() const
Definition: Transition.h:55
Aws::S3Control::Model::Transition::SetStorageClass
void SetStorageClass(TransitionStorageClass &&value)
Definition: Transition.h:125
Aws
Definition: AccessManagementClient.h:15
Aws::S3Control::Model::Transition::DaysHasBeenSet
bool DaysHasBeenSet() const
Definition: Transition.h:92
Aws::S3Control::Model::TransitionStorageClass
TransitionStorageClass
Definition: TransitionStorageClass.h:17
Aws::S3Control::Model::Transition::WithStorageClass
Transition & WithStorageClass(const TransitionStorageClass &value)
Definition: Transition.h:130
Aws::S3Control::Model::Transition::WithDays
Transition & WithDays(int value)
Definition: Transition.h:104
Aws::S3Control::Model::Transition::SetDays
void SetDays(int value)
Definition: Transition.h:98
Aws::S3Control::Model::Transition::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
TransitionStorageClass.h