/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Returned by ListAuditMitigationActionsTask, this object contains information
* that describes a mitigation action that has been started.See
* Also:
AWS
* API Reference
The unique identifier for the task that applies the mitigation action.
*/ inline const Aws::String& GetTaskId() const{ return m_taskId; } /** *The unique identifier for the task that applies the mitigation action.
*/ inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; } /** *The unique identifier for the task that applies the mitigation action.
*/ inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; } /** *The unique identifier for the task that applies the mitigation action.
*/ inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); } /** *The unique identifier for the task that applies the mitigation action.
*/ inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); } /** *The unique identifier for the task that applies the mitigation action.
*/ inline AuditMitigationActionExecutionMetadata& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;} /** *The unique identifier for the task that applies the mitigation action.
*/ inline AuditMitigationActionExecutionMetadata& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;} /** *The unique identifier for the task that applies the mitigation action.
*/ inline AuditMitigationActionExecutionMetadata& WithTaskId(const char* value) { SetTaskId(value); return *this;} /** *The unique identifier for the findings to which the task and associated * mitigation action are applied.
*/ inline const Aws::String& GetFindingId() const{ return m_findingId; } /** *The unique identifier for the findings to which the task and associated * mitigation action are applied.
*/ inline bool FindingIdHasBeenSet() const { return m_findingIdHasBeenSet; } /** *The unique identifier for the findings to which the task and associated * mitigation action are applied.
*/ inline void SetFindingId(const Aws::String& value) { m_findingIdHasBeenSet = true; m_findingId = value; } /** *The unique identifier for the findings to which the task and associated * mitigation action are applied.
*/ inline void SetFindingId(Aws::String&& value) { m_findingIdHasBeenSet = true; m_findingId = std::move(value); } /** *The unique identifier for the findings to which the task and associated * mitigation action are applied.
*/ inline void SetFindingId(const char* value) { m_findingIdHasBeenSet = true; m_findingId.assign(value); } /** *The unique identifier for the findings to which the task and associated * mitigation action are applied.
*/ inline AuditMitigationActionExecutionMetadata& WithFindingId(const Aws::String& value) { SetFindingId(value); return *this;} /** *The unique identifier for the findings to which the task and associated * mitigation action are applied.
*/ inline AuditMitigationActionExecutionMetadata& WithFindingId(Aws::String&& value) { SetFindingId(std::move(value)); return *this;} /** *The unique identifier for the findings to which the task and associated * mitigation action are applied.
*/ inline AuditMitigationActionExecutionMetadata& WithFindingId(const char* value) { SetFindingId(value); return *this;} /** *The friendly name of the mitigation action being applied by the task.
*/ inline const Aws::String& GetActionName() const{ return m_actionName; } /** *The friendly name of the mitigation action being applied by the task.
*/ inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; } /** *The friendly name of the mitigation action being applied by the task.
*/ inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; } /** *The friendly name of the mitigation action being applied by the task.
*/ inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); } /** *The friendly name of the mitigation action being applied by the task.
*/ inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); } /** *The friendly name of the mitigation action being applied by the task.
*/ inline AuditMitigationActionExecutionMetadata& WithActionName(const Aws::String& value) { SetActionName(value); return *this;} /** *The friendly name of the mitigation action being applied by the task.
*/ inline AuditMitigationActionExecutionMetadata& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;} /** *The friendly name of the mitigation action being applied by the task.
*/ inline AuditMitigationActionExecutionMetadata& WithActionName(const char* value) { SetActionName(value); return *this;} /** *The unique identifier for the mitigation action being applied by the * task.
*/ inline const Aws::String& GetActionId() const{ return m_actionId; } /** *The unique identifier for the mitigation action being applied by the * task.
*/ inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; } /** *The unique identifier for the mitigation action being applied by the * task.
*/ inline void SetActionId(const Aws::String& value) { m_actionIdHasBeenSet = true; m_actionId = value; } /** *The unique identifier for the mitigation action being applied by the * task.
*/ inline void SetActionId(Aws::String&& value) { m_actionIdHasBeenSet = true; m_actionId = std::move(value); } /** *The unique identifier for the mitigation action being applied by the * task.
*/ inline void SetActionId(const char* value) { m_actionIdHasBeenSet = true; m_actionId.assign(value); } /** *The unique identifier for the mitigation action being applied by the * task.
*/ inline AuditMitigationActionExecutionMetadata& WithActionId(const Aws::String& value) { SetActionId(value); return *this;} /** *The unique identifier for the mitigation action being applied by the * task.
*/ inline AuditMitigationActionExecutionMetadata& WithActionId(Aws::String&& value) { SetActionId(std::move(value)); return *this;} /** *The unique identifier for the mitigation action being applied by the * task.
*/ inline AuditMitigationActionExecutionMetadata& WithActionId(const char* value) { SetActionId(value); return *this;} /** *The current status of the task being executed.
*/ inline const AuditMitigationActionsExecutionStatus& GetStatus() const{ return m_status; } /** *The current status of the task being executed.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The current status of the task being executed.
*/ inline void SetStatus(const AuditMitigationActionsExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *The current status of the task being executed.
*/ inline void SetStatus(AuditMitigationActionsExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The current status of the task being executed.
*/ inline AuditMitigationActionExecutionMetadata& WithStatus(const AuditMitigationActionsExecutionStatus& value) { SetStatus(value); return *this;} /** *The current status of the task being executed.
*/ inline AuditMitigationActionExecutionMetadata& WithStatus(AuditMitigationActionsExecutionStatus&& value) { SetStatus(std::move(value)); return *this;} /** *The date and time when the task was started.
*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *The date and time when the task was started.
*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *The date and time when the task was started.
*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *The date and time when the task was started.
*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *The date and time when the task was started.
*/ inline AuditMitigationActionExecutionMetadata& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *The date and time when the task was started.
*/ inline AuditMitigationActionExecutionMetadata& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *The date and time when the task was completed or canceled. Blank if the task * is still running.
*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *The date and time when the task was completed or canceled. Blank if the task * is still running.
*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *The date and time when the task was completed or canceled. Blank if the task * is still running.
*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *The date and time when the task was completed or canceled. Blank if the task * is still running.
*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *The date and time when the task was completed or canceled. Blank if the task * is still running.
*/ inline AuditMitigationActionExecutionMetadata& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *The date and time when the task was completed or canceled. Blank if the task * is still running.
*/ inline AuditMitigationActionExecutionMetadata& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *If an error occurred, the code that indicates which type of error * occurred.
*/ inline const Aws::String& GetErrorCode() const{ return m_errorCode; } /** *If an error occurred, the code that indicates which type of error * occurred.
*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *If an error occurred, the code that indicates which type of error * occurred.
*/ inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *If an error occurred, the code that indicates which type of error * occurred.
*/ inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *If an error occurred, the code that indicates which type of error * occurred.
*/ inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); } /** *If an error occurred, the code that indicates which type of error * occurred.
*/ inline AuditMitigationActionExecutionMetadata& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;} /** *If an error occurred, the code that indicates which type of error * occurred.
*/ inline AuditMitigationActionExecutionMetadata& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;} /** *If an error occurred, the code that indicates which type of error * occurred.
*/ inline AuditMitigationActionExecutionMetadata& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} /** *If an error occurred, a message that describes the error.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *If an error occurred, a message that describes the error.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *If an error occurred, a message that describes the error.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *If an error occurred, a message that describes the error.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *If an error occurred, a message that describes the error.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *If an error occurred, a message that describes the error.
*/ inline AuditMitigationActionExecutionMetadata& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *If an error occurred, a message that describes the error.
*/ inline AuditMitigationActionExecutionMetadata& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *If an error occurred, a message that describes the error.
*/ inline AuditMitigationActionExecutionMetadata& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::String m_taskId; bool m_taskIdHasBeenSet = false; Aws::String m_findingId; bool m_findingIdHasBeenSet = false; Aws::String m_actionName; bool m_actionNameHasBeenSet = false; Aws::String m_actionId; bool m_actionIdHasBeenSet = false; AuditMitigationActionsExecutionStatus m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; Aws::String m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws