/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace AutoScaling { namespace Model { /** *

Describes scaling activity, which is a long-running process that represents a * change to your Auto Scaling group, such as changing its size or replacing an * instance.

See Also:

AWS * API Reference

*/ class Activity { public: AWS_AUTOSCALING_API Activity(); AWS_AUTOSCALING_API Activity(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_AUTOSCALING_API Activity& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The ID of the activity.

*/ inline const Aws::String& GetActivityId() const{ return m_activityId; } /** *

The ID of the activity.

*/ inline bool ActivityIdHasBeenSet() const { return m_activityIdHasBeenSet; } /** *

The ID of the activity.

*/ inline void SetActivityId(const Aws::String& value) { m_activityIdHasBeenSet = true; m_activityId = value; } /** *

The ID of the activity.

*/ inline void SetActivityId(Aws::String&& value) { m_activityIdHasBeenSet = true; m_activityId = std::move(value); } /** *

The ID of the activity.

*/ inline void SetActivityId(const char* value) { m_activityIdHasBeenSet = true; m_activityId.assign(value); } /** *

The ID of the activity.

*/ inline Activity& WithActivityId(const Aws::String& value) { SetActivityId(value); return *this;} /** *

The ID of the activity.

*/ inline Activity& WithActivityId(Aws::String&& value) { SetActivityId(std::move(value)); return *this;} /** *

The ID of the activity.

*/ inline Activity& WithActivityId(const char* value) { SetActivityId(value); return *this;} /** *

The name of the Auto Scaling group.

*/ inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; } /** *

The name of the Auto Scaling group.

*/ inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; } /** *

The name of the Auto Scaling group.

*/ inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; } /** *

The name of the Auto Scaling group.

*/ inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); } /** *

The name of the Auto Scaling group.

*/ inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); } /** *

The name of the Auto Scaling group.

*/ inline Activity& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;} /** *

The name of the Auto Scaling group.

*/ inline Activity& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(std::move(value)); return *this;} /** *

The name of the Auto Scaling group.

*/ inline Activity& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;} /** *

A friendly, more verbose description of the activity.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A friendly, more verbose description of the activity.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A friendly, more verbose description of the activity.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A friendly, more verbose description of the activity.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A friendly, more verbose description of the activity.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A friendly, more verbose description of the activity.

*/ inline Activity& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A friendly, more verbose description of the activity.

*/ inline Activity& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A friendly, more verbose description of the activity.

*/ inline Activity& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The reason the activity began.

*/ inline const Aws::String& GetCause() const{ return m_cause; } /** *

The reason the activity began.

*/ inline bool CauseHasBeenSet() const { return m_causeHasBeenSet; } /** *

The reason the activity began.

*/ inline void SetCause(const Aws::String& value) { m_causeHasBeenSet = true; m_cause = value; } /** *

The reason the activity began.

*/ inline void SetCause(Aws::String&& value) { m_causeHasBeenSet = true; m_cause = std::move(value); } /** *

The reason the activity began.

*/ inline void SetCause(const char* value) { m_causeHasBeenSet = true; m_cause.assign(value); } /** *

The reason the activity began.

*/ inline Activity& WithCause(const Aws::String& value) { SetCause(value); return *this;} /** *

The reason the activity began.

*/ inline Activity& WithCause(Aws::String&& value) { SetCause(std::move(value)); return *this;} /** *

The reason the activity began.

*/ inline Activity& WithCause(const char* value) { SetCause(value); return *this;} /** *

The start time of the activity.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The start time of the activity.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The start time of the activity.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The start time of the activity.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

The start time of the activity.

*/ inline Activity& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The start time of the activity.

*/ inline Activity& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

The end time of the activity.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

The end time of the activity.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The end time of the activity.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

The end time of the activity.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

The end time of the activity.

*/ inline Activity& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

The end time of the activity.

*/ inline Activity& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *

The current status of the activity.

*/ inline const ScalingActivityStatusCode& GetStatusCode() const{ return m_statusCode; } /** *

The current status of the activity.

*/ inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; } /** *

The current status of the activity.

*/ inline void SetStatusCode(const ScalingActivityStatusCode& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; } /** *

The current status of the activity.

*/ inline void SetStatusCode(ScalingActivityStatusCode&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); } /** *

The current status of the activity.

*/ inline Activity& WithStatusCode(const ScalingActivityStatusCode& value) { SetStatusCode(value); return *this;} /** *

The current status of the activity.

*/ inline Activity& WithStatusCode(ScalingActivityStatusCode&& value) { SetStatusCode(std::move(value)); return *this;} /** *

A friendly, more verbose description of the activity status.

*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *

A friendly, more verbose description of the activity status.

*/ inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; } /** *

A friendly, more verbose description of the activity status.

*/ inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; } /** *

A friendly, more verbose description of the activity status.

*/ inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); } /** *

A friendly, more verbose description of the activity status.

*/ inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); } /** *

A friendly, more verbose description of the activity status.

*/ inline Activity& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *

A friendly, more verbose description of the activity status.

*/ inline Activity& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *

A friendly, more verbose description of the activity status.

