/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about a task execution performed as part of a maintenance window
* execution.See Also:
AWS
* API Reference
The ID of the maintenance window execution that ran the task.
*/ inline const Aws::String& GetWindowExecutionId() const{ return m_windowExecutionId; } /** *The ID of the maintenance window execution that ran the task.
*/ inline bool WindowExecutionIdHasBeenSet() const { return m_windowExecutionIdHasBeenSet; } /** *The ID of the maintenance window execution that ran the task.
*/ inline void SetWindowExecutionId(const Aws::String& value) { m_windowExecutionIdHasBeenSet = true; m_windowExecutionId = value; } /** *The ID of the maintenance window execution that ran the task.
*/ inline void SetWindowExecutionId(Aws::String&& value) { m_windowExecutionIdHasBeenSet = true; m_windowExecutionId = std::move(value); } /** *The ID of the maintenance window execution that ran the task.
*/ inline void SetWindowExecutionId(const char* value) { m_windowExecutionIdHasBeenSet = true; m_windowExecutionId.assign(value); } /** *The ID of the maintenance window execution that ran the task.
*/ inline MaintenanceWindowExecutionTaskIdentity& WithWindowExecutionId(const Aws::String& value) { SetWindowExecutionId(value); return *this;} /** *The ID of the maintenance window execution that ran the task.
*/ inline MaintenanceWindowExecutionTaskIdentity& WithWindowExecutionId(Aws::String&& value) { SetWindowExecutionId(std::move(value)); return *this;} /** *The ID of the maintenance window execution that ran the task.
*/ inline MaintenanceWindowExecutionTaskIdentity& WithWindowExecutionId(const char* value) { SetWindowExecutionId(value); return *this;} /** *The ID of the specific task execution in the maintenance window * execution.
*/ inline const Aws::String& GetTaskExecutionId() const{ return m_taskExecutionId; } /** *The ID of the specific task execution in the maintenance window * execution.
*/ inline bool TaskExecutionIdHasBeenSet() const { return m_taskExecutionIdHasBeenSet; } /** *The ID of the specific task execution in the maintenance window * execution.
*/ inline void SetTaskExecutionId(const Aws::String& value) { m_taskExecutionIdHasBeenSet = true; m_taskExecutionId = value; } /** *The ID of the specific task execution in the maintenance window * execution.
*/ inline void SetTaskExecutionId(Aws::String&& value) { m_taskExecutionIdHasBeenSet = true; m_taskExecutionId = std::move(value); } /** *The ID of the specific task execution in the maintenance window * execution.
*/ inline void SetTaskExecutionId(const char* value) { m_taskExecutionIdHasBeenSet = true; m_taskExecutionId.assign(value); } /** *The ID of the specific task execution in the maintenance window * execution.
*/ inline MaintenanceWindowExecutionTaskIdentity& WithTaskExecutionId(const Aws::String& value) { SetTaskExecutionId(value); return *this;} /** *The ID of the specific task execution in the maintenance window * execution.
*/ inline MaintenanceWindowExecutionTaskIdentity& WithTaskExecutionId(Aws::String&& value) { SetTaskExecutionId(std::move(value)); return *this;} /** *The ID of the specific task execution in the maintenance window * execution.
*/ inline MaintenanceWindowExecutionTaskIdentity& WithTaskExecutionId(const char* value) { SetTaskExecutionId(value); return *this;} /** *The status of the task execution.
*/ inline const MaintenanceWindowExecutionStatus& GetStatus() const{ return m_status; } /** *The status of the task execution.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of the task execution.
*/ inline void SetStatus(const MaintenanceWindowExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of the task execution.
*/ inline void SetStatus(MaintenanceWindowExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of the task execution.
*/ inline MaintenanceWindowExecutionTaskIdentity& WithStatus(const MaintenanceWindowExecutionStatus& value) { SetStatus(value); return *this;} /** *The status of the task execution.
*/ inline MaintenanceWindowExecutionTaskIdentity& WithStatus(MaintenanceWindowExecutionStatus&& value) { SetStatus(std::move(value)); return *this;} /** *The details explaining the status of the task execution. Not available for * all status values.
*/ inline const Aws::String& GetStatusDetails() const{ return m_statusDetails; } /** *The details explaining the status of the task execution. Not available for * all status values.
*/ inline bool StatusDetailsHasBeenSet() const { return m_statusDetailsHasBeenSet; } /** *The details explaining the status of the task execution. Not available for * all status values.
*/ inline void SetStatusDetails(const Aws::String& value) { m_statusDetailsHasBeenSet = true; m_statusDetails = value; } /** *The details explaining the status of the task execution. Not available for * all status values.
*/ inline void SetStatusDetails(Aws::String&& value) { m_statusDetailsHasBeenSet = true; m_statusDetails = std::move(value); } /** *The details explaining the status of the task execution. Not available for * all status values.
*/ inline void SetStatusDetails(const char* value) { m_statusDetailsHasBeenSet = true; m_statusDetails.assign(value); } /** *The details explaining the status of the task execution. Not available for * all status values.
*/ inline MaintenanceWindowExecutionTaskIdentity& WithStatusDetails(const Aws::String& value) { SetStatusDetails(value); return *this;} /** *The details explaining the status of the task execution. Not available for * all status values.
*/ inline MaintenanceWindowExecutionTaskIdentity& WithStatusDetails(Aws::String&& value) { SetStatusDetails(std::move(value)); return *this;} /** *The details explaining the status of the task execution. Not available for * all status values.
*/ inline MaintenanceWindowExecutionTaskIdentity& 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 bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *The time the task execution started.
*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *The time the task execution started.
*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *The time the task execution started.
*/ inline MaintenanceWindowExecutionTaskIdentity& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *The time the task execution started.
*/ inline MaintenanceWindowExecutionTaskIdentity& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *The time the task execution finished.
*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *The time the task execution finished.
*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *The time the task execution finished.
*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *The time the task execution finished.
*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *The time the task execution finished.
*/ inline MaintenanceWindowExecutionTaskIdentity& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *The time the task execution finished.
*/ inline MaintenanceWindowExecutionTaskIdentity& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(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 bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the task that ran.
*/ inline void SetTaskArn(const Aws::String& value) { m_taskArnHasBeenSet = true; m_taskArn = value; } /** *The Amazon Resource Name (ARN) of the task that ran.
*/ inline void SetTaskArn(Aws::String&& value) { m_taskArnHasBeenSet = true; m_taskArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the task that ran.
*/ inline void SetTaskArn(const char* value) { m_taskArnHasBeenSet = true; m_taskArn.assign(value); } /** *The Amazon Resource Name (ARN) of the task that ran.
*/ inline MaintenanceWindowExecutionTaskIdentity& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the task that ran.
*/ inline MaintenanceWindowExecutionTaskIdentity& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the task that ran.
*/ inline MaintenanceWindowExecutionTaskIdentity& WithTaskArn(const char* value) { SetTaskArn(value); return *this;} /** *The type of task that ran.
*/ inline const MaintenanceWindowTaskType& GetTaskType() const{ return m_taskType; } /** *The type of task that ran.
*/ inline bool TaskTypeHasBeenSet() const { return m_taskTypeHasBeenSet; } /** *The type of task that ran.
*/ inline void SetTaskType(const MaintenanceWindowTaskType& value) { m_taskTypeHasBeenSet = true; m_taskType = value; } /** *The type of task that ran.
*/ inline void SetTaskType(MaintenanceWindowTaskType&& value) { m_taskTypeHasBeenSet = true; m_taskType = std::move(value); } /** *The type of task that ran.
*/ inline MaintenanceWindowExecutionTaskIdentity& WithTaskType(const MaintenanceWindowTaskType& value) { SetTaskType(value); return *this;} /** *The type of task that ran.
*/ inline MaintenanceWindowExecutionTaskIdentity& WithTaskType(MaintenanceWindowTaskType&& value) { SetTaskType(std::move(value)); return *this;} /** *The details for the CloudWatch alarm applied to your maintenance window * task.
*/ inline const AlarmConfiguration& GetAlarmConfiguration() const{ return m_alarmConfiguration; } /** *The details for the CloudWatch alarm applied to your maintenance window * task.
*/ inline bool AlarmConfigurationHasBeenSet() const { return m_alarmConfigurationHasBeenSet; } /** *The details for the CloudWatch alarm applied to your maintenance window * task.
*/ inline void SetAlarmConfiguration(const AlarmConfiguration& value) { m_alarmConfigurationHasBeenSet = true; m_alarmConfiguration = value; } /** *The details for the CloudWatch alarm applied to your maintenance window * task.
*/ inline void SetAlarmConfiguration(AlarmConfiguration&& value) { m_alarmConfigurationHasBeenSet = true; m_alarmConfiguration = std::move(value); } /** *The details for the CloudWatch alarm applied to your maintenance window * task.
*/ inline MaintenanceWindowExecutionTaskIdentity& WithAlarmConfiguration(const AlarmConfiguration& value) { SetAlarmConfiguration(value); return *this;} /** *The details for the CloudWatch alarm applied to your maintenance window * task.
*/ inline MaintenanceWindowExecutionTaskIdentity& WithAlarmConfiguration(AlarmConfiguration&& value) { SetAlarmConfiguration(std::move(value)); return *this;} /** *The CloudWatch alarm that was invoked by the maintenance window task.
*/ inline const Aws::VectorThe CloudWatch alarm that was invoked by the maintenance window task.
*/ inline bool TriggeredAlarmsHasBeenSet() const { return m_triggeredAlarmsHasBeenSet; } /** *The CloudWatch alarm that was invoked by the maintenance window task.
*/ inline void SetTriggeredAlarms(const Aws::VectorThe CloudWatch alarm that was invoked by the maintenance window task.
*/ inline void SetTriggeredAlarms(Aws::VectorThe CloudWatch alarm that was invoked by the maintenance window task.
*/ inline MaintenanceWindowExecutionTaskIdentity& WithTriggeredAlarms(const Aws::VectorThe CloudWatch alarm that was invoked by the maintenance window task.
*/ inline MaintenanceWindowExecutionTaskIdentity& WithTriggeredAlarms(Aws::VectorThe CloudWatch alarm that was invoked by the maintenance window task.
*/ inline MaintenanceWindowExecutionTaskIdentity& AddTriggeredAlarms(const AlarmStateInformation& value) { m_triggeredAlarmsHasBeenSet = true; m_triggeredAlarms.push_back(value); return *this; } /** *The CloudWatch alarm that was invoked by the maintenance window task.
*/ inline MaintenanceWindowExecutionTaskIdentity& AddTriggeredAlarms(AlarmStateInformation&& value) { m_triggeredAlarmsHasBeenSet = true; m_triggeredAlarms.push_back(std::move(value)); return *this; } private: Aws::String m_windowExecutionId; bool m_windowExecutionIdHasBeenSet = false; Aws::String m_taskExecutionId; bool m_taskExecutionIdHasBeenSet = false; MaintenanceWindowExecutionStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_statusDetails; bool m_statusDetailsHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; Aws::String m_taskArn; bool m_taskArnHasBeenSet = false; MaintenanceWindowTaskType m_taskType; bool m_taskTypeHasBeenSet = false; AlarmConfiguration m_alarmConfiguration; bool m_alarmConfigurationHasBeenSet = false; Aws::Vector