Interface EnhancedImageScanFinding.Builder

  • Method Details

    • awsAccountId

      EnhancedImageScanFinding.Builder awsAccountId(String awsAccountId)

      The Amazon Web Services account ID associated with the image.

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

      EnhancedImageScanFinding.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.
    • findingArn

      EnhancedImageScanFinding.Builder findingArn(String findingArn)

      The Amazon Resource Number (ARN) of the finding.

      Parameters:
      findingArn - The Amazon Resource Number (ARN) of the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • firstObservedAt

      EnhancedImageScanFinding.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

      EnhancedImageScanFinding.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

      EnhancedImageScanFinding.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 EnhancedImageScanFinding.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

      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

      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 on the resources involved in a finding.

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

      EnhancedImageScanFinding.Builder resources(Resource... resources)

      Contains information on the resources involved in a finding.

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

      Contains information on 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 given to the finding.

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

      EnhancedImageScanFinding.Builder scoreDetails(ScoreDetails scoreDetails)

      An object that contains details of the Amazon Inspector score.

      Parameters:
      scoreDetails - 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.
    • scoreDetails

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

      An object that contains 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

      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

      The date and time the finding was last updated at.

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

      EnhancedImageScanFinding.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

      EnhancedImageScanFinding.Builder exploitAvailable(String exploitAvailable)

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

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