/* * 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; public class DescribeAuditMitigationActionsTaskResult implements Serializable { /** *
* The current status of the task. *
*
* Constraints:
* Allowed Values: IN_PROGRESS, COMPLETED, FAILED, CANCELED
*/
private String taskStatus;
/**
*
* The date and time when the task was started. *
*/ private java.util.Date startTime; /** ** The date and time when the task was completed or canceled. *
*/ private java.util.Date endTime; /** ** Aggregate counts of the results when the mitigation tasks were applied to * the findings for this audit mitigation actions task. *
*/ private java.util.Map* Identifies the findings to which the mitigation actions are applied. This * can be by audit checks, by audit task, or a set of findings. *
*/ private AuditMitigationActionsTaskTarget target; /** ** Specifies the mitigation actions that should be applied to specific audit * checks. *
*/ private java.util.Map* Specifies the mitigation actions and their parameters that are applied as * part of this task. *
*/ private java.util.List* The current status of the task. *
*
* Constraints:
* Allowed Values: IN_PROGRESS, COMPLETED, FAILED, CANCELED
*
* @return
* The current status of the task. *
* @see AuditMitigationActionsTaskStatus */ public String getTaskStatus() { return taskStatus; } /** ** The current status of the task. *
*
* Constraints:
* Allowed Values: IN_PROGRESS, COMPLETED, FAILED, CANCELED
*
* @param taskStatus
* The current status of the task. *
* @see AuditMitigationActionsTaskStatus */ public void setTaskStatus(String taskStatus) { this.taskStatus = taskStatus; } /** ** The current status of the task. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: IN_PROGRESS, COMPLETED, FAILED, CANCELED
*
* @param taskStatus
* The current status of the task. *
* @return A reference to this updated object so that method calls can be * chained together. * @see AuditMitigationActionsTaskStatus */ public DescribeAuditMitigationActionsTaskResult withTaskStatus(String taskStatus) { this.taskStatus = taskStatus; return this; } /** ** The current status of the task. *
*
* Constraints:
* Allowed Values: IN_PROGRESS, COMPLETED, FAILED, CANCELED
*
* @param taskStatus
* The current status of the task. *
* @see AuditMitigationActionsTaskStatus */ public void setTaskStatus(AuditMitigationActionsTaskStatus taskStatus) { this.taskStatus = taskStatus.toString(); } /** ** The current status of the task. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: IN_PROGRESS, COMPLETED, FAILED, CANCELED
*
* @param taskStatus
* The current status of the task. *
* @return A reference to this updated object so that method calls can be * chained together. * @see AuditMitigationActionsTaskStatus */ public DescribeAuditMitigationActionsTaskResult withTaskStatus( AuditMitigationActionsTaskStatus taskStatus) { this.taskStatus = taskStatus.toString(); return this; } /** ** The date and time when the task was started. *
* * @return* The date and time when the task was started. *
*/ public java.util.Date getStartTime() { return startTime; } /** ** The date and time when the task was started. *
* * @param startTime* The date and time when the task was started. *
*/ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** ** The date and time when the task was started. *
** Returns a reference to this object so that method calls can be chained * together. * * @param startTime
* The date and time when the task was started. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeAuditMitigationActionsTaskResult withStartTime(java.util.Date startTime) { this.startTime = startTime; return this; } /** ** The date and time when the task was completed or canceled. *
* * @return* The date and time when the task was completed or canceled. *
*/ public java.util.Date getEndTime() { return endTime; } /** ** The date and time when the task was completed or canceled. *
* * @param endTime* The date and time when the task was completed or canceled. *
*/ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** ** The date and time when the task was completed or canceled. *
** Returns a reference to this object so that method calls can be chained * together. * * @param endTime
* The date and time when the task was completed or canceled. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeAuditMitigationActionsTaskResult withEndTime(java.util.Date endTime) { this.endTime = endTime; return this; } /** ** Aggregate counts of the results when the mitigation tasks were applied to * the findings for this audit mitigation actions task. *
* * @return* Aggregate counts of the results when the mitigation tasks were * applied to the findings for this audit mitigation actions task. *
*/ public java.util.Map* Aggregate counts of the results when the mitigation tasks were applied to * the findings for this audit mitigation actions task. *
* * @param taskStatistics* Aggregate counts of the results when the mitigation tasks were * applied to the findings for this audit mitigation actions * task. *
*/ public void setTaskStatistics(java.util.Map* Aggregate counts of the results when the mitigation tasks were applied to * the findings for this audit mitigation actions task. *
** Returns a reference to this object so that method calls can be chained * together. * * @param taskStatistics
* Aggregate counts of the results when the mitigation tasks were * applied to the findings for this audit mitigation actions * task. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeAuditMitigationActionsTaskResult withTaskStatistics( java.util.Map* Aggregate counts of the results when the mitigation tasks were applied to * the findings for this audit mitigation actions task. *
*
* The method adds a new key-value pair into taskStatistics 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 taskStatistics.
* @param value The corresponding value of the entry to be added into
* taskStatistics.
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public DescribeAuditMitigationActionsTaskResult addtaskStatisticsEntry(String key,
TaskStatisticsForAuditCheck value) {
if (null == this.taskStatistics) {
this.taskStatistics = new java.util.HashMap
* Returns a reference to this object so that method calls can be chained
* together.
*/
public DescribeAuditMitigationActionsTaskResult cleartaskStatisticsEntries() {
this.taskStatistics = null;
return this;
}
/**
*
* Identifies the findings to which the mitigation actions are applied. This
* can be by audit checks, by audit task, or a set of findings.
*
* Identifies the findings to which the mitigation actions are
* applied. This can be by audit checks, by audit task, or a set of
* findings.
*
* Identifies the findings to which the mitigation actions are applied. This
* can be by audit checks, by audit task, or a set of findings.
*
* Identifies the findings to which the mitigation actions are
* applied. This can be by audit checks, by audit task, or a set
* of findings.
*
* Identifies the findings to which the mitigation actions are applied. This
* can be by audit checks, by audit task, or a set of findings.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param target
* Identifies the findings to which the mitigation actions are
* applied. This can be by audit checks, by audit task, or a set
* of findings.
*
* Specifies the mitigation actions that should be applied to specific audit
* checks.
*
* Specifies the mitigation actions that should be applied to
* specific audit checks.
*
* Specifies the mitigation actions that should be applied to specific audit
* checks.
*
* Specifies the mitigation actions that should be applied to
* specific audit checks.
*
* Specifies the mitigation actions that should be applied to specific audit
* checks.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param auditCheckToActionsMapping
* Specifies the mitigation actions that should be applied to
* specific audit checks.
*
* Specifies the mitigation actions that should be applied to specific audit
* checks.
*
* 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 DescribeAuditMitigationActionsTaskResult addauditCheckToActionsMappingEntry(String key,
java.util.List
* Returns a reference to this object so that method calls can be chained
* together.
*/
public DescribeAuditMitigationActionsTaskResult clearauditCheckToActionsMappingEntries() {
this.auditCheckToActionsMapping = null;
return this;
}
/**
*
* Specifies the mitigation actions and their parameters that are applied as
* part of this task.
*
* Specifies the mitigation actions and their parameters that are
* applied as part of this task.
*
* Specifies the mitigation actions and their parameters that are applied as
* part of this task.
*
* Specifies the mitigation actions and their parameters that are
* applied as part of this task.
*
* Specifies the mitigation actions and their parameters that are applied as
* part of this task.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param actionsDefinition
* Specifies the mitigation actions and their parameters that are
* applied as part of this task.
*
* Specifies the mitigation actions and their parameters that are applied as
* part of this task.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param actionsDefinition
* Specifies the mitigation actions and their parameters that are
* applied as part of this task.
*