/* * Copyright 2018-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.securityhub.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class BatchUpdateFindingsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The list of findings to update. BatchUpdateFindings
can be used to update up to 100 findings at a
* time.
*
* For each finding, the list provides the finding identifier and the ARN of the finding provider. *
*/ private java.util.List* Used to update the finding severity. *
*/ private SeverityUpdate severity; /** ** Indicates the veracity of a finding. *
*
* The available values for VerificationState
are as follows.
*
* UNKNOWN
– The default disposition of a security finding
*
* TRUE_POSITIVE
– The security finding is confirmed
*
* FALSE_POSITIVE
– The security finding was determined to be a false alarm
*
* BENIGN_POSITIVE
– A special case of TRUE_POSITIVE
where the finding doesn't pose any
* threat, is expected, or both
*
* The updated value for the finding confidence. Confidence is defined as the likelihood that a finding accurately * identifies the behavior or issue that it was intended to identify. *
** Confidence is scored on a 0-100 basis using a ratio scale, where 0 means zero percent confidence and 100 means * 100 percent confidence. *
*/ private Integer confidence; /** ** The updated value for the level of importance assigned to the resources associated with the findings. *
** A score of 0 means that the underlying resources have no criticality, and a score of 100 is reserved for the most * critical resources. *
*/ private Integer criticality; /** ** One or more finding types in the format of namespace/category/classifier that classify a finding. *
** Valid namespace values are as follows. *
** Software and Configuration Checks *
** TTPs *
** Effects *
** Unusual Behaviors *
** Sensitive Data Identifications *
** A list of name/value string pairs associated with the finding. These are custom, user-defined fields added to a * finding. *
*/ private java.util.Map* Used to update the workflow status of a finding. *
** The workflow status indicates the progress of the investigation into the finding. *
*/ private WorkflowUpdate workflow; /** ** A list of findings that are related to the updated findings. *
*/ private java.util.List
* The list of findings to update. BatchUpdateFindings
can be used to update up to 100 findings at a
* time.
*
* For each finding, the list provides the finding identifier and the ARN of the finding provider. *
* * @return The list of findings to update.BatchUpdateFindings
can be used to update up to 100 findings
* at a time.
*
* For each finding, the list provides the finding identifier and the ARN of the finding provider.
*/
public java.util.List
* The list of findings to update.
* For each finding, the list provides the finding identifier and the ARN of the finding provider.
* BatchUpdateFindings
can be used to update up to 100 findings at a
* time.
* BatchUpdateFindings
can be used to update up to 100 findings
* at a time.
* For each finding, the list provides the finding identifier and the ARN of the finding provider.
*/
public void setFindingIdentifiers(java.util.Collection
* The list of findings to update.
* For each finding, the list provides the finding identifier and the ARN of the finding provider.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setFindingIdentifiers(java.util.Collection)} or {@link #withFindingIdentifiers(java.util.Collection)} if
* you want to override the existing values.
* BatchUpdateFindings
can be used to update up to 100 findings at a
* time.
* BatchUpdateFindings
can be used to update up to 100 findings
* at a time.
* For each finding, the list provides the finding identifier and the ARN of the finding provider.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BatchUpdateFindingsRequest withFindingIdentifiers(AwsSecurityFindingIdentifier... findingIdentifiers) {
if (this.findingIdentifiers == null) {
setFindingIdentifiers(new java.util.ArrayList
* The list of findings to update.
* For each finding, the list provides the finding identifier and the ARN of the finding provider.
* BatchUpdateFindings
can be used to update up to 100 findings at a
* time.
* BatchUpdateFindings
can be used to update up to 100 findings
* at a time.
* For each finding, the list provides the finding identifier and the ARN of the finding provider.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BatchUpdateFindingsRequest withFindingIdentifiers(java.util.Collection
* Used to update the finding severity.
*
* Used to update the finding severity.
*
* Used to update the finding severity.
*
* Indicates the veracity of a finding.
*
* The available values for
*
*
*
* VerificationState
are as follows.
*
*
*
* @param verificationState
* Indicates the veracity of a finding.UNKNOWN
– The default disposition of a security finding
* TRUE_POSITIVE
– The security finding is confirmed
* FALSE_POSITIVE
– The security finding was determined to be a false alarm
* BENIGN_POSITIVE
– A special case of TRUE_POSITIVE
where the finding doesn't pose any
* threat, is expected, or both
*
* The available values for VerificationState
are as follows.
*
* UNKNOWN
– The default disposition of a security finding
*
* TRUE_POSITIVE
– The security finding is confirmed
*
* FALSE_POSITIVE
– The security finding was determined to be a false alarm
*
* BENIGN_POSITIVE
– A special case of TRUE_POSITIVE
where the finding doesn't pose
* any threat, is expected, or both
*
* Indicates the veracity of a finding. *
*
* The available values for VerificationState
are as follows.
*
* UNKNOWN
– The default disposition of a security finding
*
* TRUE_POSITIVE
– The security finding is confirmed
*
* FALSE_POSITIVE
– The security finding was determined to be a false alarm
*
* BENIGN_POSITIVE
– A special case of TRUE_POSITIVE
where the finding doesn't pose any
* threat, is expected, or both
*
* The available values for VerificationState
are as follows.
*
* UNKNOWN
– The default disposition of a security finding
*
* TRUE_POSITIVE
– The security finding is confirmed
*
* FALSE_POSITIVE
– The security finding was determined to be a false alarm
*
* BENIGN_POSITIVE
– A special case of TRUE_POSITIVE
where the finding doesn't
* pose any threat, is expected, or both
*
* Indicates the veracity of a finding. *
*
* The available values for VerificationState
are as follows.
*
* UNKNOWN
– The default disposition of a security finding
*
* TRUE_POSITIVE
– The security finding is confirmed
*
* FALSE_POSITIVE
– The security finding was determined to be a false alarm
*
* BENIGN_POSITIVE
– A special case of TRUE_POSITIVE
where the finding doesn't pose any
* threat, is expected, or both
*
* The available values for VerificationState
are as follows.
*
* UNKNOWN
– The default disposition of a security finding
*
* TRUE_POSITIVE
– The security finding is confirmed
*
* FALSE_POSITIVE
– The security finding was determined to be a false alarm
*
* BENIGN_POSITIVE
– A special case of TRUE_POSITIVE
where the finding doesn't pose
* any threat, is expected, or both
*
* Indicates the veracity of a finding. *
*
* The available values for VerificationState
are as follows.
*
* UNKNOWN
– The default disposition of a security finding
*
* TRUE_POSITIVE
– The security finding is confirmed
*
* FALSE_POSITIVE
– The security finding was determined to be a false alarm
*
* BENIGN_POSITIVE
– A special case of TRUE_POSITIVE
where the finding doesn't pose any
* threat, is expected, or both
*
* The available values for VerificationState
are as follows.
*
* UNKNOWN
– The default disposition of a security finding
*
* TRUE_POSITIVE
– The security finding is confirmed
*
* FALSE_POSITIVE
– The security finding was determined to be a false alarm
*
* BENIGN_POSITIVE
– A special case of TRUE_POSITIVE
where the finding doesn't pose
* any threat, is expected, or both
*
* The updated value for the finding confidence. Confidence is defined as the likelihood that a finding accurately * identifies the behavior or issue that it was intended to identify. *
** Confidence is scored on a 0-100 basis using a ratio scale, where 0 means zero percent confidence and 100 means * 100 percent confidence. *
* * @param confidence * The updated value for the finding confidence. Confidence is defined as the likelihood that a finding * accurately identifies the behavior or issue that it was intended to identify. ** Confidence is scored on a 0-100 basis using a ratio scale, where 0 means zero percent confidence and 100 * means 100 percent confidence. */ public void setConfidence(Integer confidence) { this.confidence = confidence; } /** *
* The updated value for the finding confidence. Confidence is defined as the likelihood that a finding accurately * identifies the behavior or issue that it was intended to identify. *
** Confidence is scored on a 0-100 basis using a ratio scale, where 0 means zero percent confidence and 100 means * 100 percent confidence. *
* * @return The updated value for the finding confidence. Confidence is defined as the likelihood that a finding * accurately identifies the behavior or issue that it was intended to identify. ** Confidence is scored on a 0-100 basis using a ratio scale, where 0 means zero percent confidence and 100 * means 100 percent confidence. */ public Integer getConfidence() { return this.confidence; } /** *
* The updated value for the finding confidence. Confidence is defined as the likelihood that a finding accurately * identifies the behavior or issue that it was intended to identify. *
** Confidence is scored on a 0-100 basis using a ratio scale, where 0 means zero percent confidence and 100 means * 100 percent confidence. *
* * @param confidence * The updated value for the finding confidence. Confidence is defined as the likelihood that a finding * accurately identifies the behavior or issue that it was intended to identify. ** Confidence is scored on a 0-100 basis using a ratio scale, where 0 means zero percent confidence and 100 * means 100 percent confidence. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchUpdateFindingsRequest withConfidence(Integer confidence) { setConfidence(confidence); return this; } /** *
* The updated value for the level of importance assigned to the resources associated with the findings. *
** A score of 0 means that the underlying resources have no criticality, and a score of 100 is reserved for the most * critical resources. *
* * @param criticality * The updated value for the level of importance assigned to the resources associated with the findings. ** A score of 0 means that the underlying resources have no criticality, and a score of 100 is reserved for * the most critical resources. */ public void setCriticality(Integer criticality) { this.criticality = criticality; } /** *
* The updated value for the level of importance assigned to the resources associated with the findings. *
** A score of 0 means that the underlying resources have no criticality, and a score of 100 is reserved for the most * critical resources. *
* * @return The updated value for the level of importance assigned to the resources associated with the findings. ** A score of 0 means that the underlying resources have no criticality, and a score of 100 is reserved for * the most critical resources. */ public Integer getCriticality() { return this.criticality; } /** *
* The updated value for the level of importance assigned to the resources associated with the findings. *
** A score of 0 means that the underlying resources have no criticality, and a score of 100 is reserved for the most * critical resources. *
* * @param criticality * The updated value for the level of importance assigned to the resources associated with the findings. ** A score of 0 means that the underlying resources have no criticality, and a score of 100 is reserved for * the most critical resources. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchUpdateFindingsRequest withCriticality(Integer criticality) { setCriticality(criticality); return this; } /** *
* One or more finding types in the format of namespace/category/classifier that classify a finding. *
** Valid namespace values are as follows. *
** Software and Configuration Checks *
** TTPs *
** Effects *
** Unusual Behaviors *
** Sensitive Data Identifications *
** Valid namespace values are as follows. *
** Software and Configuration Checks *
** TTPs *
** Effects *
** Unusual Behaviors *
** Sensitive Data Identifications *
** One or more finding types in the format of namespace/category/classifier that classify a finding. *
** Valid namespace values are as follows. *
** Software and Configuration Checks *
** TTPs *
** Effects *
** Unusual Behaviors *
** Sensitive Data Identifications *
** Valid namespace values are as follows. *
** Software and Configuration Checks *
** TTPs *
** Effects *
** Unusual Behaviors *
** Sensitive Data Identifications *
** One or more finding types in the format of namespace/category/classifier that classify a finding. *
** Valid namespace values are as follows. *
** Software and Configuration Checks *
** TTPs *
** Effects *
** Unusual Behaviors *
** Sensitive Data Identifications *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTypes(java.util.Collection)} or {@link #withTypes(java.util.Collection)} if you want to override the * existing values. *
* * @param types * One or more finding types in the format of namespace/category/classifier that classify a finding. ** Valid namespace values are as follows. *
** Software and Configuration Checks *
** TTPs *
** Effects *
** Unusual Behaviors *
** Sensitive Data Identifications *
** One or more finding types in the format of namespace/category/classifier that classify a finding. *
** Valid namespace values are as follows. *
** Software and Configuration Checks *
** TTPs *
** Effects *
** Unusual Behaviors *
** Sensitive Data Identifications *
** Valid namespace values are as follows. *
** Software and Configuration Checks *
** TTPs *
** Effects *
** Unusual Behaviors *
** Sensitive Data Identifications *
** A list of name/value string pairs associated with the finding. These are custom, user-defined fields added to a * finding. *
* * @return A list of name/value string pairs associated with the finding. These are custom, user-defined fields * added to a finding. */ public java.util.Map* A list of name/value string pairs associated with the finding. These are custom, user-defined fields added to a * finding. *
* * @param userDefinedFields * A list of name/value string pairs associated with the finding. These are custom, user-defined fields added * to a finding. */ public void setUserDefinedFields(java.util.Map* A list of name/value string pairs associated with the finding. These are custom, user-defined fields added to a * finding. *
* * @param userDefinedFields * A list of name/value string pairs associated with the finding. These are custom, user-defined fields added * to a finding. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchUpdateFindingsRequest withUserDefinedFields(java.util.Map* Used to update the workflow status of a finding. *
** The workflow status indicates the progress of the investigation into the finding. *
* * @param workflow * Used to update the workflow status of a finding. ** The workflow status indicates the progress of the investigation into the finding. */ public void setWorkflow(WorkflowUpdate workflow) { this.workflow = workflow; } /** *
* Used to update the workflow status of a finding. *
** The workflow status indicates the progress of the investigation into the finding. *
* * @return Used to update the workflow status of a finding. ** The workflow status indicates the progress of the investigation into the finding. */ public WorkflowUpdate getWorkflow() { return this.workflow; } /** *
* Used to update the workflow status of a finding. *
** The workflow status indicates the progress of the investigation into the finding. *
* * @param workflow * Used to update the workflow status of a finding. ** The workflow status indicates the progress of the investigation into the finding. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchUpdateFindingsRequest withWorkflow(WorkflowUpdate workflow) { setWorkflow(workflow); return this; } /** *
* A list of findings that are related to the updated findings. *
* * @return A list of findings that are related to the updated findings. */ public java.util.List* A list of findings that are related to the updated findings. *
* * @param relatedFindings * A list of findings that are related to the updated findings. */ public void setRelatedFindings(java.util.Collection* A list of findings that are related to the updated findings. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setRelatedFindings(java.util.Collection)} or {@link #withRelatedFindings(java.util.Collection)} if you * want to override the existing values. *
* * @param relatedFindings * A list of findings that are related to the updated findings. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchUpdateFindingsRequest withRelatedFindings(RelatedFinding... relatedFindings) { if (this.relatedFindings == null) { setRelatedFindings(new java.util.ArrayList* A list of findings that are related to the updated findings. *
* * @param relatedFindings * A list of findings that are related to the updated findings. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchUpdateFindingsRequest withRelatedFindings(java.util.Collection