*/ inline Activity& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} /** *

A value between 0 and 100 that indicates the progress of the activity.

*/ inline int GetProgress() const{ return m_progress; } /** *

A value between 0 and 100 that indicates the progress of the activity.

*/ inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; } /** *

A value between 0 and 100 that indicates the progress of the activity.

*/ inline void SetProgress(int value) { m_progressHasBeenSet = true; m_progress = value; } /** *

A value between 0 and 100 that indicates the progress of the activity.

*/ inline Activity& WithProgress(int value) { SetProgress(value); return *this;} /** *

The details about the activity.

*/ inline const Aws::String& GetDetails() const{ return m_details; } /** *

The details about the activity.

*/ inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; } /** *

The details about the activity.

*/ inline void SetDetails(const Aws::String& value) { m_detailsHasBeenSet = true; m_details = value; } /** *

The details about the activity.

*/ inline void SetDetails(Aws::String&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); } /** *

The details about the activity.

*/ inline void SetDetails(const char* value) { m_detailsHasBeenSet = true; m_details.assign(value); } /** *

The details about the activity.

*/ inline Activity& WithDetails(const Aws::String& value) { SetDetails(value); return *this;} /** *

The details about the activity.

*/ inline Activity& WithDetails(Aws::String&& value) { SetDetails(std::move(value)); return *this;} /** *

The details about the activity.

*/ inline Activity& WithDetails(const char* value) { SetDetails(value); return *this;} /** *

The state of the Auto Scaling group, which is either InService * or Deleted.

*/ inline const Aws::String& GetAutoScalingGroupState() const{ return m_autoScalingGroupState; } /** *

The state of the Auto Scaling group, which is either InService * or Deleted.

*/ inline bool AutoScalingGroupStateHasBeenSet() const { return m_autoScalingGroupStateHasBeenSet; } /** *

The state of the Auto Scaling group, which is either InService * or Deleted.

*/ inline void SetAutoScalingGroupState(const Aws::String& value) { m_autoScalingGroupStateHasBeenSet = true; m_autoScalingGroupState = value; } /** *

The state of the Auto Scaling group, which is either InService * or Deleted.

*/ inline void SetAutoScalingGroupState(Aws::String&& value) { m_autoScalingGroupStateHasBeenSet = true; m_autoScalingGroupState = std::move(value); } /** *

The state of the Auto Scaling group, which is either InService * or Deleted.

*/ inline void SetAutoScalingGroupState(const char* value) { m_autoScalingGroupStateHasBeenSet = true; m_autoScalingGroupState.assign(value); } /** *

The state of the Auto Scaling group, which is either InService * or Deleted.

*/ inline Activity& WithAutoScalingGroupState(const Aws::String& value) { SetAutoScalingGroupState(value); return *this;} /** *

The state of the Auto Scaling group, which is either InService * or Deleted.

*/ inline Activity& WithAutoScalingGroupState(Aws::String&& value) { SetAutoScalingGroupState(std::move(value)); return *this;} /** *

The state of the Auto Scaling group, which is either InService * or Deleted.

*/ inline Activity& WithAutoScalingGroupState(const char* value) { SetAutoScalingGroupState(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Auto Scaling group.

*/ inline const Aws::String& GetAutoScalingGroupARN() const{ return m_autoScalingGroupARN; } /** *

The Amazon Resource Name (ARN) of the Auto Scaling group.

*/ inline bool AutoScalingGroupARNHasBeenSet() const { return m_autoScalingGroupARNHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Auto Scaling group.

*/ inline void SetAutoScalingGroupARN(const Aws::String& value) { m_autoScalingGroupARNHasBeenSet = true; m_autoScalingGroupARN = value; } /** *

The Amazon Resource Name (ARN) of the Auto Scaling group.

*/ inline void SetAutoScalingGroupARN(Aws::String&& value) { m_autoScalingGroupARNHasBeenSet = true; m_autoScalingGroupARN = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Auto Scaling group.

*/ inline void SetAutoScalingGroupARN(const char* value) { m_autoScalingGroupARNHasBeenSet = true; m_autoScalingGroupARN.assign(value); } /** *

The Amazon Resource Name (ARN) of the Auto Scaling group.

*/ inline Activity& WithAutoScalingGroupARN(const Aws::String& value) { SetAutoScalingGroupARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Auto Scaling group.

*/ inline Activity& WithAutoScalingGroupARN(Aws::String&& value) { SetAutoScalingGroupARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Auto Scaling group.

*/ inline Activity& WithAutoScalingGroupARN(const char* value) { SetAutoScalingGroupARN(value); return *this;} private: Aws::String m_activityId; bool m_activityIdHasBeenSet = false; Aws::String m_autoScalingGroupName; bool m_autoScalingGroupNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_cause; bool m_causeHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; ScalingActivityStatusCode m_statusCode; bool m_statusCodeHasBeenSet = false; Aws::String m_statusMessage; bool m_statusMessageHasBeenSet = false; int m_progress; bool m_progressHasBeenSet = false; Aws::String m_details; bool m_detailsHasBeenSet = false; Aws::String m_autoScalingGroupState; bool m_autoScalingGroupStateHasBeenSet = false; Aws::String m_autoScalingGroupARN; bool m_autoScalingGroupARNHasBeenSet = false; }; } // namespace Model } // namespace AutoScaling } // namespace Aws