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