AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Activity.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/core/utils/DateTime.h>
11#include <aws/autoscaling/model/ScalingActivityStatusCode.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace AutoScaling
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_AUTOSCALING_API Activity();
39 AWS_AUTOSCALING_API Activity(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_AUTOSCALING_API Activity& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetActivityId() const{ return m_activityId; }
51 inline bool ActivityIdHasBeenSet() const { return m_activityIdHasBeenSet; }
52 inline void SetActivityId(const Aws::String& value) { m_activityIdHasBeenSet = true; m_activityId = value; }
53 inline void SetActivityId(Aws::String&& value) { m_activityIdHasBeenSet = true; m_activityId = std::move(value); }
54 inline void SetActivityId(const char* value) { m_activityIdHasBeenSet = true; m_activityId.assign(value); }
55 inline Activity& WithActivityId(const Aws::String& value) { SetActivityId(value); return *this;}
56 inline Activity& WithActivityId(Aws::String&& value) { SetActivityId(std::move(value)); return *this;}
57 inline Activity& WithActivityId(const char* value) { SetActivityId(value); return *this;}
59
61
64 inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
65 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
66 inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
67 inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); }
68 inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
69 inline Activity& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;}
70 inline Activity& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(std::move(value)); return *this;}
71 inline Activity& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
73
75
78 inline const Aws::String& GetDescription() const{ return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
81 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
82 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
83 inline Activity& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
84 inline Activity& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
85 inline Activity& WithDescription(const char* value) { SetDescription(value); return *this;}
87
89
92 inline const Aws::String& GetCause() const{ return m_cause; }
93 inline bool CauseHasBeenSet() const { return m_causeHasBeenSet; }
94 inline void SetCause(const Aws::String& value) { m_causeHasBeenSet = true; m_cause = value; }
95 inline void SetCause(Aws::String&& value) { m_causeHasBeenSet = true; m_cause = std::move(value); }
96 inline void SetCause(const char* value) { m_causeHasBeenSet = true; m_cause.assign(value); }
97 inline Activity& WithCause(const Aws::String& value) { SetCause(value); return *this;}
98 inline Activity& WithCause(Aws::String&& value) { SetCause(std::move(value)); return *this;}
99 inline Activity& WithCause(const char* value) { SetCause(value); return *this;}
101
103
106 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
107 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
108 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
109 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
110 inline Activity& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
111 inline Activity& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
113
115
118 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
119 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
120 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
121 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
122 inline Activity& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
123 inline Activity& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
125
127
130 inline const ScalingActivityStatusCode& GetStatusCode() const{ return m_statusCode; }
131 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
132 inline void SetStatusCode(const ScalingActivityStatusCode& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
133 inline void SetStatusCode(ScalingActivityStatusCode&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
134 inline Activity& WithStatusCode(const ScalingActivityStatusCode& value) { SetStatusCode(value); return *this;}
135 inline Activity& WithStatusCode(ScalingActivityStatusCode&& value) { SetStatusCode(std::move(value)); return *this;}
137
139
142 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
143 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
144 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
145 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
146 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
147 inline Activity& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
148 inline Activity& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
149 inline Activity& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
151
153
156 inline int GetProgress() const{ return m_progress; }
157 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
158 inline void SetProgress(int value) { m_progressHasBeenSet = true; m_progress = value; }
159 inline Activity& WithProgress(int value) { SetProgress(value); return *this;}
161
163
166 inline const Aws::String& GetDetails() const{ return m_details; }
167 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
168 inline void SetDetails(const Aws::String& value) { m_detailsHasBeenSet = true; m_details = value; }
169 inline void SetDetails(Aws::String&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
170 inline void SetDetails(const char* value) { m_detailsHasBeenSet = true; m_details.assign(value); }
171 inline Activity& WithDetails(const Aws::String& value) { SetDetails(value); return *this;}
172 inline Activity& WithDetails(Aws::String&& value) { SetDetails(std::move(value)); return *this;}
173 inline Activity& WithDetails(const char* value) { SetDetails(value); return *this;}
175
177
181 inline const Aws::String& GetAutoScalingGroupState() const{ return m_autoScalingGroupState; }
182 inline bool AutoScalingGroupStateHasBeenSet() const { return m_autoScalingGroupStateHasBeenSet; }
183 inline void SetAutoScalingGroupState(const Aws::String& value) { m_autoScalingGroupStateHasBeenSet = true; m_autoScalingGroupState = value; }
184 inline void SetAutoScalingGroupState(Aws::String&& value) { m_autoScalingGroupStateHasBeenSet = true; m_autoScalingGroupState = std::move(value); }
185 inline void SetAutoScalingGroupState(const char* value) { m_autoScalingGroupStateHasBeenSet = true; m_autoScalingGroupState.assign(value); }
186 inline Activity& WithAutoScalingGroupState(const Aws::String& value) { SetAutoScalingGroupState(value); return *this;}
187 inline Activity& WithAutoScalingGroupState(Aws::String&& value) { SetAutoScalingGroupState(std::move(value)); return *this;}
188 inline Activity& WithAutoScalingGroupState(const char* value) { SetAutoScalingGroupState(value); return *this;}
190
192
195 inline const Aws::String& GetAutoScalingGroupARN() const{ return m_autoScalingGroupARN; }
196 inline bool AutoScalingGroupARNHasBeenSet() const { return m_autoScalingGroupARNHasBeenSet; }
197 inline void SetAutoScalingGroupARN(const Aws::String& value) { m_autoScalingGroupARNHasBeenSet = true; m_autoScalingGroupARN = value; }
198 inline void SetAutoScalingGroupARN(Aws::String&& value) { m_autoScalingGroupARNHasBeenSet = true; m_autoScalingGroupARN = std::move(value); }
199 inline void SetAutoScalingGroupARN(const char* value) { m_autoScalingGroupARNHasBeenSet = true; m_autoScalingGroupARN.assign(value); }
200 inline Activity& WithAutoScalingGroupARN(const Aws::String& value) { SetAutoScalingGroupARN(value); return *this;}
201 inline Activity& WithAutoScalingGroupARN(Aws::String&& value) { SetAutoScalingGroupARN(std::move(value)); return *this;}
202 inline Activity& WithAutoScalingGroupARN(const char* value) { SetAutoScalingGroupARN(value); return *this;}
204 private:
205
206 Aws::String m_activityId;
207 bool m_activityIdHasBeenSet = false;
208
209 Aws::String m_autoScalingGroupName;
210 bool m_autoScalingGroupNameHasBeenSet = false;
211
212 Aws::String m_description;
213 bool m_descriptionHasBeenSet = false;
214
215 Aws::String m_cause;
216 bool m_causeHasBeenSet = false;
217
218 Aws::Utils::DateTime m_startTime;
219 bool m_startTimeHasBeenSet = false;
220
221 Aws::Utils::DateTime m_endTime;
222 bool m_endTimeHasBeenSet = false;
223
224 ScalingActivityStatusCode m_statusCode;
225 bool m_statusCodeHasBeenSet = false;
226
227 Aws::String m_statusMessage;
228 bool m_statusMessageHasBeenSet = false;
229
230 int m_progress;
231 bool m_progressHasBeenSet = false;
232
233 Aws::String m_details;
234 bool m_detailsHasBeenSet = false;
235
236 Aws::String m_autoScalingGroupState;
237 bool m_autoScalingGroupStateHasBeenSet = false;
238
239 Aws::String m_autoScalingGroupARN;
240 bool m_autoScalingGroupARNHasBeenSet = false;
241 };
242
243} // namespace Model
244} // namespace AutoScaling
245} // namespace Aws
AWS_AUTOSCALING_API Activity()
Activity & WithAutoScalingGroupName(const char *value)
Definition Activity.h:71
void SetEndTime(const Aws::Utils::DateTime &value)
Definition Activity.h:120
Activity & WithCause(const Aws::String &value)
Definition Activity.h:97
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Utils::DateTime & GetEndTime() const
Definition Activity.h:118
Activity & WithAutoScalingGroupName(const Aws::String &value)
Definition Activity.h:69
void SetStartTime(Aws::Utils::DateTime &&value)
Definition Activity.h:109
void SetAutoScalingGroupName(const char *value)
Definition Activity.h:68
Activity & WithDescription(Aws::String &&value)
Definition Activity.h:84
Activity & WithStatusMessage(const char *value)
Definition Activity.h:149
void SetStatusCode(ScalingActivityStatusCode &&value)
Definition Activity.h:133
void SetCause(const Aws::String &value)
Definition Activity.h:94
Activity & WithDetails(const Aws::String &value)
Definition Activity.h:171
const Aws::Utils::DateTime & GetStartTime() const
Definition Activity.h:106
Activity & WithEndTime(const Aws::Utils::DateTime &value)
Definition Activity.h:122
void SetActivityId(const Aws::String &value)
Definition Activity.h:52
void SetAutoScalingGroupName(const Aws::String &value)
Definition Activity.h:66
void SetDetails(const Aws::String &value)
Definition Activity.h:168
Activity & WithDescription(const char *value)
Definition Activity.h:85
Activity & WithEndTime(Aws::Utils::DateTime &&value)
Definition Activity.h:123
void SetAutoScalingGroupARN(const Aws::String &value)
Definition Activity.h:197
Activity & WithDetails(const char *value)
Definition Activity.h:173
const Aws::String & GetAutoScalingGroupName() const
Definition Activity.h:64
void SetCause(const char *value)
Definition Activity.h:96
AWS_AUTOSCALING_API Activity & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetActivityId() const
Definition Activity.h:50
Activity & WithAutoScalingGroupARN(Aws::String &&value)
Definition Activity.h:201
bool AutoScalingGroupStateHasBeenSet() const
Definition Activity.h:182
Activity & WithStatusCode(ScalingActivityStatusCode &&value)
Definition Activity.h:135
void SetDescription(const Aws::String &value)
Definition Activity.h:80
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetCause(Aws::String &&value)
Definition Activity.h:95
Activity & WithActivityId(Aws::String &&value)
Definition Activity.h:56
void SetActivityId(const char *value)
Definition Activity.h:54
void SetDetails(Aws::String &&value)
Definition Activity.h:169
Activity & WithAutoScalingGroupState(const char *value)
Definition Activity.h:188
void SetAutoScalingGroupARN(const char *value)
Definition Activity.h:199
void SetAutoScalingGroupState(const Aws::String &value)
Definition Activity.h:183
Activity & WithCause(Aws::String &&value)
Definition Activity.h:98
Activity & WithAutoScalingGroupState(Aws::String &&value)
Definition Activity.h:187
Activity & WithProgress(int value)
Definition Activity.h:159
const Aws::String & GetDescription() const
Definition Activity.h:78
const ScalingActivityStatusCode & GetStatusCode() const
Definition Activity.h:130
bool AutoScalingGroupNameHasBeenSet() const
Definition Activity.h:65
Activity & WithAutoScalingGroupState(const Aws::String &value)
Definition Activity.h:186
void SetAutoScalingGroupState(const char *value)
Definition Activity.h:185
Activity & WithAutoScalingGroupName(Aws::String &&value)
Definition Activity.h:70
bool AutoScalingGroupARNHasBeenSet() const
Definition Activity.h:196
Activity & WithStatusMessage(Aws::String &&value)
Definition Activity.h:148
void SetStatusMessage(const char *value)
Definition Activity.h:146
void SetAutoScalingGroupState(Aws::String &&value)
Definition Activity.h:184
Activity & WithDescription(const Aws::String &value)
Definition Activity.h:83
void SetEndTime(Aws::Utils::DateTime &&value)
Definition Activity.h:121
void SetDescription(const char *value)
Definition Activity.h:82
Activity & WithActivityId(const char *value)
Definition Activity.h:57
Activity & WithStatusCode(const ScalingActivityStatusCode &value)
Definition Activity.h:134
Activity & WithStatusMessage(const Aws::String &value)
Definition Activity.h:147
void SetDetails(const char *value)
Definition Activity.h:170
void SetStatusMessage(const Aws::String &value)
Definition Activity.h:144
void SetStartTime(const Aws::Utils::DateTime &value)
Definition Activity.h:108
Activity & WithAutoScalingGroupARN(const char *value)
Definition Activity.h:202
void SetAutoScalingGroupName(Aws::String &&value)
Definition Activity.h:67
const Aws::String & GetAutoScalingGroupARN() const
Definition Activity.h:195
Activity & WithAutoScalingGroupARN(const Aws::String &value)
Definition Activity.h:200
void SetActivityId(Aws::String &&value)
Definition Activity.h:53
void SetDescription(Aws::String &&value)
Definition Activity.h:81
void SetAutoScalingGroupARN(Aws::String &&value)
Definition Activity.h:198
const Aws::String & GetStatusMessage() const
Definition Activity.h:142
const Aws::String & GetDetails() const
Definition Activity.h:166
const Aws::String & GetAutoScalingGroupState() const
Definition Activity.h:181
Activity & WithStartTime(const Aws::Utils::DateTime &value)
Definition Activity.h:110
Activity & WithCause(const char *value)
Definition Activity.h:99
void SetStatusMessage(Aws::String &&value)
Definition Activity.h:145
AWS_AUTOSCALING_API Activity(const Aws::Utils::Xml::XmlNode &xmlNode)
Activity & WithStartTime(Aws::Utils::DateTime &&value)
Definition Activity.h:111
Activity & WithActivityId(const Aws::String &value)
Definition Activity.h:55
const Aws::String & GetCause() const
Definition Activity.h:92
void SetStatusCode(const ScalingActivityStatusCode &value)
Definition Activity.h:132
Activity & WithDetails(Aws::String &&value)
Definition Activity.h:172
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream