Interface ImageScanFinding.Builder

All Superinterfaces:
Buildable, CopyableBuilder<ImageScanFinding.Builder,ImageScanFinding>, SdkBuilder<ImageScanFinding.Builder,ImageScanFinding>, SdkPojo
Enclosing class:
ImageScanFinding

public static interface ImageScanFinding.Builder extends SdkPojo, CopyableBuilder<ImageScanFinding.Builder,ImageScanFinding>
  • Method Details

    • awsAccountId

      ImageScanFinding.Builder awsAccountId(String awsAccountId)

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

      Parameters:
      awsAccountId - The Amazon Web Services account ID that's associated with the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • imageBuildVersionArn

      ImageScanFinding.Builder imageBuildVersionArn(String imageBuildVersionArn)

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

      Parameters:
      imageBuildVersionArn - The Amazon Resource Name (ARN) of the image build version that's associated with the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • imagePipelineArn

      ImageScanFinding.Builder imagePipelineArn(String imagePipelineArn)

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

      Parameters:
      imagePipelineArn - The Amazon Resource Name (ARN) of the image pipeline that's associated with the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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.

      Parameters:
      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:
      Returns a reference to this object so that method calls can be chained together.
    • description

      ImageScanFinding.Builder description(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.
    • title

      The title of the finding.

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

      ImageScanFinding.Builder remediation(Remediation remediation)

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

      Parameters:
      remediation - An object that contains the details about how to remediate the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • remediation

      default ImageScanFinding.Builder remediation(Consumer<Remediation.Builder> remediation)

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

      This is a convenience method that creates an instance of the Remediation.Builder avoiding the need to create one manually via Remediation.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to remediation(Remediation).

      Parameters:
      remediation - a consumer that will call methods on Remediation.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • severity

      ImageScanFinding.Builder severity(String severity)

      The severity of the finding.

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

      ImageScanFinding.Builder firstObservedAt(Instant firstObservedAt)

      The date and time when the finding was first observed.

      Parameters:
      firstObservedAt - The date and time when the finding was first observed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      ImageScanFinding.Builder updatedAt(Instant updatedAt)

      The timestamp when the finding was last updated.

      Parameters:
      updatedAt - The timestamp when the finding was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inspectorScore

      ImageScanFinding.Builder inspectorScore(Double inspectorScore)

      The score that Amazon Inspector assigned for the finding.

      Parameters:
      inspectorScore - The score that Amazon Inspector assigned for the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inspectorScoreDetails

      ImageScanFinding.Builder inspectorScoreDetails(InspectorScoreDetails inspectorScoreDetails)

      An object that contains details of the Amazon Inspector score.

      Parameters:
      inspectorScoreDetails - An object that contains details of the Amazon Inspector score.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • inspectorScoreDetails

      default ImageScanFinding.Builder inspectorScoreDetails(Consumer<InspectorScoreDetails.Builder> inspectorScoreDetails)

      An object that contains details of the Amazon Inspector score.

      This is a convenience method that creates an instance of the InspectorScoreDetails.Builder avoiding the need to create one manually via InspectorScoreDetails.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to inspectorScoreDetails(InspectorScoreDetails).

      Parameters:
      inspectorScoreDetails - a consumer that will call methods on InspectorScoreDetails.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • packageVulnerabilityDetails

      ImageScanFinding.Builder packageVulnerabilityDetails(PackageVulnerabilityDetails packageVulnerabilityDetails)

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

      Parameters:
      packageVulnerabilityDetails - An object that contains the details of a package vulnerability finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • packageVulnerabilityDetails

      default ImageScanFinding.Builder packageVulnerabilityDetails(Consumer<PackageVulnerabilityDetails.Builder> packageVulnerabilityDetails)

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

      This is a convenience method that creates an instance of the PackageVulnerabilityDetails.Builder avoiding the need to create one manually via PackageVulnerabilityDetails.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to packageVulnerabilityDetails(PackageVulnerabilityDetails).

      Parameters:
      packageVulnerabilityDetails - a consumer that will call methods on PackageVulnerabilityDetails.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • fixAvailable

      ImageScanFinding.Builder fixAvailable(String fixAvailable)

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

      Parameters:
      fixAvailable - Details about whether a fix is available for any of the packages that are identified in the finding through a version update.
      Returns:
      Returns a reference to this object so that method calls can be chained together.