java.lang.Object
com.amazonaws.services.inspector.model.Finding
All Implemented Interfaces:
Serializable, Cloneable

public class Finding extends Object implements Serializable, Cloneable

Contains information about an Amazon Inspector finding. This data type is used as the response element in the DescribeFindings action.

See Also:
  • Constructor Details

    • Finding

      public Finding()
  • Method Details

    • setArn

      public void setArn(String arn)

      The ARN that specifies the finding.

      Parameters:
      arn - The ARN that specifies the finding.
    • getArn

      public String getArn()

      The ARN that specifies the finding.

      Returns:
      The ARN that specifies the finding.
    • withArn

      public Finding withArn(String arn)

      The ARN that specifies the finding.

      Parameters:
      arn - The ARN that specifies the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setSchemaVersion

      public void setSchemaVersion(Integer schemaVersion)

      The schema version of this data type.

      Parameters:
      schemaVersion - The schema version of this data type.
    • getSchemaVersion

      public Integer getSchemaVersion()

      The schema version of this data type.

      Returns:
      The schema version of this data type.
    • withSchemaVersion

      public Finding withSchemaVersion(Integer schemaVersion)

      The schema version of this data type.

      Parameters:
      schemaVersion - The schema version of this data type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setService

      public void setService(String service)

      The data element is set to "Inspector".

      Parameters:
      service - The data element is set to "Inspector".
    • getService

      public String getService()

      The data element is set to "Inspector".

      Returns:
      The data element is set to "Inspector".
    • withService

      public Finding withService(String service)

      The data element is set to "Inspector".

      Parameters:
      service - The data element is set to "Inspector".
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setServiceAttributes

      public void setServiceAttributes(InspectorServiceAttributes serviceAttributes)
      Parameters:
      serviceAttributes -
    • getServiceAttributes

      public InspectorServiceAttributes getServiceAttributes()
      Returns:
    • withServiceAttributes

      public Finding withServiceAttributes(InspectorServiceAttributes serviceAttributes)
      Parameters:
      serviceAttributes -
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setAssetType

      public void setAssetType(String assetType)

      The type of the host from which the finding is generated.

      Parameters:
      assetType - The type of the host from which the finding is generated.
      See Also:
    • getAssetType

      public String getAssetType()

      The type of the host from which the finding is generated.

      Returns:
      The type of the host from which the finding is generated.
      See Also:
    • withAssetType

      public Finding withAssetType(String assetType)

      The type of the host from which the finding is generated.

      Parameters:
      assetType - The type of the host from which the finding is generated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setAssetType

      public void setAssetType(AssetType assetType)

      The type of the host from which the finding is generated.

      Parameters:
      assetType - The type of the host from which the finding is generated.
      See Also:
    • withAssetType

      public Finding withAssetType(AssetType assetType)

      The type of the host from which the finding is generated.

      Parameters:
      assetType - The type of the host from which the finding is generated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setAssetAttributes

      public void setAssetAttributes(AssetAttributes assetAttributes)

      A collection of attributes of the host from which the finding is generated.

      Parameters:
      assetAttributes - A collection of attributes of the host from which the finding is generated.
    • getAssetAttributes

      public AssetAttributes getAssetAttributes()

      A collection of attributes of the host from which the finding is generated.

      Returns:
      A collection of attributes of the host from which the finding is generated.
    • withAssetAttributes

      public Finding withAssetAttributes(AssetAttributes assetAttributes)

      A collection of attributes of the host from which the finding is generated.

      Parameters:
      assetAttributes - A collection of attributes of the host from which the finding is generated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setId

      public void setId(String id)

      The ID of the finding.

      Parameters:
      id - The ID of the finding.
    • getId

      public String getId()

      The ID of the finding.

      Returns:
      The ID of the finding.
    • withId

      public Finding withId(String id)

      The ID of the finding.

      Parameters:
      id - The ID of the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setTitle

      public void setTitle(String title)

      The name of the finding.

      Parameters:
      title - The name of the finding.
    • getTitle

      public String getTitle()

      The name of the finding.

      Returns:
      The name of the finding.
    • withTitle

      public Finding withTitle(String title)

      The name of the finding.

      Parameters:
      title - The name of the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setDescription

      public void setDescription(String description)

      The description of the finding.

      Parameters:
      description - The description of the finding.
    • getDescription

      public String getDescription()

      The description of the finding.

      Returns:
      The description of the finding.
    • withDescription

      public Finding withDescription(String description)

      The description of the finding.

      Parameters:
      description - The description of the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setRecommendation

      public void setRecommendation(String recommendation)

      The recommendation for the finding.

      Parameters:
      recommendation - The recommendation for the finding.
    • getRecommendation

      public String getRecommendation()

      The recommendation for the finding.

      Returns:
      The recommendation for the finding.
    • withRecommendation

      public Finding withRecommendation(String recommendation)

      The recommendation for the finding.

      Parameters:
      recommendation - The recommendation for the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setSeverity

      public void setSeverity(String severity)

      The finding severity. Values can be set to High, Medium, Low, and Informational.

      Parameters:
      severity - The finding severity. Values can be set to High, Medium, Low, and Informational.
      See Also:
    • getSeverity

      public String getSeverity()

      The finding severity. Values can be set to High, Medium, Low, and Informational.

      Returns:
      The finding severity. Values can be set to High, Medium, Low, and Informational.
      See Also:
    • withSeverity

      public Finding withSeverity(String severity)

      The finding severity. Values can be set to High, Medium, Low, and Informational.

      Parameters:
      severity - The finding severity. Values can be set to High, Medium, Low, and Informational.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setSeverity

      public void setSeverity(Severity severity)

      The finding severity. Values can be set to High, Medium, Low, and Informational.

      Parameters:
      severity - The finding severity. Values can be set to High, Medium, Low, and Informational.
      See Also:
    • withSeverity

      public Finding withSeverity(Severity severity)

      The finding severity. Values can be set to High, Medium, Low, and Informational.

      Parameters:
      severity - The finding severity. Values can be set to High, Medium, Low, and Informational.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setNumericSeverity

      public void setNumericSeverity(Double numericSeverity)

      The numeric value of the finding severity.

      Parameters:
      numericSeverity - The numeric value of the finding severity.
    • getNumericSeverity

      public Double getNumericSeverity()

      The numeric value of the finding severity.

      Returns:
      The numeric value of the finding severity.
    • withNumericSeverity

      public Finding withNumericSeverity(Double numericSeverity)

      The numeric value of the finding severity.

      Parameters:
      numericSeverity - The numeric value of the finding severity.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setConfidence

      public void setConfidence(Integer confidence)

      This data element is currently not used.

      Parameters:
      confidence - This data element is currently not used.
    • getConfidence

      public Integer getConfidence()

      This data element is currently not used.

      Returns:
      This data element is currently not used.
    • withConfidence

      public Finding withConfidence(Integer confidence)

      This data element is currently not used.

      Parameters:
      confidence - This data element is currently not used.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setIndicatorOfCompromise

      public void setIndicatorOfCompromise(Boolean indicatorOfCompromise)

      This data element is currently not used.

      Parameters:
      indicatorOfCompromise - This data element is currently not used.
    • getIndicatorOfCompromise

      public Boolean getIndicatorOfCompromise()

      This data element is currently not used.

      Returns:
      This data element is currently not used.
    • withIndicatorOfCompromise

      public Finding withIndicatorOfCompromise(Boolean indicatorOfCompromise)

      This data element is currently not used.

      Parameters:
      indicatorOfCompromise - This data element is currently not used.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • isIndicatorOfCompromise

      public Boolean isIndicatorOfCompromise()

      This data element is currently not used.

      Returns:
      This data element is currently not used.
    • getAttributes

      public List<Attribute> getAttributes()

      The system-defined attributes for the finding.

      Returns:
      The system-defined attributes for the finding.
    • setAttributes

      public void setAttributes(Collection<Attribute> attributes)

      The system-defined attributes for the finding.

      Parameters:
      attributes - The system-defined attributes for the finding.
    • withAttributes

      public Finding withAttributes(Attribute... attributes)

      The system-defined attributes for the finding.

      NOTE: This method appends the values to the existing list (if any). Use setAttributes(java.util.Collection) or withAttributes(java.util.Collection) if you want to override the existing values.

      Parameters:
      attributes - The system-defined attributes for the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withAttributes

      public Finding withAttributes(Collection<Attribute> attributes)

      The system-defined attributes for the finding.

      Parameters:
      attributes - The system-defined attributes for the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getUserAttributes

      public List<Attribute> getUserAttributes()

      The user-defined attributes that are assigned to the finding.

      Returns:
      The user-defined attributes that are assigned to the finding.
    • setUserAttributes

      public void setUserAttributes(Collection<Attribute> userAttributes)

      The user-defined attributes that are assigned to the finding.

      Parameters:
      userAttributes - The user-defined attributes that are assigned to the finding.
    • withUserAttributes

      public Finding withUserAttributes(Attribute... userAttributes)

      The user-defined attributes that are assigned to the finding.

      NOTE: This method appends the values to the existing list (if any). Use setUserAttributes(java.util.Collection) or withUserAttributes(java.util.Collection) if you want to override the existing values.

      Parameters:
      userAttributes - The user-defined attributes that are assigned to the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withUserAttributes

      public Finding withUserAttributes(Collection<Attribute> userAttributes)

      The user-defined attributes that are assigned to the finding.

      Parameters:
      userAttributes - The user-defined attributes that are assigned to the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setCreatedAt

      public void setCreatedAt(Date createdAt)

      The time when the finding was generated.

      Parameters:
      createdAt - The time when the finding was generated.
    • getCreatedAt

      public Date getCreatedAt()

      The time when the finding was generated.

      Returns:
      The time when the finding was generated.
    • withCreatedAt

      public Finding withCreatedAt(Date createdAt)

      The time when the finding was generated.

      Parameters:
      createdAt - The time when the finding was generated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setUpdatedAt

      public void setUpdatedAt(Date updatedAt)

      The time when AddAttributesToFindings is called.

      Parameters:
      updatedAt - The time when AddAttributesToFindings is called.
    • getUpdatedAt

      public Date getUpdatedAt()

      The time when AddAttributesToFindings is called.

      Returns:
      The time when AddAttributesToFindings is called.
    • withUpdatedAt

      public Finding withUpdatedAt(Date updatedAt)

      The time when AddAttributesToFindings is called.

      Parameters:
      updatedAt - The time when AddAttributesToFindings is called.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public Finding clone()
      Overrides:
      clone in class Object