AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScalingActivity.h
1
6#pragma once
7#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/application-autoscaling/model/ServiceNamespace.h>
10#include <aws/application-autoscaling/model/ScalableDimension.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/application-autoscaling/model/ScalingActivityStatusCode.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/application-autoscaling/model/NotScaledReason.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace ApplicationAutoScaling
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_APPLICATIONAUTOSCALING_API ScalingActivity();
41 AWS_APPLICATIONAUTOSCALING_API ScalingActivity(Aws::Utils::Json::JsonView jsonValue);
42 AWS_APPLICATIONAUTOSCALING_API ScalingActivity& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() 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 ScalingActivity& WithActivityId(const Aws::String& value) { SetActivityId(value); return *this;}
56 inline ScalingActivity& WithActivityId(Aws::String&& value) { SetActivityId(std::move(value)); return *this;}
57 inline ScalingActivity& WithActivityId(const char* value) { SetActivityId(value); return *this;}
59
61
65 inline const ServiceNamespace& GetServiceNamespace() const{ return m_serviceNamespace; }
66 inline bool ServiceNamespaceHasBeenSet() const { return m_serviceNamespaceHasBeenSet; }
67 inline void SetServiceNamespace(const ServiceNamespace& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = value; }
68 inline void SetServiceNamespace(ServiceNamespace&& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = std::move(value); }
69 inline ScalingActivity& WithServiceNamespace(const ServiceNamespace& value) { SetServiceNamespace(value); return *this;}
70 inline ScalingActivity& WithServiceNamespace(ServiceNamespace&& value) { SetServiceNamespace(std::move(value)); return *this;}
72
74
135 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
136 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
137 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
138 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
139 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
140 inline ScalingActivity& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
141 inline ScalingActivity& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
142 inline ScalingActivity& WithResourceId(const char* value) { SetResourceId(value); return *this;}
144
146
196 inline const ScalableDimension& GetScalableDimension() const{ return m_scalableDimension; }
197 inline bool ScalableDimensionHasBeenSet() const { return m_scalableDimensionHasBeenSet; }
198 inline void SetScalableDimension(const ScalableDimension& value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = value; }
199 inline void SetScalableDimension(ScalableDimension&& value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = std::move(value); }
201 inline ScalingActivity& WithScalableDimension(ScalableDimension&& value) { SetScalableDimension(std::move(value)); return *this;}
203
205
209 inline const Aws::String& GetDescription() const{ return m_description; }
210 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
211 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
212 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
213 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
214 inline ScalingActivity& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
215 inline ScalingActivity& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
216 inline ScalingActivity& WithDescription(const char* value) { SetDescription(value); return *this;}
218
220
223 inline const Aws::String& GetCause() const{ return m_cause; }
224 inline bool CauseHasBeenSet() const { return m_causeHasBeenSet; }
225 inline void SetCause(const Aws::String& value) { m_causeHasBeenSet = true; m_cause = value; }
226 inline void SetCause(Aws::String&& value) { m_causeHasBeenSet = true; m_cause = std::move(value); }
227 inline void SetCause(const char* value) { m_causeHasBeenSet = true; m_cause.assign(value); }
228 inline ScalingActivity& WithCause(const Aws::String& value) { SetCause(value); return *this;}
229 inline ScalingActivity& WithCause(Aws::String&& value) { SetCause(std::move(value)); return *this;}
230 inline ScalingActivity& WithCause(const char* value) { SetCause(value); return *this;}
232
234
237 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
238 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
239 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
240 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
241 inline ScalingActivity& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
242 inline ScalingActivity& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
244
246
249 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
250 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
251 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
252 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
253 inline ScalingActivity& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
254 inline ScalingActivity& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
256
258
261 inline const ScalingActivityStatusCode& GetStatusCode() const{ return m_statusCode; }
262 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
263 inline void SetStatusCode(const ScalingActivityStatusCode& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
264 inline void SetStatusCode(ScalingActivityStatusCode&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
265 inline ScalingActivity& WithStatusCode(const ScalingActivityStatusCode& value) { SetStatusCode(value); return *this;}
266 inline ScalingActivity& WithStatusCode(ScalingActivityStatusCode&& value) { SetStatusCode(std::move(value)); return *this;}
268
270
273 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
274 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
275 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
276 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
277 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
278 inline ScalingActivity& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
279 inline ScalingActivity& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
280 inline ScalingActivity& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
282
284
287 inline const Aws::String& GetDetails() const{ return m_details; }
288 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
289 inline void SetDetails(const Aws::String& value) { m_detailsHasBeenSet = true; m_details = value; }
290 inline void SetDetails(Aws::String&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
291 inline void SetDetails(const char* value) { m_detailsHasBeenSet = true; m_details.assign(value); }
292 inline ScalingActivity& WithDetails(const Aws::String& value) { SetDetails(value); return *this;}
293 inline ScalingActivity& WithDetails(Aws::String&& value) { SetDetails(std::move(value)); return *this;}
294 inline ScalingActivity& WithDetails(const char* value) { SetDetails(value); return *this;}
296
298
304 inline const Aws::Vector<NotScaledReason>& GetNotScaledReasons() const{ return m_notScaledReasons; }
305 inline bool NotScaledReasonsHasBeenSet() const { return m_notScaledReasonsHasBeenSet; }
306 inline void SetNotScaledReasons(const Aws::Vector<NotScaledReason>& value) { m_notScaledReasonsHasBeenSet = true; m_notScaledReasons = value; }
307 inline void SetNotScaledReasons(Aws::Vector<NotScaledReason>&& value) { m_notScaledReasonsHasBeenSet = true; m_notScaledReasons = std::move(value); }
310 inline ScalingActivity& AddNotScaledReasons(const NotScaledReason& value) { m_notScaledReasonsHasBeenSet = true; m_notScaledReasons.push_back(value); return *this; }
311 inline ScalingActivity& AddNotScaledReasons(NotScaledReason&& value) { m_notScaledReasonsHasBeenSet = true; m_notScaledReasons.push_back(std::move(value)); return *this; }
313 private:
314
315 Aws::String m_activityId;
316 bool m_activityIdHasBeenSet = false;
317
318 ServiceNamespace m_serviceNamespace;
319 bool m_serviceNamespaceHasBeenSet = false;
320
321 Aws::String m_resourceId;
322 bool m_resourceIdHasBeenSet = false;
323
324 ScalableDimension m_scalableDimension;
325 bool m_scalableDimensionHasBeenSet = false;
326
327 Aws::String m_description;
328 bool m_descriptionHasBeenSet = false;
329
330 Aws::String m_cause;
331 bool m_causeHasBeenSet = false;
332
333 Aws::Utils::DateTime m_startTime;
334 bool m_startTimeHasBeenSet = false;
335
336 Aws::Utils::DateTime m_endTime;
337 bool m_endTimeHasBeenSet = false;
338
339 ScalingActivityStatusCode m_statusCode;
340 bool m_statusCodeHasBeenSet = false;
341
342 Aws::String m_statusMessage;
343 bool m_statusMessageHasBeenSet = false;
344
345 Aws::String m_details;
346 bool m_detailsHasBeenSet = false;
347
348 Aws::Vector<NotScaledReason> m_notScaledReasons;
349 bool m_notScaledReasonsHasBeenSet = false;
350 };
351
352} // namespace Model
353} // namespace ApplicationAutoScaling
354} // namespace Aws
ScalingActivity & WithDetails(Aws::String &&value)
ScalingActivity & WithStatusCode(ScalingActivityStatusCode &&value)
AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const
ScalingActivity & WithStatusMessage(const char *value)
ScalingActivity & WithStartTime(Aws::Utils::DateTime &&value)
void SetNotScaledReasons(const Aws::Vector< NotScaledReason > &value)
const ServiceNamespace & GetServiceNamespace() const
void SetEndTime(const Aws::Utils::DateTime &value)
ScalingActivity & WithDescription(Aws::String &&value)
ScalingActivity & WithResourceId(const Aws::String &value)
ScalingActivity & WithServiceNamespace(const ServiceNamespace &value)
ScalingActivity & WithScalableDimension(ScalableDimension &&value)
ScalingActivity & WithResourceId(Aws::String &&value)
ScalingActivity & AddNotScaledReasons(NotScaledReason &&value)
ScalingActivity & WithCause(const Aws::String &value)
ScalingActivity & WithEndTime(Aws::Utils::DateTime &&value)
ScalingActivity & WithActivityId(const Aws::String &value)
ScalingActivity & WithServiceNamespace(ServiceNamespace &&value)
void SetScalableDimension(ScalableDimension &&value)
ScalingActivity & WithNotScaledReasons(Aws::Vector< NotScaledReason > &&value)
AWS_APPLICATIONAUTOSCALING_API ScalingActivity & operator=(Aws::Utils::Json::JsonView jsonValue)
ScalingActivity & WithScalableDimension(const ScalableDimension &value)
ScalingActivity & WithNotScaledReasons(const Aws::Vector< NotScaledReason > &value)
const ScalingActivityStatusCode & GetStatusCode() const
void SetStartTime(const Aws::Utils::DateTime &value)
ScalingActivity & WithStatusCode(const ScalingActivityStatusCode &value)
ScalingActivity & WithEndTime(const Aws::Utils::DateTime &value)
ScalingActivity & WithDetails(const Aws::String &value)
void SetNotScaledReasons(Aws::Vector< NotScaledReason > &&value)
ScalingActivity & WithCause(const char *value)
const Aws::Vector< NotScaledReason > & GetNotScaledReasons() const
void SetServiceNamespace(const ServiceNamespace &value)
const Aws::Utils::DateTime & GetStartTime() const
ScalingActivity & WithResourceId(const char *value)
void SetStartTime(Aws::Utils::DateTime &&value)
ScalingActivity & WithDetails(const char *value)
AWS_APPLICATIONAUTOSCALING_API ScalingActivity(Aws::Utils::Json::JsonView jsonValue)
void SetStatusCode(ScalingActivityStatusCode &&value)
AWS_APPLICATIONAUTOSCALING_API ScalingActivity()
ScalingActivity & WithDescription(const char *value)
void SetEndTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetEndTime() const
void SetScalableDimension(const ScalableDimension &value)
ScalingActivity & WithCause(Aws::String &&value)
const ScalableDimension & GetScalableDimension() const
ScalingActivity & AddNotScaledReasons(const NotScaledReason &value)
ScalingActivity & WithActivityId(Aws::String &&value)
ScalingActivity & WithStatusMessage(Aws::String &&value)
void SetStatusCode(const ScalingActivityStatusCode &value)
ScalingActivity & WithActivityId(const char *value)
ScalingActivity & WithStatusMessage(const Aws::String &value)
ScalingActivity & WithDescription(const Aws::String &value)
ScalingActivity & WithStartTime(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue