AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceRefresh.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/autoscaling/model/InstanceRefreshStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/autoscaling/model/InstanceRefreshProgressDetails.h>
13#include <aws/autoscaling/model/RefreshPreferences.h>
14#include <aws/autoscaling/model/DesiredConfiguration.h>
15#include <aws/autoscaling/model/RollbackDetails.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Xml
23{
24 class XmlNode;
25} // namespace Xml
26} // namespace Utils
27namespace AutoScaling
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_AUTOSCALING_API InstanceRefresh();
42 AWS_AUTOSCALING_API InstanceRefresh(const Aws::Utils::Xml::XmlNode& xmlNode);
43 AWS_AUTOSCALING_API InstanceRefresh& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44
45 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
47
48
50
53 inline const Aws::String& GetInstanceRefreshId() const{ return m_instanceRefreshId; }
54 inline bool InstanceRefreshIdHasBeenSet() const { return m_instanceRefreshIdHasBeenSet; }
55 inline void SetInstanceRefreshId(const Aws::String& value) { m_instanceRefreshIdHasBeenSet = true; m_instanceRefreshId = value; }
56 inline void SetInstanceRefreshId(Aws::String&& value) { m_instanceRefreshIdHasBeenSet = true; m_instanceRefreshId = std::move(value); }
57 inline void SetInstanceRefreshId(const char* value) { m_instanceRefreshIdHasBeenSet = true; m_instanceRefreshId.assign(value); }
58 inline InstanceRefresh& WithInstanceRefreshId(const Aws::String& value) { SetInstanceRefreshId(value); return *this;}
59 inline InstanceRefresh& WithInstanceRefreshId(Aws::String&& value) { SetInstanceRefreshId(std::move(value)); return *this;}
60 inline InstanceRefresh& WithInstanceRefreshId(const char* value) { SetInstanceRefreshId(value); return *this;}
62
64
67 inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
68 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
69 inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
70 inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); }
71 inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
72 inline InstanceRefresh& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;}
73 inline InstanceRefresh& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(std::move(value)); return *this;}
74 inline InstanceRefresh& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
76
78
96 inline const InstanceRefreshStatus& GetStatus() const{ return m_status; }
97 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98 inline void SetStatus(const InstanceRefreshStatus& value) { m_statusHasBeenSet = true; m_status = value; }
99 inline void SetStatus(InstanceRefreshStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
100 inline InstanceRefresh& WithStatus(const InstanceRefreshStatus& value) { SetStatus(value); return *this;}
101 inline InstanceRefresh& WithStatus(InstanceRefreshStatus&& value) { SetStatus(std::move(value)); return *this;}
103
105
108 inline const Aws::String& GetStatusReason() const{ return m_statusReason; }
109 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
110 inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
111 inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
112 inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); }
113 inline InstanceRefresh& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;}
114 inline InstanceRefresh& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;}
115 inline InstanceRefresh& WithStatusReason(const char* value) { SetStatusReason(value); return *this;}
117
119
122 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
123 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
124 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
125 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
126 inline InstanceRefresh& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
127 inline InstanceRefresh& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
129
131
134 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
135 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
136 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
137 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
138 inline InstanceRefresh& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
139 inline InstanceRefresh& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
141
143
152 inline int GetPercentageComplete() const{ return m_percentageComplete; }
153 inline bool PercentageCompleteHasBeenSet() const { return m_percentageCompleteHasBeenSet; }
154 inline void SetPercentageComplete(int value) { m_percentageCompleteHasBeenSet = true; m_percentageComplete = value; }
155 inline InstanceRefresh& WithPercentageComplete(int value) { SetPercentageComplete(value); return *this;}
157
159
166 inline int GetInstancesToUpdate() const{ return m_instancesToUpdate; }
167 inline bool InstancesToUpdateHasBeenSet() const { return m_instancesToUpdateHasBeenSet; }
168 inline void SetInstancesToUpdate(int value) { m_instancesToUpdateHasBeenSet = true; m_instancesToUpdate = value; }
169 inline InstanceRefresh& WithInstancesToUpdate(int value) { SetInstancesToUpdate(value); return *this;}
171
173
177 inline const InstanceRefreshProgressDetails& GetProgressDetails() const{ return m_progressDetails; }
178 inline bool ProgressDetailsHasBeenSet() const { return m_progressDetailsHasBeenSet; }
179 inline void SetProgressDetails(const InstanceRefreshProgressDetails& value) { m_progressDetailsHasBeenSet = true; m_progressDetails = value; }
180 inline void SetProgressDetails(InstanceRefreshProgressDetails&& value) { m_progressDetailsHasBeenSet = true; m_progressDetails = std::move(value); }
184
186
189 inline const RefreshPreferences& GetPreferences() const{ return m_preferences; }
190 inline bool PreferencesHasBeenSet() const { return m_preferencesHasBeenSet; }
191 inline void SetPreferences(const RefreshPreferences& value) { m_preferencesHasBeenSet = true; m_preferences = value; }
192 inline void SetPreferences(RefreshPreferences&& value) { m_preferencesHasBeenSet = true; m_preferences = std::move(value); }
193 inline InstanceRefresh& WithPreferences(const RefreshPreferences& value) { SetPreferences(value); return *this;}
194 inline InstanceRefresh& WithPreferences(RefreshPreferences&& value) { SetPreferences(std::move(value)); return *this;}
196
198
201 inline const DesiredConfiguration& GetDesiredConfiguration() const{ return m_desiredConfiguration; }
202 inline bool DesiredConfigurationHasBeenSet() const { return m_desiredConfigurationHasBeenSet; }
203 inline void SetDesiredConfiguration(const DesiredConfiguration& value) { m_desiredConfigurationHasBeenSet = true; m_desiredConfiguration = value; }
204 inline void SetDesiredConfiguration(DesiredConfiguration&& value) { m_desiredConfigurationHasBeenSet = true; m_desiredConfiguration = std::move(value); }
208
210
213 inline const RollbackDetails& GetRollbackDetails() const{ return m_rollbackDetails; }
214 inline bool RollbackDetailsHasBeenSet() const { return m_rollbackDetailsHasBeenSet; }
215 inline void SetRollbackDetails(const RollbackDetails& value) { m_rollbackDetailsHasBeenSet = true; m_rollbackDetails = value; }
216 inline void SetRollbackDetails(RollbackDetails&& value) { m_rollbackDetailsHasBeenSet = true; m_rollbackDetails = std::move(value); }
217 inline InstanceRefresh& WithRollbackDetails(const RollbackDetails& value) { SetRollbackDetails(value); return *this;}
218 inline InstanceRefresh& WithRollbackDetails(RollbackDetails&& value) { SetRollbackDetails(std::move(value)); return *this;}
220 private:
221
222 Aws::String m_instanceRefreshId;
223 bool m_instanceRefreshIdHasBeenSet = false;
224
225 Aws::String m_autoScalingGroupName;
226 bool m_autoScalingGroupNameHasBeenSet = false;
227
228 InstanceRefreshStatus m_status;
229 bool m_statusHasBeenSet = false;
230
231 Aws::String m_statusReason;
232 bool m_statusReasonHasBeenSet = false;
233
234 Aws::Utils::DateTime m_startTime;
235 bool m_startTimeHasBeenSet = false;
236
237 Aws::Utils::DateTime m_endTime;
238 bool m_endTimeHasBeenSet = false;
239
240 int m_percentageComplete;
241 bool m_percentageCompleteHasBeenSet = false;
242
243 int m_instancesToUpdate;
244 bool m_instancesToUpdateHasBeenSet = false;
245
246 InstanceRefreshProgressDetails m_progressDetails;
247 bool m_progressDetailsHasBeenSet = false;
248
249 RefreshPreferences m_preferences;
250 bool m_preferencesHasBeenSet = false;
251
252 DesiredConfiguration m_desiredConfiguration;
253 bool m_desiredConfigurationHasBeenSet = false;
254
255 RollbackDetails m_rollbackDetails;
256 bool m_rollbackDetailsHasBeenSet = false;
257 };
258
259} // namespace Model
260} // namespace AutoScaling
261} // namespace Aws
InstanceRefresh & WithStatusReason(Aws::String &&value)
InstanceRefresh & WithStartTime(Aws::Utils::DateTime &&value)
InstanceRefresh & WithProgressDetails(const InstanceRefreshProgressDetails &value)
const Aws::String & GetInstanceRefreshId() const
void SetProgressDetails(InstanceRefreshProgressDetails &&value)
void SetAutoScalingGroupName(const char *value)
const Aws::Utils::DateTime & GetEndTime() const
InstanceRefresh & WithDesiredConfiguration(const DesiredConfiguration &value)
void SetStatusReason(const Aws::String &value)
InstanceRefresh & WithStatusReason(const char *value)
void SetRollbackDetails(const RollbackDetails &value)
InstanceRefresh & WithProgressDetails(InstanceRefreshProgressDetails &&value)
InstanceRefresh & WithAutoScalingGroupName(Aws::String &&value)
void SetPreferences(RefreshPreferences &&value)
void SetStatusReason(Aws::String &&value)
const DesiredConfiguration & GetDesiredConfiguration() const
const Aws::String & GetStatusReason() const
void SetEndTime(const Aws::Utils::DateTime &value)
void SetProgressDetails(const InstanceRefreshProgressDetails &value)
InstanceRefresh & WithInstancesToUpdate(int value)
const RefreshPreferences & GetPreferences() const
AWS_AUTOSCALING_API InstanceRefresh(const Aws::Utils::Xml::XmlNode &xmlNode)
const InstanceRefreshProgressDetails & GetProgressDetails() const
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetStatus(InstanceRefreshStatus &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetRollbackDetails(RollbackDetails &&value)
InstanceRefresh & WithStatus(const InstanceRefreshStatus &value)
const Aws::Utils::DateTime & GetStartTime() const
InstanceRefresh & WithInstanceRefreshId(const char *value)
InstanceRefresh & WithInstanceRefreshId(const Aws::String &value)
void SetInstanceRefreshId(const Aws::String &value)
const InstanceRefreshStatus & GetStatus() const
const Aws::String & GetAutoScalingGroupName() const
void SetPreferences(const RefreshPreferences &value)
InstanceRefresh & WithEndTime(Aws::Utils::DateTime &&value)
const RollbackDetails & GetRollbackDetails() const
InstanceRefresh & WithAutoScalingGroupName(const char *value)
void SetDesiredConfiguration(const DesiredConfiguration &value)
AWS_AUTOSCALING_API InstanceRefresh & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetAutoScalingGroupName(const Aws::String &value)
void SetAutoScalingGroupName(Aws::String &&value)
void SetStatus(const InstanceRefreshStatus &value)
InstanceRefresh & WithAutoScalingGroupName(const Aws::String &value)
void SetInstanceRefreshId(Aws::String &&value)
InstanceRefresh & WithStartTime(const Aws::Utils::DateTime &value)
InstanceRefresh & WithStatus(InstanceRefreshStatus &&value)
InstanceRefresh & WithDesiredConfiguration(DesiredConfiguration &&value)
InstanceRefresh & WithRollbackDetails(const RollbackDetails &value)
InstanceRefresh & WithRollbackDetails(RollbackDetails &&value)
InstanceRefresh & WithPreferences(RefreshPreferences &&value)
InstanceRefresh & WithInstanceRefreshId(Aws::String &&value)
InstanceRefresh & WithPreferences(const RefreshPreferences &value)
void SetStartTime(Aws::Utils::DateTime &&value)
void SetEndTime(Aws::Utils::DateTime &&value)
void SetDesiredConfiguration(DesiredConfiguration &&value)
void SetStartTime(const Aws::Utils::DateTime &value)
InstanceRefresh & WithEndTime(const Aws::Utils::DateTime &value)
void SetInstanceRefreshId(const char *value)
InstanceRefresh & WithPercentageComplete(int value)
InstanceRefresh & WithStatusReason(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream