Interface EnhancedImageScanFinding.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<EnhancedImageScanFinding.Builder,
,EnhancedImageScanFinding> SdkBuilder<EnhancedImageScanFinding.Builder,
,EnhancedImageScanFinding> SdkPojo
- Enclosing class:
EnhancedImageScanFinding
-
Method Summary
Modifier and TypeMethodDescriptionawsAccountId
(String awsAccountId) The Amazon Web Services account ID associated with the image.description
(String description) The description of the finding.findingArn
(String findingArn) The Amazon Resource Number (ARN) of the finding.firstObservedAt
(Instant firstObservedAt) The date and time that the finding was first observed.lastObservedAt
(Instant lastObservedAt) The date and time that the finding was last observed.default EnhancedImageScanFinding.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 EnhancedImageScanFinding.Builder
remediation
(Consumer<Remediation.Builder> remediation) An object that contains the details about how to remediate a finding.remediation
(Remediation remediation) An object that contains the details about how to remediate a finding.resources
(Collection<Resource> resources) Contains information on the resources involved in a finding.resources
(Consumer<Resource.Builder>... resources) Contains information on the resources involved in a finding.Contains information on the resources involved in a finding.The Amazon Inspector score given to the finding.default EnhancedImageScanFinding.Builder
scoreDetails
(Consumer<ScoreDetails.Builder> scoreDetails) An object that contains details of the Amazon Inspector score.scoreDetails
(ScoreDetails scoreDetails) An object that contains details of the Amazon Inspector score.The severity of the finding.The status of the finding.The title of the finding.The type of the finding.The date and time the finding was last updated at.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 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
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
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
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
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 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:
-
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 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:
-
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.
- 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 theResource.Builder
avoiding the need to create one manually viaResource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresources(List<Resource>)
.- Parameters:
resources
- a consumer that will call methods onResource.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
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
An object that contains details of the Amazon Inspector score.
This is a convenience method that creates an instance of theScoreDetails.Builder
avoiding the need to create one manually viaScoreDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toscoreDetails(ScoreDetails)
.- Parameters:
scoreDetails
- a consumer that will call methods onScoreDetails.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.
-