/* * 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.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* In a BatchImportFindings
request, finding providers use FindingProviderFields
to provide
* and update values for confidence, criticality, related findings, severity, and types.
*
* A finding's 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 level of importance assigned to the resources associated with the finding. *
** 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; /** ** A list of findings that are related to the current finding. *
*/ private java.util.List* The severity of a finding. *
*/ private FindingProviderSeverity severity; /** *
* One or more finding types in the format of namespace/category/classifier
that classify a finding.
*
* Valid namespace values are: Software and Configuration Checks | TTPs | Effects | Unusual Behaviors | Sensitive * Data Identifications *
*/ private java.util.List* A finding's 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 * A finding's 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; } /** *
* A finding's 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 A finding's 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; } /** *
* A finding's 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 * A finding's 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 FindingProviderFields withConfidence(Integer confidence) { setConfidence(confidence); return this; } /** *
* The level of importance assigned to the resources associated with the finding. *
** 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 level of importance assigned to the resources associated with the finding. ** 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 level of importance assigned to the resources associated with the finding. *
** 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 level of importance assigned to the resources associated with the finding. ** 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 level of importance assigned to the resources associated with the finding. *
** 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 level of importance assigned to the resources associated with the finding. ** 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 FindingProviderFields withCriticality(Integer criticality) { setCriticality(criticality); return this; } /** *
* A list of findings that are related to the current finding. *
* * @return A list of findings that are related to the current finding. */ public java.util.List* A list of findings that are related to the current finding. *
* * @param relatedFindings * A list of findings that are related to the current finding. */ public void setRelatedFindings(java.util.Collection* A list of findings that are related to the current finding. *
** 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 current finding. * @return Returns a reference to this object so that method calls can be chained together. */ public FindingProviderFields withRelatedFindings(RelatedFinding... relatedFindings) { if (this.relatedFindings == null) { setRelatedFindings(new java.util.ArrayList* A list of findings that are related to the current finding. *
* * @param relatedFindings * A list of findings that are related to the current finding. * @return Returns a reference to this object so that method calls can be chained together. */ public FindingProviderFields withRelatedFindings(java.util.Collection* The severity of a finding. *
* * @param severity * The severity of a finding. */ public void setSeverity(FindingProviderSeverity severity) { this.severity = severity; } /** ** The severity of a finding. *
* * @return The severity of a finding. */ public FindingProviderSeverity getSeverity() { return this.severity; } /** ** The severity of a finding. *
* * @param severity * The severity of a finding. * @return Returns a reference to this object so that method calls can be chained together. */ public FindingProviderFields withSeverity(FindingProviderSeverity severity) { setSeverity(severity); return this; } /** *
* One or more finding types in the format of namespace/category/classifier
that classify a finding.
*
* Valid namespace values are: Software and Configuration Checks | TTPs | Effects | Unusual Behaviors | Sensitive * Data Identifications *
* * @return One or more finding types in the format ofnamespace/category/classifier
that classify a
* finding.
*
* Valid namespace values are: Software and Configuration Checks | TTPs | Effects | Unusual Behaviors |
* Sensitive Data Identifications
*/
public java.util.List
* One or more finding types in the format of
* Valid namespace values are: Software and Configuration Checks | TTPs | Effects | Unusual Behaviors | Sensitive
* Data Identifications
* namespace/category/classifier
that classify a finding.
* namespace/category/classifier
that classify a
* finding.
* Valid namespace values are: Software and Configuration Checks | TTPs | Effects | Unusual Behaviors |
* Sensitive Data Identifications
*/
public void setTypes(java.util.Collection
* One or more finding types in the format of
* Valid namespace values are: 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.
* namespace/category/classifier
that classify a finding.
* namespace/category/classifier
that classify a
* finding.
* Valid namespace values are: Software and Configuration Checks | TTPs | Effects | Unusual Behaviors |
* Sensitive Data Identifications
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FindingProviderFields withTypes(String... types) {
if (this.types == null) {
setTypes(new java.util.ArrayList
* One or more finding types in the format of
* Valid namespace values are: Software and Configuration Checks | TTPs | Effects | Unusual Behaviors | Sensitive
* Data Identifications
* namespace/category/classifier
that classify a finding.
* namespace/category/classifier
that classify a
* finding.
* Valid namespace values are: Software and Configuration Checks | TTPs | Effects | Unusual Behaviors |
* Sensitive Data Identifications
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FindingProviderFields withTypes(java.util.Collection