Interface ImageScanFinding.Builder

  • Method Details

    • awsAccountId

      ImageScanFinding.Builder awsAccountId(String awsAccountId)

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

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

      ImageScanFinding.Builder findingId(String findingId)

      The ID of the finding.

      Parameters:
      findingId - The ID of the finding.
      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.
    • firstObservedAt

      ImageScanFinding.Builder firstObservedAt(Instant firstObservedAt)

      The date and time that the finding was first observed.

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

      ImageScanFinding.Builder lastObservedAt(Instant lastObservedAt)

      The date and time that the finding was last observed.

      Parameters:
      lastObservedAt - The date and time that the finding was last observed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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:
    • remediation

      ImageScanFinding.Builder remediation(Remediation remediation)

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

      Parameters:
      remediation - An object that contains the details about how to remediate a 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 a 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:
    • resources

      Contains information about the resources involved in a finding.

      Parameters:
      resources - Contains information about the resources involved in a finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resources

      ImageScanFinding.Builder resources(Resource... resources)

      Contains information about the resources involved in a finding.

      Parameters:
      resources - Contains information about the resources involved in a finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resources

      Contains information about the resources involved in a finding.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to resources(List<Resource>).

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

      The Amazon Inspector score that's assigned to the finding.

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

      ImageScanFinding.Builder scoreDetails(ScoreDetails scoreDetails)

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

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

      default ImageScanFinding.Builder scoreDetails(Consumer<ScoreDetails.Builder> scoreDetails)

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

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

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

      Parameters:
      scoreDetails - a consumer that will call methods on ScoreDetails.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.
    • status

      The status of the finding.

      Parameters:
      status - The status 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.
    • type

      The type of the finding.

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

      ImageScanFinding.Builder updatedAt(Instant updatedAt)

      The date and time the finding was last updated.

      Parameters:
      updatedAt - The date and time the finding was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fixAvailable

      ImageScanFinding.Builder fixAvailable(String 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.

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

      ImageScanFinding.Builder exploitAvailable(String exploitAvailable)

      If a finding discovered in your environment has an exploit available. This value can be YES or NO.

      Parameters:
      exploitAvailable - If a finding discovered in your environment has an exploit available. This value can be YES or NO.
      Returns:
      Returns a reference to this object so that method calls can be chained together.