Interface EnhancedImageScanFinding.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<EnhancedImageScanFinding.Builder,EnhancedImageScanFinding>,SdkBuilder<EnhancedImageScanFinding.Builder,EnhancedImageScanFinding>,SdkPojo
- Enclosing class:
- EnhancedImageScanFinding
public static interface EnhancedImageScanFinding.Builder extends SdkPojo, CopyableBuilder<EnhancedImageScanFinding.Builder,EnhancedImageScanFinding>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description EnhancedImageScanFinding.BuilderawsAccountId(String awsAccountId)The Amazon Web Services account ID associated with the image.EnhancedImageScanFinding.Builderdescription(String description)The description of the finding.EnhancedImageScanFinding.BuilderexploitAvailable(String exploitAvailable)If a finding discovered in your environment has an exploit available.EnhancedImageScanFinding.BuilderfindingArn(String findingArn)The Amazon Resource Number (ARN) of the finding.EnhancedImageScanFinding.BuilderfirstObservedAt(Instant firstObservedAt)The date and time that the finding was first observed.EnhancedImageScanFinding.BuilderfixAvailable(String fixAvailable)Details on whether a fix is available through a version update.EnhancedImageScanFinding.BuilderlastObservedAt(Instant lastObservedAt)The date and time that the finding was last observed.default EnhancedImageScanFinding.BuilderpackageVulnerabilityDetails(Consumer<PackageVulnerabilityDetails.Builder> packageVulnerabilityDetails)An object that contains the details of a package vulnerability finding.EnhancedImageScanFinding.BuilderpackageVulnerabilityDetails(PackageVulnerabilityDetails packageVulnerabilityDetails)An object that contains the details of a package vulnerability finding.default EnhancedImageScanFinding.Builderremediation(Consumer<Remediation.Builder> remediation)An object that contains the details about how to remediate a finding.EnhancedImageScanFinding.Builderremediation(Remediation remediation)An object that contains the details about how to remediate a finding.EnhancedImageScanFinding.Builderresources(Collection<Resource> resources)Contains information on the resources involved in a finding.EnhancedImageScanFinding.Builderresources(Consumer<Resource.Builder>... resources)Contains information on the resources involved in a finding.EnhancedImageScanFinding.Builderresources(Resource... resources)Contains information on the resources involved in a finding.EnhancedImageScanFinding.Builderscore(Double score)The Amazon Inspector score given to the finding.default EnhancedImageScanFinding.BuilderscoreDetails(Consumer<ScoreDetails.Builder> scoreDetails)An object that contains details of the Amazon Inspector score.EnhancedImageScanFinding.BuilderscoreDetails(ScoreDetails scoreDetails)An object that contains details of the Amazon Inspector score.EnhancedImageScanFinding.Builderseverity(String severity)The severity of the finding.EnhancedImageScanFinding.Builderstatus(String status)The status of the finding.EnhancedImageScanFinding.Buildertitle(String title)The title of the finding.EnhancedImageScanFinding.Buildertype(String type)The type of the finding.EnhancedImageScanFinding.BuilderupdatedAt(Instant updatedAt)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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
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 thePackageVulnerabilityDetails.Builderavoiding the need to create one manually viaPackageVulnerabilityDetails.builder().When the
Consumercompletes,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:
packageVulnerabilityDetails(PackageVulnerabilityDetails)
-
remediation
EnhancedImageScanFinding.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 EnhancedImageScanFinding.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 theRemediation.Builderavoiding the need to create one manually viaRemediation.builder().When the
Consumercompletes,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:
remediation(Remediation)
-
resources
EnhancedImageScanFinding.Builder resources(Collection<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
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
EnhancedImageScanFinding.Builder resources(Consumer<Resource.Builder>... resources)
Contains information on the resources involved in a finding.
This is a convenience method that creates an instance of theResource.Builderavoiding the need to create one manually viaResource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#resources(List.) - 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:
#resources(java.util.Collection)
-
score
EnhancedImageScanFinding.Builder score(Double 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 theScoreDetails.Builderavoiding the need to create one manually viaScoreDetails.builder().When the
Consumercompletes,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:
scoreDetails(ScoreDetails)
-
severity
EnhancedImageScanFinding.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
EnhancedImageScanFinding.Builder status(String 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
EnhancedImageScanFinding.Builder title(String 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
EnhancedImageScanFinding.Builder type(String 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
EnhancedImageScanFinding.Builder updatedAt(Instant 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, orPARTIAL. APARTIALfix 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 beYES,NO, orPARTIAL. APARTIALfix 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.
-
-