AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
ScalingActivity.h
1
6#pragma once
7#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
8#include <aws/application-autoscaling/model/NotScaledReason.h>
9#include <aws/application-autoscaling/model/ScalableDimension.h>
10#include <aws/application-autoscaling/model/ScalingActivityStatusCode.h>
11#include <aws/application-autoscaling/model/ServiceNamespace.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ApplicationAutoScaling {
26namespace Model {
27
34 public:
35 AWS_APPLICATIONAUTOSCALING_API ScalingActivity() = default;
36 AWS_APPLICATIONAUTOSCALING_API ScalingActivity(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPLICATIONAUTOSCALING_API ScalingActivity& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetActivityId() const { return m_activityId; }
45 inline bool ActivityIdHasBeenSet() const { return m_activityIdHasBeenSet; }
46 template <typename ActivityIdT = Aws::String>
47 void SetActivityId(ActivityIdT&& value) {
48 m_activityIdHasBeenSet = true;
49 m_activityId = std::forward<ActivityIdT>(value);
50 }
51 template <typename ActivityIdT = Aws::String>
52 ScalingActivity& WithActivityId(ActivityIdT&& value) {
53 SetActivityId(std::forward<ActivityIdT>(value));
54 return *this;
55 }
57
59
63 inline ServiceNamespace GetServiceNamespace() const { return m_serviceNamespace; }
64 inline bool ServiceNamespaceHasBeenSet() const { return m_serviceNamespaceHasBeenSet; }
66 m_serviceNamespaceHasBeenSet = true;
67 m_serviceNamespace = value;
68 }
71 return *this;
72 }
74
76
140 inline const Aws::String& GetResourceId() const { return m_resourceId; }
141 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
142 template <typename ResourceIdT = Aws::String>
143 void SetResourceId(ResourceIdT&& value) {
144 m_resourceIdHasBeenSet = true;
145 m_resourceId = std::forward<ResourceIdT>(value);
146 }
147 template <typename ResourceIdT = Aws::String>
148 ScalingActivity& WithResourceId(ResourceIdT&& value) {
149 SetResourceId(std::forward<ResourceIdT>(value));
150 return *this;
151 }
153
155
207 inline ScalableDimension GetScalableDimension() const { return m_scalableDimension; }
208 inline bool ScalableDimensionHasBeenSet() const { return m_scalableDimensionHasBeenSet; }
210 m_scalableDimensionHasBeenSet = true;
211 m_scalableDimension = value;
212 }
215 return *this;
216 }
218
220
224 inline const Aws::String& GetDescription() const { return m_description; }
225 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
226 template <typename DescriptionT = Aws::String>
227 void SetDescription(DescriptionT&& value) {
228 m_descriptionHasBeenSet = true;
229 m_description = std::forward<DescriptionT>(value);
230 }
231 template <typename DescriptionT = Aws::String>
232 ScalingActivity& WithDescription(DescriptionT&& value) {
233 SetDescription(std::forward<DescriptionT>(value));
234 return *this;
235 }
237
239
242 inline const Aws::String& GetCause() const { return m_cause; }
243 inline bool CauseHasBeenSet() const { return m_causeHasBeenSet; }
244 template <typename CauseT = Aws::String>
245 void SetCause(CauseT&& value) {
246 m_causeHasBeenSet = true;
247 m_cause = std::forward<CauseT>(value);
248 }
249 template <typename CauseT = Aws::String>
250 ScalingActivity& WithCause(CauseT&& value) {
251 SetCause(std::forward<CauseT>(value));
252 return *this;
253 }
255
257
260 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
261 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
262 template <typename StartTimeT = Aws::Utils::DateTime>
263 void SetStartTime(StartTimeT&& value) {
264 m_startTimeHasBeenSet = true;
265 m_startTime = std::forward<StartTimeT>(value);
266 }
267 template <typename StartTimeT = Aws::Utils::DateTime>
268 ScalingActivity& WithStartTime(StartTimeT&& value) {
269 SetStartTime(std::forward<StartTimeT>(value));
270 return *this;
271 }
273
275
278 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
279 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
280 template <typename EndTimeT = Aws::Utils::DateTime>
281 void SetEndTime(EndTimeT&& value) {
282 m_endTimeHasBeenSet = true;
283 m_endTime = std::forward<EndTimeT>(value);
284 }
285 template <typename EndTimeT = Aws::Utils::DateTime>
286 ScalingActivity& WithEndTime(EndTimeT&& value) {
287 SetEndTime(std::forward<EndTimeT>(value));
288 return *this;
289 }
291
293
296 inline ScalingActivityStatusCode GetStatusCode() const { return m_statusCode; }
297 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
299 m_statusCodeHasBeenSet = true;
300 m_statusCode = value;
301 }
303 SetStatusCode(value);
304 return *this;
305 }
307
309
312 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
313 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
314 template <typename StatusMessageT = Aws::String>
315 void SetStatusMessage(StatusMessageT&& value) {
316 m_statusMessageHasBeenSet = true;
317 m_statusMessage = std::forward<StatusMessageT>(value);
318 }
319 template <typename StatusMessageT = Aws::String>
320 ScalingActivity& WithStatusMessage(StatusMessageT&& value) {
321 SetStatusMessage(std::forward<StatusMessageT>(value));
322 return *this;
323 }
325
327
330 inline const Aws::String& GetDetails() const { return m_details; }
331 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
332 template <typename DetailsT = Aws::String>
333 void SetDetails(DetailsT&& value) {
334 m_detailsHasBeenSet = true;
335 m_details = std::forward<DetailsT>(value);
336 }
337 template <typename DetailsT = Aws::String>
338 ScalingActivity& WithDetails(DetailsT&& value) {
339 SetDetails(std::forward<DetailsT>(value));
340 return *this;
341 }
343
345
351 inline const Aws::Vector<NotScaledReason>& GetNotScaledReasons() const { return m_notScaledReasons; }
352 inline bool NotScaledReasonsHasBeenSet() const { return m_notScaledReasonsHasBeenSet; }
353 template <typename NotScaledReasonsT = Aws::Vector<NotScaledReason>>
354 void SetNotScaledReasons(NotScaledReasonsT&& value) {
355 m_notScaledReasonsHasBeenSet = true;
356 m_notScaledReasons = std::forward<NotScaledReasonsT>(value);
357 }
358 template <typename NotScaledReasonsT = Aws::Vector<NotScaledReason>>
359 ScalingActivity& WithNotScaledReasons(NotScaledReasonsT&& value) {
360 SetNotScaledReasons(std::forward<NotScaledReasonsT>(value));
361 return *this;
362 }
363 template <typename NotScaledReasonsT = NotScaledReason>
364 ScalingActivity& AddNotScaledReasons(NotScaledReasonsT&& value) {
365 m_notScaledReasonsHasBeenSet = true;
366 m_notScaledReasons.emplace_back(std::forward<NotScaledReasonsT>(value));
367 return *this;
368 }
370 private:
371 Aws::String m_activityId;
372
374
375 Aws::String m_resourceId;
376
378
379 Aws::String m_description;
380
381 Aws::String m_cause;
382
383 Aws::Utils::DateTime m_startTime{};
384
385 Aws::Utils::DateTime m_endTime{};
386
388
389 Aws::String m_statusMessage;
390
391 Aws::String m_details;
392
393 Aws::Vector<NotScaledReason> m_notScaledReasons;
394 bool m_activityIdHasBeenSet = false;
395 bool m_serviceNamespaceHasBeenSet = false;
396 bool m_resourceIdHasBeenSet = false;
397 bool m_scalableDimensionHasBeenSet = false;
398 bool m_descriptionHasBeenSet = false;
399 bool m_causeHasBeenSet = false;
400 bool m_startTimeHasBeenSet = false;
401 bool m_endTimeHasBeenSet = false;
402 bool m_statusCodeHasBeenSet = false;
403 bool m_statusMessageHasBeenSet = false;
404 bool m_detailsHasBeenSet = false;
405 bool m_notScaledReasonsHasBeenSet = false;
406};
407
408} // namespace Model
409} // namespace ApplicationAutoScaling
410} // namespace Aws
ScalingActivity & WithStatusCode(ScalingActivityStatusCode value)
AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const
ScalingActivity & AddNotScaledReasons(NotScaledReasonsT &&value)
ScalingActivity & WithStatusMessage(StatusMessageT &&value)
ScalingActivity & WithActivityId(ActivityIdT &&value)
AWS_APPLICATIONAUTOSCALING_API ScalingActivity & operator=(Aws::Utils::Json::JsonView jsonValue)
ScalingActivity & WithServiceNamespace(ServiceNamespace value)
ScalingActivity & WithResourceId(ResourceIdT &&value)
ScalingActivityStatusCode GetStatusCode() const
ScalingActivity & WithStartTime(StartTimeT &&value)
ScalingActivity & WithDetails(DetailsT &&value)
ScalingActivity & WithDescription(DescriptionT &&value)
const Aws::Vector< NotScaledReason > & GetNotScaledReasons() const
const Aws::Utils::DateTime & GetStartTime() const
AWS_APPLICATIONAUTOSCALING_API ScalingActivity(Aws::Utils::Json::JsonView jsonValue)
ScalingActivity & WithScalableDimension(ScalableDimension value)
void SetStatusCode(ScalingActivityStatusCode value)
const Aws::Utils::DateTime & GetEndTime() const
AWS_APPLICATIONAUTOSCALING_API ScalingActivity()=default
ScalingActivity & WithNotScaledReasons(NotScaledReasonsT &&value)
ScalingActivity & WithEndTime(EndTimeT &&value)
void SetNotScaledReasons(NotScaledReasonsT &&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