AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReservedInstancesModification.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/ReservedInstancesModificationResponse.h>
13#include <aws/ec2/model/ReservedInstancesId.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace EC2
26{
27namespace Model
28{
29
36 {
37 public:
41
42 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
53 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
54 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
55 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
56 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
57 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
58 inline ReservedInstancesModification& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
59 inline ReservedInstancesModification& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
60 inline ReservedInstancesModification& WithClientToken(const char* value) { SetClientToken(value); return *this;}
62
64
67 inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
68 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
69 inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
70 inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
72 inline ReservedInstancesModification& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
74
76
79 inline const Aws::Utils::DateTime& GetEffectiveDate() const{ return m_effectiveDate; }
80 inline bool EffectiveDateHasBeenSet() const { return m_effectiveDateHasBeenSet; }
81 inline void SetEffectiveDate(const Aws::Utils::DateTime& value) { m_effectiveDateHasBeenSet = true; m_effectiveDate = value; }
82 inline void SetEffectiveDate(Aws::Utils::DateTime&& value) { m_effectiveDateHasBeenSet = true; m_effectiveDate = std::move(value); }
84 inline ReservedInstancesModification& WithEffectiveDate(Aws::Utils::DateTime&& value) { SetEffectiveDate(std::move(value)); return *this;}
86
88
92 inline const Aws::Vector<ReservedInstancesModificationResponse>& GetModificationResults() const{ return m_modificationResults; }
93 inline bool ModificationResultsHasBeenSet() const { return m_modificationResultsHasBeenSet; }
94 inline void SetModificationResults(const Aws::Vector<ReservedInstancesModificationResponse>& value) { m_modificationResultsHasBeenSet = true; m_modificationResults = value; }
95 inline void SetModificationResults(Aws::Vector<ReservedInstancesModificationResponse>&& value) { m_modificationResultsHasBeenSet = true; m_modificationResults = std::move(value); }
98 inline ReservedInstancesModification& AddModificationResults(const ReservedInstancesModificationResponse& value) { m_modificationResultsHasBeenSet = true; m_modificationResults.push_back(value); return *this; }
99 inline ReservedInstancesModification& AddModificationResults(ReservedInstancesModificationResponse&& value) { m_modificationResultsHasBeenSet = true; m_modificationResults.push_back(std::move(value)); return *this; }
101
103
106 inline const Aws::Vector<ReservedInstancesId>& GetReservedInstancesIds() const{ return m_reservedInstancesIds; }
107 inline bool ReservedInstancesIdsHasBeenSet() const { return m_reservedInstancesIdsHasBeenSet; }
108 inline void SetReservedInstancesIds(const Aws::Vector<ReservedInstancesId>& value) { m_reservedInstancesIdsHasBeenSet = true; m_reservedInstancesIds = value; }
109 inline void SetReservedInstancesIds(Aws::Vector<ReservedInstancesId>&& value) { m_reservedInstancesIdsHasBeenSet = true; m_reservedInstancesIds = std::move(value); }
112 inline ReservedInstancesModification& AddReservedInstancesIds(const ReservedInstancesId& value) { m_reservedInstancesIdsHasBeenSet = true; m_reservedInstancesIds.push_back(value); return *this; }
113 inline ReservedInstancesModification& AddReservedInstancesIds(ReservedInstancesId&& value) { m_reservedInstancesIdsHasBeenSet = true; m_reservedInstancesIds.push_back(std::move(value)); return *this; }
115
117
120 inline const Aws::String& GetReservedInstancesModificationId() const{ return m_reservedInstancesModificationId; }
121 inline bool ReservedInstancesModificationIdHasBeenSet() const { return m_reservedInstancesModificationIdHasBeenSet; }
122 inline void SetReservedInstancesModificationId(const Aws::String& value) { m_reservedInstancesModificationIdHasBeenSet = true; m_reservedInstancesModificationId = value; }
123 inline void SetReservedInstancesModificationId(Aws::String&& value) { m_reservedInstancesModificationIdHasBeenSet = true; m_reservedInstancesModificationId = std::move(value); }
124 inline void SetReservedInstancesModificationId(const char* value) { m_reservedInstancesModificationIdHasBeenSet = true; m_reservedInstancesModificationId.assign(value); }
129
131
134 inline const Aws::String& GetStatus() const{ return m_status; }
135 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
136 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
137 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
138 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
139 inline ReservedInstancesModification& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
140 inline ReservedInstancesModification& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
141 inline ReservedInstancesModification& WithStatus(const char* value) { SetStatus(value); return *this;}
143
145
148 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
149 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
150 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
151 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
152 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
154 inline ReservedInstancesModification& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
155 inline ReservedInstancesModification& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
157
159
162 inline const Aws::Utils::DateTime& GetUpdateDate() const{ return m_updateDate; }
163 inline bool UpdateDateHasBeenSet() const { return m_updateDateHasBeenSet; }
164 inline void SetUpdateDate(const Aws::Utils::DateTime& value) { m_updateDateHasBeenSet = true; m_updateDate = value; }
165 inline void SetUpdateDate(Aws::Utils::DateTime&& value) { m_updateDateHasBeenSet = true; m_updateDate = std::move(value); }
167 inline ReservedInstancesModification& WithUpdateDate(Aws::Utils::DateTime&& value) { SetUpdateDate(std::move(value)); return *this;}
169 private:
170
171 Aws::String m_clientToken;
172 bool m_clientTokenHasBeenSet = false;
173
174 Aws::Utils::DateTime m_createDate;
175 bool m_createDateHasBeenSet = false;
176
177 Aws::Utils::DateTime m_effectiveDate;
178 bool m_effectiveDateHasBeenSet = false;
179
181 bool m_modificationResultsHasBeenSet = false;
182
183 Aws::Vector<ReservedInstancesId> m_reservedInstancesIds;
184 bool m_reservedInstancesIdsHasBeenSet = false;
185
186 Aws::String m_reservedInstancesModificationId;
187 bool m_reservedInstancesModificationIdHasBeenSet = false;
188
189 Aws::String m_status;
190 bool m_statusHasBeenSet = false;
191
192 Aws::String m_statusMessage;
193 bool m_statusMessageHasBeenSet = false;
194
195 Aws::Utils::DateTime m_updateDate;
196 bool m_updateDateHasBeenSet = false;
197 };
198
199} // namespace Model
200} // namespace EC2
201} // namespace Aws
ReservedInstancesModification & WithReservedInstancesModificationId(const Aws::String &value)
ReservedInstancesModification & WithReservedInstancesIds(const Aws::Vector< ReservedInstancesId > &value)
ReservedInstancesModification & WithReservedInstancesIds(Aws::Vector< ReservedInstancesId > &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ReservedInstancesModification & WithClientToken(Aws::String &&value)
const Aws::Vector< ReservedInstancesId > & GetReservedInstancesIds() const
void SetCreateDate(const Aws::Utils::DateTime &value)
ReservedInstancesModification & WithUpdateDate(Aws::Utils::DateTime &&value)
ReservedInstancesModification & AddModificationResults(ReservedInstancesModificationResponse &&value)
ReservedInstancesModification & WithStatusMessage(const char *value)
ReservedInstancesModification & AddReservedInstancesIds(const ReservedInstancesId &value)
ReservedInstancesModification & WithReservedInstancesModificationId(const char *value)
void SetEffectiveDate(const Aws::Utils::DateTime &value)
void SetReservedInstancesIds(Aws::Vector< ReservedInstancesId > &&value)
ReservedInstancesModification & WithModificationResults(Aws::Vector< ReservedInstancesModificationResponse > &&value)
AWS_EC2_API ReservedInstancesModification(const Aws::Utils::Xml::XmlNode &xmlNode)
ReservedInstancesModification & WithUpdateDate(const Aws::Utils::DateTime &value)
void SetUpdateDate(const Aws::Utils::DateTime &value)
void SetReservedInstancesIds(const Aws::Vector< ReservedInstancesId > &value)
ReservedInstancesModification & WithStatus(Aws::String &&value)
ReservedInstancesModification & WithEffectiveDate(Aws::Utils::DateTime &&value)
ReservedInstancesModification & WithStatus(const Aws::String &value)
ReservedInstancesModification & WithStatusMessage(const Aws::String &value)
ReservedInstancesModification & WithStatus(const char *value)
ReservedInstancesModification & AddReservedInstancesIds(ReservedInstancesId &&value)
ReservedInstancesModification & WithClientToken(const char *value)
ReservedInstancesModification & WithReservedInstancesModificationId(Aws::String &&value)
void SetModificationResults(Aws::Vector< ReservedInstancesModificationResponse > &&value)
ReservedInstancesModification & WithCreateDate(const Aws::Utils::DateTime &value)
ReservedInstancesModification & WithEffectiveDate(const Aws::Utils::DateTime &value)
ReservedInstancesModification & WithCreateDate(Aws::Utils::DateTime &&value)
ReservedInstancesModification & AddModificationResults(const ReservedInstancesModificationResponse &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Vector< ReservedInstancesModificationResponse > & GetModificationResults() const
ReservedInstancesModification & WithClientToken(const Aws::String &value)
void SetModificationResults(const Aws::Vector< ReservedInstancesModificationResponse > &value)
AWS_EC2_API ReservedInstancesModification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ReservedInstancesModification & WithModificationResults(const Aws::Vector< ReservedInstancesModificationResponse > &value)
ReservedInstancesModification & WithStatusMessage(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream