/* * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.iot.model; import java.io.Serializable; import com.amazonaws.AmazonWebServiceRequest; /** *
* Starts a task that applies a set of mitigation actions to the specified * target. *
** Requires permission to access the StartAuditMitigationActionsTask action. *
*/ public class StartAuditMitigationActionsTaskRequest extends AmazonWebServiceRequest implements Serializable { /** ** A unique identifier for the task. You can use this identifier to check * the status of the task or to cancel it. *
*
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9_-]+
*/
private String taskId;
/**
*
* Specifies the audit findings to which the mitigation actions are applied. * You can apply them to a type of audit check, to all findings from an * audit, or to a specific set of findings. *
*/ private AuditMitigationActionsTaskTarget target; /** ** For an audit check, specifies which mitigation actions to apply. Those * actions must be defined in your Amazon Web Services accounts. *
*/ private java.util.Map* Each audit mitigation task must have a unique client request token. If * you try to start a new task with the same token as a task that already * exists, an exception occurs. If you omit this value, a unique client * request token is generated automatically. *
*
* Constraints:
* Length: 1 - 64
* Pattern: ^[a-zA-Z0-9-_]+$
*/
private String clientRequestToken;
/**
*
* A unique identifier for the task. You can use this identifier to check * the status of the task or to cancel it. *
*
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9_-]+
*
* @return
* A unique identifier for the task. You can use this identifier to * check the status of the task or to cancel it. *
*/ public String getTaskId() { return taskId; } /** ** A unique identifier for the task. You can use this identifier to check * the status of the task or to cancel it. *
*
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9_-]+
*
* @param taskId
* A unique identifier for the task. You can use this identifier * to check the status of the task or to cancel it. *
*/ public void setTaskId(String taskId) { this.taskId = taskId; } /** ** A unique identifier for the task. You can use this identifier to check * the status of the task or to cancel it. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9_-]+
*
* @param taskId
* A unique identifier for the task. You can use this identifier * to check the status of the task or to cancel it. *
* @return A reference to this updated object so that method calls can be * chained together. */ public StartAuditMitigationActionsTaskRequest withTaskId(String taskId) { this.taskId = taskId; return this; } /** ** Specifies the audit findings to which the mitigation actions are applied. * You can apply them to a type of audit check, to all findings from an * audit, or to a specific set of findings. *
* * @return* Specifies the audit findings to which the mitigation actions are * applied. You can apply them to a type of audit check, to all * findings from an audit, or to a specific set of findings. *
*/ public AuditMitigationActionsTaskTarget getTarget() { return target; } /** ** Specifies the audit findings to which the mitigation actions are applied. * You can apply them to a type of audit check, to all findings from an * audit, or to a specific set of findings. *
* * @param target* Specifies the audit findings to which the mitigation actions * are applied. You can apply them to a type of audit check, to * all findings from an audit, or to a specific set of findings. *
*/ public void setTarget(AuditMitigationActionsTaskTarget target) { this.target = target; } /** ** Specifies the audit findings to which the mitigation actions are applied. * You can apply them to a type of audit check, to all findings from an * audit, or to a specific set of findings. *
** Returns a reference to this object so that method calls can be chained * together. * * @param target
* Specifies the audit findings to which the mitigation actions * are applied. You can apply them to a type of audit check, to * all findings from an audit, or to a specific set of findings. *
* @return A reference to this updated object so that method calls can be * chained together. */ public StartAuditMitigationActionsTaskRequest withTarget(AuditMitigationActionsTaskTarget target) { this.target = target; return this; } /** ** For an audit check, specifies which mitigation actions to apply. Those * actions must be defined in your Amazon Web Services accounts. *
* * @return* For an audit check, specifies which mitigation actions to apply. * Those actions must be defined in your Amazon Web Services * accounts. *
*/ public java.util.Map* For an audit check, specifies which mitigation actions to apply. Those * actions must be defined in your Amazon Web Services accounts. *
* * @param auditCheckToActionsMapping* For an audit check, specifies which mitigation actions to * apply. Those actions must be defined in your Amazon Web * Services accounts. *
*/ public void setAuditCheckToActionsMapping( java.util.Map* For an audit check, specifies which mitigation actions to apply. Those * actions must be defined in your Amazon Web Services accounts. *
** Returns a reference to this object so that method calls can be chained * together. * * @param auditCheckToActionsMapping
* For an audit check, specifies which mitigation actions to * apply. Those actions must be defined in your Amazon Web * Services accounts. *
* @return A reference to this updated object so that method calls can be * chained together. */ public StartAuditMitigationActionsTaskRequest withAuditCheckToActionsMapping( java.util.Map* For an audit check, specifies which mitigation actions to apply. Those * actions must be defined in your Amazon Web Services accounts. *
*
* The method adds a new key-value pair into auditCheckToActionsMapping
* parameter, and returns a reference to this object so that method calls
* can be chained together.
*
* @param key The key of the entry to be added into
* auditCheckToActionsMapping.
* @param value The corresponding value of the entry to be added into
* auditCheckToActionsMapping.
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public StartAuditMitigationActionsTaskRequest addauditCheckToActionsMappingEntry(String key,
java.util.List
* Returns a reference to this object so that method calls can be chained
* together.
*/
public StartAuditMitigationActionsTaskRequest clearauditCheckToActionsMappingEntries() {
this.auditCheckToActionsMapping = null;
return this;
}
/**
*
* Each audit mitigation task must have a unique client request token. If
* you try to start a new task with the same token as a task that already
* exists, an exception occurs. If you omit this value, a unique client
* request token is generated automatically.
*
* Constraints:
* Each audit mitigation task must have a unique client request
* token. If you try to start a new task with the same token as a
* task that already exists, an exception occurs. If you omit this
* value, a unique client request token is generated automatically.
*
* Each audit mitigation task must have a unique client request token. If
* you try to start a new task with the same token as a task that already
* exists, an exception occurs. If you omit this value, a unique client
* request token is generated automatically.
*
* Constraints:
* Each audit mitigation task must have a unique client request
* token. If you try to start a new task with the same token as a
* task that already exists, an exception occurs. If you omit
* this value, a unique client request token is generated
* automatically.
*
* Each audit mitigation task must have a unique client request token. If
* you try to start a new task with the same token as a task that already
* exists, an exception occurs. If you omit this value, a unique client
* request token is generated automatically.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* Constraints:
* Each audit mitigation task must have a unique client request
* token. If you try to start a new task with the same token as a
* task that already exists, an exception occurs. If you omit
* this value, a unique client request token is generated
* automatically.
*
* Length: 1 - 64
* Pattern: ^[a-zA-Z0-9-_]+$
*
* @return
* Length: 1 - 64
* Pattern: ^[a-zA-Z0-9-_]+$
*
* @param clientRequestToken
* Length: 1 - 64
* Pattern: ^[a-zA-Z0-9-_]+$
*
* @param clientRequestToken