All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.inspector2.model.Finding Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Inspector2 module holds the client classes that are used for communicating with Inspector2 Service

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2019-2024 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.inspector2.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Details about an Amazon Inspector finding. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Finding implements Serializable, Cloneable, StructuredPojo { /** *

* The Amazon Web Services account ID associated with the finding. *

*/ private String awsAccountId; /** *

* Details about the code vulnerability identified in a Lambda function used to filter findings. *

*/ private CodeVulnerabilityDetails codeVulnerabilityDetails; /** *

* The description of the finding. *

*/ private String description; /** *

* The finding's EPSS score. *

*/ private EpssDetails epss; /** *

* If a finding discovered in your environment has an exploit available. *

*/ private String exploitAvailable; /** *

* The details of an exploit available for a finding discovered in your environment. *

*/ private ExploitabilityDetails exploitabilityDetails; /** *

* The Amazon Resource Number (ARN) of the finding. *

*/ private String findingArn; /** *

* The date and time that the finding was first observed. *

*/ private java.util.Date firstObservedAt; /** *

* Details on whether a fix is available through a version update. This value can be YES, * NO, or PARTIAL. A PARTIAL fix means that some, but not all, of the * packages identified in the finding have fixes available through updated versions. *

*/ private String fixAvailable; /** *

* The Amazon Inspector score given to the finding. *

*/ private Double inspectorScore; /** *

* An object that contains details of the Amazon Inspector score. *

*/ private InspectorScoreDetails inspectorScoreDetails; /** *

* The date and time the finding was last observed. This timestamp for this field remains unchanged until a finding * is updated. *

*/ private java.util.Date lastObservedAt; /** *

* An object that contains the details of a network reachability finding. *

*/ private NetworkReachabilityDetails networkReachabilityDetails; /** *

* An object that contains the details of a package vulnerability finding. *

*/ private PackageVulnerabilityDetails packageVulnerabilityDetails; /** *

* An object that contains the details about how to remediate a finding. *

*/ private Remediation remediation; /** *

* Contains information on the resources involved in a finding. The resource value determines the valid * values for type in your request. For more information, see Finding types in the Amazon * Inspector user guide. *

*/ private java.util.List resources; /** *

* The severity of the finding. UNTRIAGED applies to PACKAGE_VULNERABILITY type findings * that the vendor has not assigned a severity yet. For more information, see Severity levels for * findings in the Amazon Inspector user guide. *

*/ private String severity; /** *

* The status of the finding. *

*/ private String status; /** *

* The title of the finding. *

*/ private String title; /** *

* The type of the finding. The type value determines the valid values for resource in * your request. For more information, see Finding types in the Amazon * Inspector user guide. *

*/ private String type; /** *

* The date and time the finding was last updated at. *

*/ private java.util.Date updatedAt; /** *

* The Amazon Web Services account ID associated with the finding. *

* * @param awsAccountId * The Amazon Web Services account ID associated with the finding. */ public void setAwsAccountId(String awsAccountId) { this.awsAccountId = awsAccountId; } /** *

* The Amazon Web Services account ID associated with the finding. *

* * @return The Amazon Web Services account ID associated with the finding. */ public String getAwsAccountId() { return this.awsAccountId; } /** *

* The Amazon Web Services account ID associated with the finding. *

* * @param awsAccountId * The Amazon Web Services account ID associated with the finding. * @return Returns a reference to this object so that method calls can be chained together. */ public Finding withAwsAccountId(String awsAccountId) { setAwsAccountId(awsAccountId); return this; } /** *

* Details about the code vulnerability identified in a Lambda function used to filter findings. *

* * @param codeVulnerabilityDetails * Details about the code vulnerability identified in a Lambda function used to filter findings. */ public void setCodeVulnerabilityDetails(CodeVulnerabilityDetails codeVulnerabilityDetails) { this.codeVulnerabilityDetails = codeVulnerabilityDetails; } /** *

* Details about the code vulnerability identified in a Lambda function used to filter findings. *

* * @return Details about the code vulnerability identified in a Lambda function used to filter findings. */ public CodeVulnerabilityDetails getCodeVulnerabilityDetails() { return this.codeVulnerabilityDetails; } /** *

* Details about the code vulnerability identified in a Lambda function used to filter findings. *

* * @param codeVulnerabilityDetails * Details about the code vulnerability identified in a Lambda function used to filter findings. * @return Returns a reference to this object so that method calls can be chained together. */ public Finding withCodeVulnerabilityDetails(CodeVulnerabilityDetails codeVulnerabilityDetails) { setCodeVulnerabilityDetails(codeVulnerabilityDetails); return this; } /** *

* The description of the finding. *

* * @param description * The description of the finding. */ public void setDescription(String description) { this.description = description; } /** *

* The description of the finding. *

* * @return The description of the finding. */ public String getDescription() { return this.description; } /** *

* The description of the finding. *

* * @param description * The description of the finding. * @return Returns a reference to this object so that method calls can be chained together. */ public Finding withDescription(String description) { setDescription(description); return this; } /** *

* The finding's EPSS score. *

* * @param epss * The finding's EPSS score. */ public void setEpss(EpssDetails epss) { this.epss = epss; } /** *

* The finding's EPSS score. *

* * @return The finding's EPSS score. */ public EpssDetails getEpss() { return this.epss; } /** *

* The finding's EPSS score. *

* * @param epss * The finding's EPSS score. * @return Returns a reference to this object so that method calls can be chained together. */ public Finding withEpss(EpssDetails epss) { setEpss(epss); return this; } /** *

* If a finding discovered in your environment has an exploit available. *

* * @param exploitAvailable * If a finding discovered in your environment has an exploit available. * @see ExploitAvailable */ public void setExploitAvailable(String exploitAvailable) { this.exploitAvailable = exploitAvailable; } /** *

* If a finding discovered in your environment has an exploit available. *

* * @return If a finding discovered in your environment has an exploit available. * @see ExploitAvailable */ public String getExploitAvailable() { return this.exploitAvailable; } /** *

* If a finding discovered in your environment has an exploit available. *

* * @param exploitAvailable * If a finding discovered in your environment has an exploit available. * @return Returns a reference to this object so that method calls can be chained together. * @see ExploitAvailable */ public Finding withExploitAvailable(String exploitAvailable) { setExploitAvailable(exploitAvailable); return this; } /** *

* If a finding discovered in your environment has an exploit available. *

* * @param exploitAvailable * If a finding discovered in your environment has an exploit available. * @return Returns a reference to this object so that method calls can be chained together. * @see ExploitAvailable */ public Finding withExploitAvailable(ExploitAvailable exploitAvailable) { this.exploitAvailable = exploitAvailable.toString(); return this; } /** *

* The details of an exploit available for a finding discovered in your environment. *

* * @param exploitabilityDetails * The details of an exploit available for a finding discovered in your environment. */ public void setExploitabilityDetails(ExploitabilityDetails exploitabilityDetails) { this.exploitabilityDetails = exploitabilityDetails; } /** *

* The details of an exploit available for a finding discovered in your environment. *

* * @return The details of an exploit available for a finding discovered in your environment. */ public ExploitabilityDetails getExploitabilityDetails() { return this.exploitabilityDetails; } /** *

* The details of an exploit available for a finding discovered in your environment. *

* * @param exploitabilityDetails * The details of an exploit available for a finding discovered in your environment. * @return Returns a reference to this object so that method calls can be chained together. */ public Finding withExploitabilityDetails(ExploitabilityDetails exploitabilityDetails) { setExploitabilityDetails(exploitabilityDetails); return this; } /** *

* The Amazon Resource Number (ARN) of the finding. *

* * @param findingArn * The Amazon Resource Number (ARN) of the finding. */ public void setFindingArn(String findingArn) { this.findingArn = findingArn; } /** *

* The Amazon Resource Number (ARN) of the finding. *

* * @return The Amazon Resource Number (ARN) of the finding. */ public String getFindingArn() { return this.findingArn; } /** *

* The Amazon Resource Number (ARN) of the finding. *

* * @param findingArn * The Amazon Resource Number (ARN) of the finding. * @return Returns a reference to this object so that method calls can be chained together. */ public Finding withFindingArn(String findingArn) { setFindingArn(findingArn); return this; } /** *

* The date and time that the finding was first observed. *

* * @param firstObservedAt * The date and time that the finding was first observed. */ public void setFirstObservedAt(java.util.Date firstObservedAt) { this.firstObservedAt = firstObservedAt; } /** *

* The date and time that the finding was first observed. *

* * @return The date and time that the finding was first observed. */ public java.util.Date getFirstObservedAt() { return this.firstObservedAt; } /** *

* The date and time that the finding was first observed. *

* * @param firstObservedAt * The date and time that the finding was first observed. * @return Returns a reference to this object so that method calls can be chained together. */ public Finding withFirstObservedAt(java.util.Date firstObservedAt) { setFirstObservedAt(firstObservedAt); return this; } /** *

* Details on whether a fix is available through a version update. This value can be YES, * NO, or PARTIAL. A PARTIAL fix means that some, but not all, of the * packages identified in the finding have fixes available through updated versions. *

* * @param fixAvailable * Details on whether a fix is available through a version update. This value can be YES, * NO, or PARTIAL. A PARTIAL fix means that some, but not all, of the * packages identified in the finding have fixes available through updated versions. * @see FixAvailable */ public void setFixAvailable(String fixAvailable) { this.fixAvailable = fixAvailable; } /** *

* Details on whether a fix is available through a version update. This value can be YES, * NO, or PARTIAL. A PARTIAL fix means that some, but not all, of the * packages identified in the finding have fixes available through updated versions. *

* * @return Details on whether a fix is available through a version update. This value can be YES, * NO, or PARTIAL. A PARTIAL fix means that some, but not all, of the * packages identified in the finding have fixes available through updated versions. * @see FixAvailable */ public String getFixAvailable() { return this.fixAvailable; } /** *

* Details on whether a fix is available through a version update. This value can be YES, * NO, or PARTIAL. A PARTIAL fix means that some, but not all, of the * packages identified in the finding have fixes available through updated versions. *

* * @param fixAvailable * Details on whether a fix is available through a version update. This value can be YES, * NO, or PARTIAL. A PARTIAL fix means that some, but not all, of the * packages identified in the finding have fixes available through updated versions. * @return Returns a reference to this object so that method calls can be chained together. * @see FixAvailable */ public Finding withFixAvailable(String fixAvailable) { setFixAvailable(fixAvailable); return this; } /** *

* Details on whether a fix is available through a version update. This value can be YES, * NO, or PARTIAL. A PARTIAL fix means that some, but not all, of the * packages identified in the finding have fixes available through updated versions. *

* * @param fixAvailable * Details on whether a fix is available through a version update. This value can be YES, * NO, or PARTIAL. A PARTIAL fix means that some, but not all, of the * packages identified in the finding have fixes available through updated versions. * @return Returns a reference to this object so that method calls can be chained together. * @see FixAvailable */ public Finding withFixAvailable(FixAvailable fixAvailable) { this.fixAvailable = fixAvailable.toString(); return this; } /** *

* The Amazon Inspector score given to the finding. *

* * @param inspectorScore * The Amazon Inspector score given to the finding. */ public void setInspectorScore(Double inspectorScore) { this.inspectorScore = inspectorScore; } /** *

* The Amazon Inspector score given to the finding. *

* * @return The Amazon Inspector score given to the finding. */ public Double getInspectorScore() { return this.inspectorScore; } /** *

* The Amazon Inspector score given to the finding. *

* * @param inspectorScore * The Amazon Inspector score given to the finding. * @return Returns a reference to this object so that method calls can be chained together. */ public Finding withInspectorScore(Double inspectorScore) { setInspectorScore(inspectorScore); return this; } /** *

* An object that contains details of the Amazon Inspector score. *

* * @param inspectorScoreDetails * An object that contains details of the Amazon Inspector score. */ public void setInspectorScoreDetails(InspectorScoreDetails inspectorScoreDetails) { this.inspectorScoreDetails = inspectorScoreDetails; } /** *

* An object that contains details of the Amazon Inspector score. *

* * @return An object that contains details of the Amazon Inspector score. */ public InspectorScoreDetails getInspectorScoreDetails() { return this.inspectorScoreDetails; } /** *

* An object that contains details of the Amazon Inspector score. *

* * @param inspectorScoreDetails * An object that contains details of the Amazon Inspector score. * @return Returns a reference to this object so that method calls can be chained together. */ public Finding withInspectorScoreDetails(InspectorScoreDetails inspectorScoreDetails) { setInspectorScoreDetails(inspectorScoreDetails); return this; } /** *

* The date and time the finding was last observed. This timestamp for this field remains unchanged until a finding * is updated. *

* * @param lastObservedAt * The date and time the finding was last observed. This timestamp for this field remains unchanged until a * finding is updated. */ public void setLastObservedAt(java.util.Date lastObservedAt) { this.lastObservedAt = lastObservedAt; } /** *

* The date and time the finding was last observed. This timestamp for this field remains unchanged until a finding * is updated. *

* * @return The date and time the finding was last observed. This timestamp for this field remains unchanged until a * finding is updated. */ public java.util.Date getLastObservedAt() { return this.lastObservedAt; } /** *

* The date and time the finding was last observed. This timestamp for this field remains unchanged until a finding * is updated. *

* * @param lastObservedAt * The date and time the finding was last observed. This timestamp for this field remains unchanged until a * finding is updated. * @return Returns a reference to this object so that method calls can be chained together. */ public Finding withLastObservedAt(java.util.Date lastObservedAt) { setLastObservedAt(lastObservedAt); return this; } /** *

* An object that contains the details of a network reachability finding. *

* * @param networkReachabilityDetails * An object that contains the details of a network reachability finding. */ public void setNetworkReachabilityDetails(NetworkReachabilityDetails networkReachabilityDetails) { this.networkReachabilityDetails = networkReachabilityDetails; } /** *

* An object that contains the details of a network reachability finding. *

* * @return An object that contains the details of a network reachability finding. */ public NetworkReachabilityDetails getNetworkReachabilityDetails() { return this.networkReachabilityDetails; } /** *

* An object that contains the details of a network reachability finding. *

* * @param networkReachabilityDetails * An object that contains the details of a network reachability finding. * @return Returns a reference to this object so that method calls can be chained together. */ public Finding withNetworkReachabilityDetails(NetworkReachabilityDetails networkReachabilityDetails) { setNetworkReachabilityDetails(networkReachabilityDetails); return this; } /** *

* An object that contains the details of a package vulnerability finding. *

* * @param packageVulnerabilityDetails * An object that contains the details of a package vulnerability finding. */ public void setPackageVulnerabilityDetails(PackageVulnerabilityDetails packageVulnerabilityDetails) { this.packageVulnerabilityDetails = packageVulnerabilityDetails; } /** *

* An object that contains the details of a package vulnerability finding. *

* * @return An object that contains the details of a package vulnerability finding. */ public PackageVulnerabilityDetails getPackageVulnerabilityDetails() { return this.packageVulnerabilityDetails; } /** *

* An object that contains the details of a package vulnerability finding. *

* * @param packageVulnerabilityDetails * An object that contains the details of a package vulnerability finding. * @return Returns a reference to this object so that method calls can be chained together. */ public Finding withPackageVulnerabilityDetails(PackageVulnerabilityDetails packageVulnerabilityDetails) { setPackageVulnerabilityDetails(packageVulnerabilityDetails); return this; } /** *

* An object that contains the details about how to remediate a finding. *

* * @param remediation * An object that contains the details about how to remediate a finding. */ public void setRemediation(Remediation remediation) { this.remediation = remediation; } /** *

* An object that contains the details about how to remediate a finding. *

* * @return An object that contains the details about how to remediate a finding. */ public Remediation getRemediation() { return this.remediation; } /** *

* An object that contains the details about how to remediate a finding. *

* * @param remediation * An object that contains the details about how to remediate a finding. * @return Returns a reference to this object so that method calls can be chained together. */ public Finding withRemediation(Remediation remediation) { setRemediation(remediation); return this; } /** *

* Contains information on the resources involved in a finding. The resource value determines the valid * values for type in your request. For more information, see Finding types in the Amazon * Inspector user guide. *

* * @return Contains information on the resources involved in a finding. The resource value determines * the valid values for type in your request. For more information, see Finding types in the * Amazon Inspector user guide. */ public java.util.List getResources() { return resources; } /** *

* Contains information on the resources involved in a finding. The resource value determines the valid * values for type in your request. For more information, see Finding types in the Amazon * Inspector user guide. *

* * @param resources * Contains information on the resources involved in a finding. The resource value determines * the valid values for type in your request. For more information, see Finding types in the * Amazon Inspector user guide. */ public void setResources(java.util.Collection resources) { if (resources == null) { this.resources = null; return; } this.resources = new java.util.ArrayList(resources); } /** *

* Contains information on the resources involved in a finding. The resource value determines the valid * values for type in your request. For more information, see Finding types in the Amazon * Inspector user guide. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setResources(java.util.Collection)} or {@link #withResources(java.util.Collection)} if you want to * override the existing values. *

* * @param resources * Contains information on the resources involved in a finding. The resource value determines * the valid values for type in your request. For more information, see Finding types in the * Amazon Inspector user guide. * @return Returns a reference to this object so that method calls can be chained together. */ public Finding withResources(Resource... resources) { if (this.resources == null) { setResources(new java.util.ArrayList(resources.length)); } for (Resource ele : resources) { this.resources.add(ele); } return this; } /** *

* Contains information on the resources involved in a finding. The resource value determines the valid * values for type in your request. For more information, see Finding types in the Amazon * Inspector user guide. *

* * @param resources * Contains information on the resources involved in a finding. The resource value determines * the valid values for type in your request. For more information, see Finding types in the * Amazon Inspector user guide. * @return Returns a reference to this object so that method calls can be chained together. */ public Finding withResources(java.util.Collection resources) { setResources(resources); return this; } /** *

* The severity of the finding. UNTRIAGED applies to PACKAGE_VULNERABILITY type findings * that the vendor has not assigned a severity yet. For more information, see Severity levels for * findings in the Amazon Inspector user guide. *

* * @param severity * The severity of the finding. UNTRIAGED applies to PACKAGE_VULNERABILITY type * findings that the vendor has not assigned a severity yet. For more information, see Severity * levels for findings in the Amazon Inspector user guide. * @see Severity */ public void setSeverity(String severity) { this.severity = severity; } /** *

* The severity of the finding. UNTRIAGED applies to PACKAGE_VULNERABILITY type findings * that the vendor has not assigned a severity yet. For more information, see Severity levels for * findings in the Amazon Inspector user guide. *

* * @return The severity of the finding. UNTRIAGED applies to PACKAGE_VULNERABILITY type * findings that the vendor has not assigned a severity yet. For more information, see Severity * levels for findings in the Amazon Inspector user guide. * @see Severity */ public String getSeverity() { return this.severity; } /** *

* The severity of the finding. UNTRIAGED applies to PACKAGE_VULNERABILITY type findings * that the vendor has not assigned a severity yet. For more information, see Severity levels for * findings in the Amazon Inspector user guide. *

* * @param severity * The severity of the finding. UNTRIAGED applies to PACKAGE_VULNERABILITY type * findings that the vendor has not assigned a severity yet. For more information, see Severity * levels for findings in the Amazon Inspector user guide. * @return Returns a reference to this object so that method calls can be chained together. * @see Severity */ public Finding withSeverity(String severity) { setSeverity(severity); return this; } /** *

* The severity of the finding. UNTRIAGED applies to PACKAGE_VULNERABILITY type findings * that the vendor has not assigned a severity yet. For more information, see Severity levels for * findings in the Amazon Inspector user guide. *

* * @param severity * The severity of the finding. UNTRIAGED applies to PACKAGE_VULNERABILITY type * findings that the vendor has not assigned a severity yet. For more information, see Severity * levels for findings in the Amazon Inspector user guide. * @return Returns a reference to this object so that method calls can be chained together. * @see Severity */ public Finding withSeverity(Severity severity) { this.severity = severity.toString(); return this; } /** *

* The status of the finding. *

* * @param status * The status of the finding. * @see FindingStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the finding. *

* * @return The status of the finding. * @see FindingStatus */ public String getStatus() { return this.status; } /** *

* The status of the finding. *

* * @param status * The status of the finding. * @return Returns a reference to this object so that method calls can be chained together. * @see FindingStatus */ public Finding withStatus(String status) { setStatus(status); return this; } /** *

* The status of the finding. *

* * @param status * The status of the finding. * @return Returns a reference to this object so that method calls can be chained together. * @see FindingStatus */ public Finding withStatus(FindingStatus status) { this.status = status.toString(); return this; } /** *

* The title of the finding. *

* * @param title * The title of the finding. */ public void setTitle(String title) { this.title = title; } /** *

* The title of the finding. *

* * @return The title of the finding. */ public String getTitle() { return this.title; } /** *

* The title of the finding. *

* * @param title * The title of the finding. * @return Returns a reference to this object so that method calls can be chained together. */ public Finding withTitle(String title) { setTitle(title); return this; } /** *

* The type of the finding. The type value determines the valid values for resource in * your request. For more information, see Finding types in the Amazon * Inspector user guide. *

* * @param type * The type of the finding. The type value determines the valid values for resource * in your request. For more information, see Finding types in the * Amazon Inspector user guide. * @see FindingType */ public void setType(String type) { this.type = type; } /** *

* The type of the finding. The type value determines the valid values for resource in * your request. For more information, see Finding types in the Amazon * Inspector user guide. *

* * @return The type of the finding. The type value determines the valid values for * resource in your request. For more information, see Finding types in the * Amazon Inspector user guide. * @see FindingType */ public String getType() { return this.type; } /** *

* The type of the finding. The type value determines the valid values for resource in * your request. For more information, see Finding types in the Amazon * Inspector user guide. *

* * @param type * The type of the finding. The type value determines the valid values for resource * in your request. For more information, see Finding types in the * Amazon Inspector user guide. * @return Returns a reference to this object so that method calls can be chained together. * @see FindingType */ public Finding withType(String type) { setType(type); return this; } /** *

* The type of the finding. The type value determines the valid values for resource in * your request. For more information, see Finding types in the Amazon * Inspector user guide. *

* * @param type * The type of the finding. The type value determines the valid values for resource * in your request. For more information, see Finding types in the * Amazon Inspector user guide. * @return Returns a reference to this object so that method calls can be chained together. * @see FindingType */ public Finding withType(FindingType type) { this.type = type.toString(); return this; } /** *

* The date and time the finding was last updated at. *

* * @param updatedAt * The date and time the finding was last updated at. */ public void setUpdatedAt(java.util.Date updatedAt) { this.updatedAt = updatedAt; } /** *

* The date and time the finding was last updated at. *

* * @return The date and time the finding was last updated at. */ public java.util.Date getUpdatedAt() { return this.updatedAt; } /** *

* The date and time the finding was last updated at. *

* * @param updatedAt * The date and time the finding was last updated at. * @return Returns a reference to this object so that method calls can be chained together. */ public Finding withUpdatedAt(java.util.Date updatedAt) { setUpdatedAt(updatedAt); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAwsAccountId() != null) sb.append("AwsAccountId: ").append(getAwsAccountId()).append(","); if (getCodeVulnerabilityDetails() != null) sb.append("CodeVulnerabilityDetails: ").append(getCodeVulnerabilityDetails()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getEpss() != null) sb.append("Epss: ").append(getEpss()).append(","); if (getExploitAvailable() != null) sb.append("ExploitAvailable: ").append(getExploitAvailable()).append(","); if (getExploitabilityDetails() != null) sb.append("ExploitabilityDetails: ").append(getExploitabilityDetails()).append(","); if (getFindingArn() != null) sb.append("FindingArn: ").append(getFindingArn()).append(","); if (getFirstObservedAt() != null) sb.append("FirstObservedAt: ").append(getFirstObservedAt()).append(","); if (getFixAvailable() != null) sb.append("FixAvailable: ").append(getFixAvailable()).append(","); if (getInspectorScore() != null) sb.append("InspectorScore: ").append(getInspectorScore()).append(","); if (getInspectorScoreDetails() != null) sb.append("InspectorScoreDetails: ").append(getInspectorScoreDetails()).append(","); if (getLastObservedAt() != null) sb.append("LastObservedAt: ").append(getLastObservedAt()).append(","); if (getNetworkReachabilityDetails() != null) sb.append("NetworkReachabilityDetails: ").append(getNetworkReachabilityDetails()).append(","); if (getPackageVulnerabilityDetails() != null) sb.append("PackageVulnerabilityDetails: ").append(getPackageVulnerabilityDetails()).append(","); if (getRemediation() != null) sb.append("Remediation: ").append(getRemediation()).append(","); if (getResources() != null) sb.append("Resources: ").append(getResources()).append(","); if (getSeverity() != null) sb.append("Severity: ").append(getSeverity()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getTitle() != null) sb.append("Title: ").append(getTitle()).append(","); if (getType() != null) sb.append("Type: ").append(getType()).append(","); if (getUpdatedAt() != null) sb.append("UpdatedAt: ").append(getUpdatedAt()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Finding == false) return false; Finding other = (Finding) obj; if (other.getAwsAccountId() == null ^ this.getAwsAccountId() == null) return false; if (other.getAwsAccountId() != null && other.getAwsAccountId().equals(this.getAwsAccountId()) == false) return false; if (other.getCodeVulnerabilityDetails() == null ^ this.getCodeVulnerabilityDetails() == null) return false; if (other.getCodeVulnerabilityDetails() != null && other.getCodeVulnerabilityDetails().equals(this.getCodeVulnerabilityDetails()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getEpss() == null ^ this.getEpss() == null) return false; if (other.getEpss() != null && other.getEpss().equals(this.getEpss()) == false) return false; if (other.getExploitAvailable() == null ^ this.getExploitAvailable() == null) return false; if (other.getExploitAvailable() != null && other.getExploitAvailable().equals(this.getExploitAvailable()) == false) return false; if (other.getExploitabilityDetails() == null ^ this.getExploitabilityDetails() == null) return false; if (other.getExploitabilityDetails() != null && other.getExploitabilityDetails().equals(this.getExploitabilityDetails()) == false) return false; if (other.getFindingArn() == null ^ this.getFindingArn() == null) return false; if (other.getFindingArn() != null && other.getFindingArn().equals(this.getFindingArn()) == false) return false; if (other.getFirstObservedAt() == null ^ this.getFirstObservedAt() == null) return false; if (other.getFirstObservedAt() != null && other.getFirstObservedAt().equals(this.getFirstObservedAt()) == false) return false; if (other.getFixAvailable() == null ^ this.getFixAvailable() == null) return false; if (other.getFixAvailable() != null && other.getFixAvailable().equals(this.getFixAvailable()) == false) return false; if (other.getInspectorScore() == null ^ this.getInspectorScore() == null) return false; if (other.getInspectorScore() != null && other.getInspectorScore().equals(this.getInspectorScore()) == false) return false; if (other.getInspectorScoreDetails() == null ^ this.getInspectorScoreDetails() == null) return false; if (other.getInspectorScoreDetails() != null && other.getInspectorScoreDetails().equals(this.getInspectorScoreDetails()) == false) return false; if (other.getLastObservedAt() == null ^ this.getLastObservedAt() == null) return false; if (other.getLastObservedAt() != null && other.getLastObservedAt().equals(this.getLastObservedAt()) == false) return false; if (other.getNetworkReachabilityDetails() == null ^ this.getNetworkReachabilityDetails() == null) return false; if (other.getNetworkReachabilityDetails() != null && other.getNetworkReachabilityDetails().equals(this.getNetworkReachabilityDetails()) == false) return false; if (other.getPackageVulnerabilityDetails() == null ^ this.getPackageVulnerabilityDetails() == null) return false; if (other.getPackageVulnerabilityDetails() != null && other.getPackageVulnerabilityDetails().equals(this.getPackageVulnerabilityDetails()) == false) return false; if (other.getRemediation() == null ^ this.getRemediation() == null) return false; if (other.getRemediation() != null && other.getRemediation().equals(this.getRemediation()) == false) return false; if (other.getResources() == null ^ this.getResources() == null) return false; if (other.getResources() != null && other.getResources().equals(this.getResources()) == false) return false; if (other.getSeverity() == null ^ this.getSeverity() == null) return false; if (other.getSeverity() != null && other.getSeverity().equals(this.getSeverity()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getTitle() == null ^ this.getTitle() == null) return false; if (other.getTitle() != null && other.getTitle().equals(this.getTitle()) == false) return false; if (other.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == false) return false; if (other.getUpdatedAt() == null ^ this.getUpdatedAt() == null) return false; if (other.getUpdatedAt() != null && other.getUpdatedAt().equals(this.getUpdatedAt()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAwsAccountId() == null) ? 0 : getAwsAccountId().hashCode()); hashCode = prime * hashCode + ((getCodeVulnerabilityDetails() == null) ? 0 : getCodeVulnerabilityDetails().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getEpss() == null) ? 0 : getEpss().hashCode()); hashCode = prime * hashCode + ((getExploitAvailable() == null) ? 0 : getExploitAvailable().hashCode()); hashCode = prime * hashCode + ((getExploitabilityDetails() == null) ? 0 : getExploitabilityDetails().hashCode()); hashCode = prime * hashCode + ((getFindingArn() == null) ? 0 : getFindingArn().hashCode()); hashCode = prime * hashCode + ((getFirstObservedAt() == null) ? 0 : getFirstObservedAt().hashCode()); hashCode = prime * hashCode + ((getFixAvailable() == null) ? 0 : getFixAvailable().hashCode()); hashCode = prime * hashCode + ((getInspectorScore() == null) ? 0 : getInspectorScore().hashCode()); hashCode = prime * hashCode + ((getInspectorScoreDetails() == null) ? 0 : getInspectorScoreDetails().hashCode()); hashCode = prime * hashCode + ((getLastObservedAt() == null) ? 0 : getLastObservedAt().hashCode()); hashCode = prime * hashCode + ((getNetworkReachabilityDetails() == null) ? 0 : getNetworkReachabilityDetails().hashCode()); hashCode = prime * hashCode + ((getPackageVulnerabilityDetails() == null) ? 0 : getPackageVulnerabilityDetails().hashCode()); hashCode = prime * hashCode + ((getRemediation() == null) ? 0 : getRemediation().hashCode()); hashCode = prime * hashCode + ((getResources() == null) ? 0 : getResources().hashCode()); hashCode = prime * hashCode + ((getSeverity() == null) ? 0 : getSeverity().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getTitle() == null) ? 0 : getTitle().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode()); return hashCode; } @Override public Finding clone() { try { return (Finding) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.inspector2.model.transform.FindingMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy