Interface ImageScanFinding.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ImageScanFinding.Builder,
,ImageScanFinding> SdkBuilder<ImageScanFinding.Builder,
,ImageScanFinding> SdkPojo
- Enclosing class:
ImageScanFinding
-
Method Summary
Modifier and TypeMethodDescriptionawsAccountId
(String awsAccountId) The Amazon Web Services account ID that's associated with the finding.description
(String description) The description of the finding.firstObservedAt
(Instant firstObservedAt) The date and time when the finding was first observed.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.imageBuildVersionArn
(String imageBuildVersionArn) The Amazon Resource Name (ARN) of the image build version that's associated with the finding.imagePipelineArn
(String imagePipelineArn) The Amazon Resource Name (ARN) of the image pipeline that's associated with the finding.inspectorScore
(Double inspectorScore) The score that Amazon Inspector assigned for the finding.default ImageScanFinding.Builder
inspectorScoreDetails
(Consumer<InspectorScoreDetails.Builder> inspectorScoreDetails) An object that contains details of the Amazon Inspector score.inspectorScoreDetails
(InspectorScoreDetails inspectorScoreDetails) An object that contains details of the Amazon Inspector score.default ImageScanFinding.Builder
packageVulnerabilityDetails
(Consumer<PackageVulnerabilityDetails.Builder> packageVulnerabilityDetails) An object that contains the details of a package vulnerability finding.packageVulnerabilityDetails
(PackageVulnerabilityDetails packageVulnerabilityDetails) An object that contains the details of a package vulnerability finding.default ImageScanFinding.Builder
remediation
(Consumer<Remediation.Builder> remediation) An object that contains the details about how to remediate the finding.remediation
(Remediation remediation) An object that contains the details about how to remediate the finding.The severity of the finding.The title of the finding.The type of the finding.The timestamp when the finding was last updated.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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
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 typePACKAGE_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
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
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
An object that contains the details about how to remediate the finding.
This is a convenience method that creates an instance of theRemediation.Builder
avoiding the need to create one manually viaRemediation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toremediation(Remediation)
.- Parameters:
remediation
- a consumer that will call methods onRemediation.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.
-
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
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
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
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 theInspectorScoreDetails.Builder
avoiding the need to create one manually viaInspectorScoreDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinspectorScoreDetails(InspectorScoreDetails)
.- Parameters:
inspectorScoreDetails
- a consumer that will call methods onInspectorScoreDetails.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 thePackageVulnerabilityDetails.Builder
avoiding the need to create one manually viaPackageVulnerabilityDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topackageVulnerabilityDetails(PackageVulnerabilityDetails)
.- Parameters:
packageVulnerabilityDetails
- a consumer that will call methods onPackageVulnerabilityDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-