Class ImageScanFinding

java.lang.Object
software.amazon.awssdk.services.imagebuilder.model.ImageScanFinding
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<ImageScanFinding.Builder,ImageScanFinding>

@Generated("software.amazon.awssdk:codegen") public final class ImageScanFinding extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ImageScanFinding.Builder,ImageScanFinding>

Contains details about a vulnerability scan finding.

See Also:
  • Method Details

    • awsAccountId

      public final String awsAccountId()

      The Amazon Web Services account ID that's associated with the finding.

      Returns:
      The Amazon Web Services account ID that's associated with the finding.
    • imageBuildVersionArn

      public final String imageBuildVersionArn()

      The Amazon Resource Name (ARN) of the image build version that's associated with the finding.

      Returns:
      The Amazon Resource Name (ARN) of the image build version that's associated with the finding.
    • imagePipelineArn

      public final String imagePipelineArn()

      The Amazon Resource Name (ARN) of the image pipeline that's associated with the finding.

      Returns:
      The Amazon Resource Name (ARN) of the image pipeline that's associated with the finding.
    • type

      public final String type()

      The type of the finding. Image Builder looks for findings of the type PACKAGE_VULNERABILITY that apply to output images, and excludes other types.

      Returns:
      The type of the finding. Image Builder looks for findings of the type PACKAGE_VULNERABILITY that apply to output images, and excludes other types.
    • description

      public final String description()

      The description of the finding.

      Returns:
      The description of the finding.
    • title

      public final String title()

      The title of the finding.

      Returns:
      The title of the finding.
    • remediation

      public final Remediation remediation()

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

      Returns:
      An object that contains the details about how to remediate the finding.
    • severity

      public final String severity()

      The severity of the finding.

      Returns:
      The severity of the finding.
    • firstObservedAt

      public final Instant firstObservedAt()

      The date and time when the finding was first observed.

      Returns:
      The date and time when the finding was first observed.
    • updatedAt

      public final Instant updatedAt()

      The timestamp when the finding was last updated.

      Returns:
      The timestamp when the finding was last updated.
    • inspectorScore

      public final Double inspectorScore()

      The score that Amazon Inspector assigned for the finding.

      Returns:
      The score that Amazon Inspector assigned for the finding.
    • inspectorScoreDetails

      public final InspectorScoreDetails inspectorScoreDetails()

      An object that contains details of the Amazon Inspector score.

      Returns:
      An object that contains details of the Amazon Inspector score.
    • packageVulnerabilityDetails

      public final PackageVulnerabilityDetails packageVulnerabilityDetails()

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

      Returns:
      An object that contains the details of a package vulnerability finding.
    • fixAvailable

      public final String fixAvailable()

      Details about whether a fix is available for any of the packages that are identified in the finding through a version update.

      Returns:
      Details about whether a fix is available for any of the packages that are identified in the finding through a version update.
    • toBuilder

      public ImageScanFinding.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<ImageScanFinding.Builder,ImageScanFinding>
      Returns:
      a builder for type T
    • builder

      public static ImageScanFinding.Builder builder()
    • serializableBuilderClass

      public static Class<? extends ImageScanFinding.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • toString

      public final String toString()
      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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.