/** * 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 namespace Aws { namespace IoT { namespace Model { /** */ class StartDetectMitigationActionsTaskRequest : public IoTRequest { public: AWS_IOT_API StartDetectMitigationActionsTaskRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "StartDetectMitigationActionsTask"; } AWS_IOT_API Aws::String SerializePayload() const override; /** *

The unique identifier of the task.

*/ inline const Aws::String& GetTaskId() const{ return m_taskId; } /** *

The unique identifier of the task.

*/ inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; } /** *

The unique identifier of the task.

*/ inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; } /** *

The unique identifier of the task.

*/ inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); } /** *

The unique identifier of the task.

*/ inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); } /** *

The unique identifier of the task.

*/ inline StartDetectMitigationActionsTaskRequest& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;} /** *

The unique identifier of the task.

*/ inline StartDetectMitigationActionsTaskRequest& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;} /** *

The unique identifier of the task.

*/ inline StartDetectMitigationActionsTaskRequest& WithTaskId(const char* value) { SetTaskId(value); return *this;} /** *

Specifies the ML Detect findings to which the mitigation actions are * applied.

*/ inline const DetectMitigationActionsTaskTarget& GetTarget() const{ return m_target; } /** *

Specifies the ML Detect findings to which the mitigation actions are * applied.

*/ inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; } /** *

Specifies the ML Detect findings to which the mitigation actions are * applied.

*/ inline void SetTarget(const DetectMitigationActionsTaskTarget& value) { m_targetHasBeenSet = true; m_target = value; } /** *

Specifies the ML Detect findings to which the mitigation actions are * applied.

*/ inline void SetTarget(DetectMitigationActionsTaskTarget&& value) { m_targetHasBeenSet = true; m_target = std::move(value); } /** *

Specifies the ML Detect findings to which the mitigation actions are * applied.

*/ inline StartDetectMitigationActionsTaskRequest& WithTarget(const DetectMitigationActionsTaskTarget& value) { SetTarget(value); return *this;} /** *

Specifies the ML Detect findings to which the mitigation actions are * applied.

*/ inline StartDetectMitigationActionsTaskRequest& WithTarget(DetectMitigationActionsTaskTarget&& value) { SetTarget(std::move(value)); return *this;} /** *

The actions to be performed when a device has unexpected behavior.

*/ inline const Aws::Vector& GetActions() const{ return m_actions; } /** *

The actions to be performed when a device has unexpected behavior.

*/ inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; } /** *

The actions to be performed when a device has unexpected behavior.

*/ inline void SetActions(const Aws::Vector& value) { m_actionsHasBeenSet = true; m_actions = value; } /** *

The actions to be performed when a device has unexpected behavior.

*/ inline void SetActions(Aws::Vector&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); } /** *

The actions to be performed when a device has unexpected behavior.

*/ inline StartDetectMitigationActionsTaskRequest& WithActions(const Aws::Vector& value) { SetActions(value); return *this;} /** *

The actions to be performed when a device has unexpected behavior.

*/ inline StartDetectMitigationActionsTaskRequest& WithActions(Aws::Vector&& value) { SetActions(std::move(value)); return *this;} /** *

The actions to be performed when a device has unexpected behavior.

*/ inline StartDetectMitigationActionsTaskRequest& AddActions(const Aws::String& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; } /** *

The actions to be performed when a device has unexpected behavior.

*/ inline StartDetectMitigationActionsTaskRequest& AddActions(Aws::String&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; } /** *

The actions to be performed when a device has unexpected behavior.

*/ inline StartDetectMitigationActionsTaskRequest& AddActions(const char* value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; } /** *

Specifies the time period of which violation events occurred between.

*/ inline const ViolationEventOccurrenceRange& GetViolationEventOccurrenceRange() const{ return m_violationEventOccurrenceRange; } /** *

Specifies the time period of which violation events occurred between.

*/ inline bool ViolationEventOccurrenceRangeHasBeenSet() const { return m_violationEventOccurrenceRangeHasBeenSet; } /** *

Specifies the time period of which violation events occurred between.

*/ inline void SetViolationEventOccurrenceRange(const ViolationEventOccurrenceRange& value) { m_violationEventOccurrenceRangeHasBeenSet = true; m_violationEventOccurrenceRange = value; } /** *

Specifies the time period of which violation events occurred between.

*/ inline void SetViolationEventOccurrenceRange(ViolationEventOccurrenceRange&& value) { m_violationEventOccurrenceRangeHasBeenSet = true; m_violationEventOccurrenceRange = std::move(value); } /** *

Specifies the time period of which violation events occurred between.

*/ inline StartDetectMitigationActionsTaskRequest& WithViolationEventOccurrenceRange(const ViolationEventOccurrenceRange& value) { SetViolationEventOccurrenceRange(value); return *this;} /** *

Specifies the time period of which violation events occurred between.

*/ inline StartDetectMitigationActionsTaskRequest& WithViolationEventOccurrenceRange(ViolationEventOccurrenceRange&& value) { SetViolationEventOccurrenceRange(std::move(value)); return *this;} /** *

Specifies to list only active violations.

*/ inline bool GetIncludeOnlyActiveViolations() const{ return m_includeOnlyActiveViolations; } /** *

Specifies to list only active violations.

*/ inline bool IncludeOnlyActiveViolationsHasBeenSet() const { return m_includeOnlyActiveViolationsHasBeenSet; } /** *

Specifies to list only active violations.

*/ inline void SetIncludeOnlyActiveViolations(bool value) { m_includeOnlyActiveViolationsHasBeenSet = true; m_includeOnlyActiveViolations = value; } /** *

Specifies to list only active violations.

*/ inline StartDetectMitigationActionsTaskRequest& WithIncludeOnlyActiveViolations(bool value) { SetIncludeOnlyActiveViolations(value); return *this;} /** *

Specifies to include suppressed alerts.

*/ inline bool GetIncludeSuppressedAlerts() const{ return m_includeSuppressedAlerts; } /** *

Specifies to include suppressed alerts.

*/ inline bool IncludeSuppressedAlertsHasBeenSet() const { return m_includeSuppressedAlertsHasBeenSet; } /** *

Specifies to include suppressed alerts.

*/ inline void SetIncludeSuppressedAlerts(bool value) { m_includeSuppressedAlertsHasBeenSet = true; m_includeSuppressedAlerts = value; } /** *

Specifies to include suppressed alerts.

*/ inline StartDetectMitigationActionsTaskRequest& WithIncludeSuppressedAlerts(bool value) { SetIncludeSuppressedAlerts(value); return *this;} /** *

Each mitigation action task must have a unique client request token. If you * try to create a new task with the same token as a task that already exists, an * exception occurs. If you omit this value, Amazon Web Services SDKs will * automatically generate a unique client request.

*/ inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } /** *

Each mitigation action task must have a unique client request token. If you * try to create a new task with the same token as a task that already exists, an * exception occurs. If you omit this value, Amazon Web Services SDKs will * automatically generate a unique client request.

*/ inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } /** *

Each mitigation action task must have a unique client request token. If you * try to create a new task with the same token as a task that already exists, an * exception occurs. If you omit this value, Amazon Web Services SDKs will * automatically generate a unique client request.

*/ inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } /** *

Each mitigation action task must have a unique client request token. If you * try to create a new task with the same token as a task that already exists, an * exception occurs. If you omit this value, Amazon Web Services SDKs will * automatically generate a unique client request.

*/ inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } /** *

Each mitigation action task must have a unique client request token. If you * try to create a new task with the same token as a task that already exists, an * exception occurs. If you omit this value, Amazon Web Services SDKs will * automatically generate a unique client request.

*/ inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } /** *

Each mitigation action task must have a unique client request token. If you * try to create a new task with the same token as a task that already exists, an * exception occurs. If you omit this value, Amazon Web Services SDKs will * automatically generate a unique client request.

*/ inline StartDetectMitigationActionsTaskRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *

Each mitigation action task must have a unique client request token. If you * try to create a new task with the same token as a task that already exists, an * exception occurs. If you omit this value, Amazon Web Services SDKs will * automatically generate a unique client request.

*/ inline StartDetectMitigationActionsTaskRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} /** *

Each mitigation action task must have a unique client request token. If you * try to create a new task with the same token as a task that already exists, an * exception occurs. If you omit this value, Amazon Web Services SDKs will * automatically generate a unique client request.

*/ inline StartDetectMitigationActionsTaskRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} private: Aws::String m_taskId; bool m_taskIdHasBeenSet = false; DetectMitigationActionsTaskTarget m_target; bool m_targetHasBeenSet = false; Aws::Vector m_actions; bool m_actionsHasBeenSet = false; ViolationEventOccurrenceRange m_violationEventOccurrenceRange; bool m_violationEventOccurrenceRangeHasBeenSet = false; bool m_includeOnlyActiveViolations; bool m_includeOnlyActiveViolationsHasBeenSet = false; bool m_includeSuppressedAlerts; bool m_includeSuppressedAlertsHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws