/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace SSM { namespace Model { class GetMaintenanceWindowExecutionTaskResult { public: AWS_SSM_API GetMaintenanceWindowExecutionTaskResult(); AWS_SSM_API GetMaintenanceWindowExecutionTaskResult(const Aws::AmazonWebServiceResult& result); AWS_SSM_API GetMaintenanceWindowExecutionTaskResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ID of the maintenance window execution that includes the task.

*/ inline const Aws::String& GetWindowExecutionId() const{ return m_windowExecutionId; } /** *

The ID of the maintenance window execution that includes the task.

*/ inline void SetWindowExecutionId(const Aws::String& value) { m_windowExecutionId = value; } /** *

The ID of the maintenance window execution that includes the task.

*/ inline void SetWindowExecutionId(Aws::String&& value) { m_windowExecutionId = std::move(value); } /** *

The ID of the maintenance window execution that includes the task.

*/ inline void SetWindowExecutionId(const char* value) { m_windowExecutionId.assign(value); } /** *

The ID of the maintenance window execution that includes the task.

*/ inline GetMaintenanceWindowExecutionTaskResult& WithWindowExecutionId(const Aws::String& value) { SetWindowExecutionId(value); return *this;} /** *

The ID of the maintenance window execution that includes the task.

*/ inline GetMaintenanceWindowExecutionTaskResult& WithWindowExecutionId(Aws::String&& value) { SetWindowExecutionId(std::move(value)); return *this;} /** *

The ID of the maintenance window execution that includes the task.

*/ inline GetMaintenanceWindowExecutionTaskResult& WithWindowExecutionId(const char* value) { SetWindowExecutionId(value); return *this;} /** *

The ID of the specific task execution in the maintenance window task that was * retrieved.

*/ inline const Aws::String& GetTaskExecutionId() const{ return m_taskExecutionId; } /** *

The ID of the specific task execution in the maintenance window task that was * retrieved.

*/ inline void SetTaskExecutionId(const Aws::String& value) { m_taskExecutionId = value; } /** *

The ID of the specific task execution in the maintenance window task that was * retrieved.

*/ inline void SetTaskExecutionId(Aws::String&& value) { m_taskExecutionId = std::move(value); } /** *

The ID of the specific task execution in the maintenance window task that was * retrieved.

*/ inline void SetTaskExecutionId(const char* value) { m_taskExecutionId.assign(value); } /** *

The ID of the specific task execution in the maintenance window task that was * retrieved.

*/ inline GetMaintenanceWindowExecutionTaskResult& WithTaskExecutionId(const Aws::String& value) { SetTaskExecutionId(value); return *this;} /** *

The ID of the specific task execution in the maintenance window task that was * retrieved.

*/ inline GetMaintenanceWindowExecutionTaskResult& WithTaskExecutionId(Aws::String&& value) { SetTaskExecutionId(std::move(value)); return *this;} /** *

The ID of the specific task execution in the maintenance window task that was * retrieved.

*/ inline GetMaintenanceWindowExecutionTaskResult& WithTaskExecutionId(const char* value) { SetTaskExecutionId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the task that ran.

*/ inline const Aws::String& GetTaskArn() const{ return m_taskArn; } /** *

The Amazon Resource Name (ARN) of the task that ran.

*/ inline void SetTaskArn(const Aws::String& value) { m_taskArn = value; } /** *

The Amazon Resource Name (ARN) of the task that ran.

*/ inline void SetTaskArn(Aws::String&& value) { m_taskArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the task that ran.

*/ inline void SetTaskArn(const char* value) { m_taskArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the task that ran.

*/ inline GetMaintenanceWindowExecutionTaskResult& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the task that ran.

*/ inline GetMaintenanceWindowExecutionTaskResult& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the task that ran.

*/ inline GetMaintenanceWindowExecutionTaskResult& WithTaskArn(const char* value) { SetTaskArn(value); return *this;} /** *

The role that was assumed when running the task.

*/ inline const Aws::String& GetServiceRole() const{ return m_serviceRole; } /** *

The role that was assumed when running the task.

*/ inline void SetServiceRole(const Aws::String& value) { m_serviceRole = value; } /** *

The role that was assumed when running the task.

*/ inline void SetServiceRole(Aws::String&& value) { m_serviceRole = std::move(value); } /** *

The role that was assumed when running the task.

*/ inline void SetServiceRole(const char* value) { m_serviceRole.assign(value); } /** *

The role that was assumed when running the task.

*/ inline GetMaintenanceWindowExecutionTaskResult& WithServiceRole(const Aws::String& value) { SetServiceRole(value); return *this;} /** *

The role that was assumed when running the task.

*/ inline GetMaintenanceWindowExecutionTaskResult& WithServiceRole(Aws::String&& value) { SetServiceRole(std::move(value)); return *this;} /** *

The role that was assumed when running the task.

*/ inline GetMaintenanceWindowExecutionTaskResult& WithServiceRole(const char* value) { SetServiceRole(value); return *this;} /** *

The type of task that was run.

*/ inline const MaintenanceWindowTaskType& GetType() const{ return m_type; } /** *

The type of task that was run.

*/ inline void SetType(const MaintenanceWindowTaskType& value) { m_type = value; } /** *

The type of task that was run.

*/ inline void SetType(MaintenanceWindowTaskType&& value) { m_type = std::move(value); } /** *

The type of task that was run.

*/ inline GetMaintenanceWindowExecutionTaskResult& WithType(const MaintenanceWindowTaskType& value) { SetType(value); return *this;} /** *

The type of task that was run.

*/ inline GetMaintenanceWindowExecutionTaskResult& WithType(MaintenanceWindowTaskType&& value) { SetType(std::move(value)); return *this;} /** *

The parameters passed to the task when it was run.

* TaskParameters has been deprecated. To specify parameters to pass * to a task when it runs, instead use the Parameters option in the * TaskInvocationParameters structure. For information about how * Systems Manager handles these options for the supported maintenance window task * types, see MaintenanceWindowTaskInvocationParameters.

The * map has the following format:

  • Key: string, * between 1 and 255 characters

  • Value: an array of * strings, each between 1 and 255 characters

*/ inline const Aws::Vector>& GetTaskParameters() const{ return m_taskParameters; } /** *

The parameters passed to the task when it was run.

* TaskParameters has been deprecated. To specify parameters to pass * to a task when it runs, instead use the Parameters option in the * TaskInvocationParameters structure. For information about how * Systems Manager handles these options for the supported maintenance window task * types, see MaintenanceWindowTaskInvocationParameters.

The * map has the following format:

  • Key: string, * between 1 and 255 characters

  • Value: an array of * strings, each between 1 and 255 characters

*/ inline void SetTaskParameters(const Aws::Vector>& value) { m_taskParameters = value; } /** *

The parameters passed to the task when it was run.

* TaskParameters has been deprecated. To specify parameters to pass * to a task when it runs, instead use the Parameters option in the * TaskInvocationParameters structure. For information about how * Systems Manager handles these options for the supported maintenance window task * types, see MaintenanceWindowTaskInvocationParameters.

The * map has the following format:

  • Key: string, * between 1 and 255 characters

  • Value: an array of * strings, each between 1 and 255 characters

*/ inline void SetTaskParameters(Aws::Vector>&& value) { m_taskParameters = std::move(value); } /** *

The parameters passed to the task when it was run.

* TaskParameters has been deprecated. To specify parameters to pass * to a task when it runs, instead use the Parameters option in the * TaskInvocationParameters structure. For information about how * Systems Manager handles these options for the supported maintenance window task * types, see MaintenanceWindowTaskInvocationParameters.

The * map has the following format:

  • Key: string, * between 1 and 255 characters

  • Value: an array of * strings, each between 1 and 255 characters

*/ inline GetMaintenanceWindowExecutionTaskResult& WithTaskParameters(const Aws::Vector>& value) { SetTaskParameters(value); return *this;} /** *

The parameters passed to the task when it was run.

* TaskParameters has been deprecated. To specify parameters to pass * to a task when it runs, instead use the Parameters option in the * TaskInvocationParameters structure. For information about how * Systems Manager handles these options for the supported maintenance window task * types, see MaintenanceWindowTaskInvocationParameters.

The * map has the following format:

  • Key: string, * between 1 and 255 characters

  • Value: an array of * strings, each between 1 and 255 characters

*/ inline GetMaintenanceWindowExecutionTaskResult& WithTaskParameters(Aws::Vector>&& value) { SetTaskParameters(std::move(value)); return *this;} /** *

The parameters passed to the task when it was run.

* TaskParameters has been deprecated. To specify parameters to pass * to a task when it runs, instead use the Parameters option in the * TaskInvocationParameters structure. For information about how * Systems Manager handles these options for the supported maintenance window task * types, see MaintenanceWindowTaskInvocationParameters.

The * map has the following format:

  • Key: string, * between 1 and 255 characters

  • Value: an array of * strings, each between 1 and 255 characters

*/ inline GetMaintenanceWindowExecutionTaskResult& AddTaskParameters(const Aws::Map& value) { m_taskParameters.push_back(value); return *this; } /** *

The parameters passed to the task when it was run.

* TaskParameters has been deprecated. To specify parameters to pass * to a task when it runs, instead use the Parameters option in the * TaskInvocationParameters structure. For information about how * Systems Manager handles these options for the supported maintenance window task * types, see MaintenanceWindowTaskInvocationParameters.

The * map has the following format:

  • Key: string, * between 1 and 255 characters

  • Value: an array of * strings, each between 1 and 255 characters

*/ inline GetMaintenanceWindowExecutionTaskResult& AddTaskParameters(Aws::Map&& value) { m_taskParameters.push_back(std::move(value)); return *this; } /** *

The priority of the task.

*/ inline int GetPriority() const{ return m_priority; } /** *

The priority of the task.

*/ inline void SetPriority(int value) { m_priority = value; } /** *

The priority of the task.

*/ inline GetMaintenanceWindowExecutionTaskResult& WithPriority(int value) { SetPriority(value); return *this;} /** *

The defined maximum number of task executions that could be run in * parallel.

*/ inline const Aws::String& GetMaxConcurrency() const{ return m_maxConcurrency; } /** *

The defined maximum number of task executions that could be run in * parallel.

*/ inline void SetMaxConcurrency(const Aws::String& value) { m_maxConcurrency = value; } /** *

The defined maximum number of task executions that could be run in * parallel.

*/ inline void SetMaxConcurrency(Aws::String&& value) { m_maxConcurrency = std::move(value); } /** *

The defined maximum number of task executions that could be run in * parallel.

*/ inline void SetMaxConcurrency(const char* value) { m_maxConcurrency.assign(value); } /** *

The defined maximum number of task executions that could be run in * parallel.

*/ inline GetMaintenanceWindowExecutionTaskResult& WithMaxConcurrency(const Aws::String& value) { SetMaxConcurrency(value); return *this;} /** *

The defined maximum number of task executions that could be run in * parallel.

*/ inline GetMaintenanceWindowExecutionTaskResult& WithMaxConcurrency(Aws::String&& value) { SetMaxConcurrency(std::move(value)); return *this;} /** *

The defined maximum number of task executions that could be run in * parallel.

*/ inline GetMaintenanceWindowExecutionTaskResult& WithMaxConcurrency(const char* value) { SetMaxConcurrency(value); return *this;} /** *

The defined maximum number of task execution errors allowed before scheduling * of the task execution would have been stopped.

*/ inline const Aws::String& GetMaxErrors() const{ return m_maxErrors; } /** *

The defined maximum number of task execution errors allowed before scheduling * of the task execution would have been stopped.

*/ inline void SetMaxErrors(const Aws::String& value) { m_maxErrors = value; } /** *

The defined maximum number of task execution errors allowed before scheduling * of the task execution would have been stopped.

*/ inline void SetMaxErrors(Aws::String&& value) { m_maxErrors = std::move(value); } /** *

The defined maximum number of task execution errors allowed before scheduling * of the task execution would have been stopped.

*/ inline void SetMaxErrors(const char* value) { m_maxErrors.assign(value); } /** *

The defined maximum number of task execution errors allowed before scheduling * of the task execution would have been stopped.

*/ inline GetMaintenanceWindowExecutionTaskResult& WithMaxErrors(const Aws::String& value) { SetMaxErrors(value); return *this;} /** *

The defined maximum number of task execution errors allowed before scheduling * of the task execution would have been stopped.

*/ inline GetMaintenanceWindowExecutionTaskResult& WithMaxErrors(Aws::String&& value) { SetMaxErrors(std::move(value)); return *this;} /** *

The defined maximum number of task execution errors allowed before scheduling * of the task execution would have been stopped.

*/ inline GetMaintenanceWindowExecutionTaskResult& WithMaxErrors(const char* value) { SetMaxErrors(value); return *this;} /** *

The status of the task.

*/ inline const MaintenanceWindowExecutionStatus& GetStatus() const{ return m_status; } /** *

The status of the task.

*/ inline void SetStatus(const MaintenanceWindowExecutionStatus& value) { m_status = value; } /** *

The status of the task.

*/ inline void SetStatus(MaintenanceWindowExecutionStatus&& value) { m_status = std::move(value); } /** *

The status of the task.

*/ inline GetMaintenanceWindowExecutionTaskResult& WithStatus(const MaintenanceWindowExecutionStatus& value) { SetStatus(value); return *this;} /** *

The status of the task.

*/ inline GetMaintenanceWindowExecutionTaskResult& WithStatus(MaintenanceWindowExecutionStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The details explaining the status. Not available for all status values.

*/ inline const Aws::String& GetStatusDetails() const{ return m_statusDetails; } /** *

The details explaining the status. Not available for all status values.

*/ inline void SetStatusDetails(const Aws::String& value) { m_statusDetails = value; } /** *

The details explaining the status. Not available for all status values.

*/ inline void SetStatusDetails(Aws::String&& value) { m_statusDetails = std::move(value); } /** *

The details explaining the status. Not available for all status values.

*/ inline void SetStatusDetails(const char* value) { m_statusDetails.assign(value); } /** *

The details explaining the status. Not available for all status values.

*/ inline GetMaintenanceWindowExecutionTaskResult& WithStatusDetails(const Aws::String& value) { SetStatusDetails(value); return *this;} /** *

The details explaining the status. Not available for all status values.

*/ inline GetMaintenanceWindowExecutionTaskResult& WithStatusDetails(Aws::String&& value) { SetStatusDetails(std::move(value)); return *this;} /** *

The details explaining the status. Not available for all status values.

*/ inline GetMaintenanceWindowExecutionTaskResult& WithStatusDetails(const char* value) { SetStatusDetails(value); return *this;} /** *

The time the task execution started.

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

The time the task execution started.

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

The time the task execution started.

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

The time the task execution started.

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

The time the task execution started.

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

The time the task execution completed.

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

The time the task execution completed.

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

The time the task execution completed.

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

The time the task execution completed.

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

The time the task execution completed.

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

The details for the CloudWatch alarm you applied to your maintenance window * task.

*/ inline const AlarmConfiguration& GetAlarmConfiguration() const{ return m_alarmConfiguration; } /** *

The details for the CloudWatch alarm you applied to your maintenance window * task.

*/ inline void SetAlarmConfiguration(const AlarmConfiguration& value) { m_alarmConfiguration = value; } /** *

The details for the CloudWatch alarm you applied to your maintenance window * task.

*/ inline void SetAlarmConfiguration(AlarmConfiguration&& value) { m_alarmConfiguration = std::move(value); } /** *

The details for the CloudWatch alarm you applied to your maintenance window * task.

*/ inline GetMaintenanceWindowExecutionTaskResult& WithAlarmConfiguration(const AlarmConfiguration& value) { SetAlarmConfiguration(value); return *this;} /** *

The details for the CloudWatch alarm you applied to your maintenance window * task.

*/ inline GetMaintenanceWindowExecutionTaskResult& WithAlarmConfiguration(AlarmConfiguration&& value) { SetAlarmConfiguration(std::move(value)); return *this;} /** *

The CloudWatch alarms that were invoked by the maintenance window task.

*/ inline const Aws::Vector& GetTriggeredAlarms() const{ return m_triggeredAlarms; } /** *

The CloudWatch alarms that were invoked by the maintenance window task.

*/ inline void SetTriggeredAlarms(const Aws::Vector& value) { m_triggeredAlarms = value; } /** *

The CloudWatch alarms that were invoked by the maintenance window task.

*/ inline void SetTriggeredAlarms(Aws::Vector&& value) { m_triggeredAlarms = std::move(value); } /** *

The CloudWatch alarms that were invoked by the maintenance window task.

*/ inline GetMaintenanceWindowExecutionTaskResult& WithTriggeredAlarms(const Aws::Vector& value) { SetTriggeredAlarms(value); return *this;} /** *

The CloudWatch alarms that were invoked by the maintenance window task.

*/ inline GetMaintenanceWindowExecutionTaskResult& WithTriggeredAlarms(Aws::Vector&& value) { SetTriggeredAlarms(std::move(value)); return *this;} /** *

The CloudWatch alarms that were invoked by the maintenance window task.

*/ inline GetMaintenanceWindowExecutionTaskResult& AddTriggeredAlarms(const AlarmStateInformation& value) { m_triggeredAlarms.push_back(value); return *this; } /** *

The CloudWatch alarms that were invoked by the maintenance window task.

*/ inline GetMaintenanceWindowExecutionTaskResult& AddTriggeredAlarms(AlarmStateInformation&& value) { m_triggeredAlarms.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetMaintenanceWindowExecutionTaskResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetMaintenanceWindowExecutionTaskResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetMaintenanceWindowExecutionTaskResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_windowExecutionId; Aws::String m_taskExecutionId; Aws::String m_taskArn; Aws::String m_serviceRole; MaintenanceWindowTaskType m_type; Aws::Vector> m_taskParameters; int m_priority; Aws::String m_maxConcurrency; Aws::String m_maxErrors; MaintenanceWindowExecutionStatus m_status; Aws::String m_statusDetails; Aws::Utils::DateTime m_startTime; Aws::Utils::DateTime m_endTime; AlarmConfiguration m_alarmConfiguration; Aws::Vector m_triggeredAlarms; Aws::String m_requestId; }; } // namespace Model } // namespace SSM } // namespace Aws