AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ActivityIdT = Aws::String>
53 void SetActivityId(ActivityIdT&& value) { m_activityIdHasBeenSet = true; m_activityId = std::forward<ActivityIdT>(value); }
54 template<typename ActivityIdT = Aws::String>
55 ScalingActivity& WithActivityId(ActivityIdT&& value) { SetActivityId(std::forward<ActivityIdT>(value)); return *this;}
57
59
63 inline ServiceNamespace GetServiceNamespace() const { return m_serviceNamespace; }
64 inline bool ServiceNamespaceHasBeenSet() const { return m_serviceNamespaceHasBeenSet; }
65 inline void SetServiceNamespace(ServiceNamespace value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = value; }
68
70
134 inline const Aws::String& GetResourceId() const { return m_resourceId; }
135 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
136 template<typename ResourceIdT = Aws::String>
137 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
138 template<typename ResourceIdT = Aws::String>
139 ScalingActivity& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
141
143
195 inline ScalableDimension GetScalableDimension() const { return m_scalableDimension; }
196 inline bool ScalableDimensionHasBeenSet() const { return m_scalableDimensionHasBeenSet; }
197 inline void SetScalableDimension(ScalableDimension value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = value; }
200
202
206 inline const Aws::String& GetDescription() const { return m_description; }
207 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
208 template<typename DescriptionT = Aws::String>
209 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
210 template<typename DescriptionT = Aws::String>
211 ScalingActivity& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
213
215
218 inline const Aws::String& GetCause() const { return m_cause; }
219 inline bool CauseHasBeenSet() const { return m_causeHasBeenSet; }
220 template<typename CauseT = Aws::String>
221 void SetCause(CauseT&& value) { m_causeHasBeenSet = true; m_cause = std::forward<CauseT>(value); }
222 template<typename CauseT = Aws::String>
223 ScalingActivity& WithCause(CauseT&& value) { SetCause(std::forward<CauseT>(value)); return *this;}
225
227
230 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
231 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
232 template<typename StartTimeT = Aws::Utils::DateTime>
233 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
234 template<typename StartTimeT = Aws::Utils::DateTime>
235 ScalingActivity& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
237
239
242 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
243 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
244 template<typename EndTimeT = Aws::Utils::DateTime>
245 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
246 template<typename EndTimeT = Aws::Utils::DateTime>
247 ScalingActivity& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
249
251
254 inline ScalingActivityStatusCode GetStatusCode() const { return m_statusCode; }
255 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
256 inline void SetStatusCode(ScalingActivityStatusCode value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
259
261
264 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
265 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
266 template<typename StatusMessageT = Aws::String>
267 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
268 template<typename StatusMessageT = Aws::String>
269 ScalingActivity& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
271
273
276 inline const Aws::String& GetDetails() const { return m_details; }
277 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
278 template<typename DetailsT = Aws::String>
279 void SetDetails(DetailsT&& value) { m_detailsHasBeenSet = true; m_details = std::forward<DetailsT>(value); }
280 template<typename DetailsT = Aws::String>
281 ScalingActivity& WithDetails(DetailsT&& value) { SetDetails(std::forward<DetailsT>(value)); return *this;}
283
285
291 inline const Aws::Vector<NotScaledReason>& GetNotScaledReasons() const { return m_notScaledReasons; }
292 inline bool NotScaledReasonsHasBeenSet() const { return m_notScaledReasonsHasBeenSet; }
293 template<typename NotScaledReasonsT = Aws::Vector<NotScaledReason>>
294 void SetNotScaledReasons(NotScaledReasonsT&& value) { m_notScaledReasonsHasBeenSet = true; m_notScaledReasons = std::forward<NotScaledReasonsT>(value); }
295 template<typename NotScaledReasonsT = Aws::Vector<NotScaledReason>>
296 ScalingActivity& WithNotScaledReasons(NotScaledReasonsT&& value) { SetNotScaledReasons(std::forward<NotScaledReasonsT>(value)); return *this;}
297 template<typename NotScaledReasonsT = NotScaledReason>
298 ScalingActivity& AddNotScaledReasons(NotScaledReasonsT&& value) { m_notScaledReasonsHasBeenSet = true; m_notScaledReasons.emplace_back(std::forward<NotScaledReasonsT>(value)); return *this; }
300 private:
301
302 Aws::String m_activityId;
303 bool m_activityIdHasBeenSet = false;
304
306 bool m_serviceNamespaceHasBeenSet = false;
307
308 Aws::String m_resourceId;
309 bool m_resourceIdHasBeenSet = false;
310
312 bool m_scalableDimensionHasBeenSet = false;
313
314 Aws::String m_description;
315 bool m_descriptionHasBeenSet = false;
316
317 Aws::String m_cause;
318 bool m_causeHasBeenSet = false;
319
320 Aws::Utils::DateTime m_startTime{};
321 bool m_startTimeHasBeenSet = false;
322
323 Aws::Utils::DateTime m_endTime{};
324 bool m_endTimeHasBeenSet = false;
325
327 bool m_statusCodeHasBeenSet = false;
328
329 Aws::String m_statusMessage;
330 bool m_statusMessageHasBeenSet = false;
331
332 Aws::String m_details;
333 bool m_detailsHasBeenSet = false;
334
335 Aws::Vector<NotScaledReason> m_notScaledReasons;
336 bool m_notScaledReasonsHasBeenSet = false;
337 };
338
339} // namespace Model
340} // namespace ApplicationAutoScaling
341} // 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