Interface PackageVulnerabilityDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PackageVulnerabilityDetails.Builder,
,PackageVulnerabilityDetails> SdkBuilder<PackageVulnerabilityDetails.Builder,
,PackageVulnerabilityDetails> SdkPojo
- Enclosing class:
PackageVulnerabilityDetails
-
Method Summary
Modifier and TypeMethodDescriptioncvss
(Collection<CvssScore> cvss) CVSS scores for one or more vulnerabilities that Amazon Inspector identified for a package.cvss
(Consumer<CvssScore.Builder>... cvss) CVSS scores for one or more vulnerabilities that Amazon Inspector identified for a package.CVSS scores for one or more vulnerabilities that Amazon Inspector identified for a package.referenceUrls
(String... referenceUrls) Links to web pages that contain details about the vulnerabilities that Amazon Inspector identified for the package.referenceUrls
(Collection<String> referenceUrls) Links to web pages that contain details about the vulnerabilities that Amazon Inspector identified for the package.relatedVulnerabilities
(String... relatedVulnerabilities) Vulnerabilities that are often related to the findings for the package.relatedVulnerabilities
(Collection<String> relatedVulnerabilities) Vulnerabilities that are often related to the findings for the package.The source of the vulnerability information.A link to the source of the vulnerability information.vendorCreatedAt
(Instant vendorCreatedAt) The date and time when this vulnerability was first added to the vendor's database.vendorSeverity
(String vendorSeverity) The severity that the vendor assigned to this vulnerability type.vendorUpdatedAt
(Instant vendorUpdatedAt) The date and time when the vendor last updated this vulnerability in their database.vulnerabilityId
(String vulnerabilityId) A unique identifier for this vulnerability.vulnerablePackages
(Collection<VulnerablePackage> vulnerablePackages) The packages that this vulnerability impacts.vulnerablePackages
(Consumer<VulnerablePackage.Builder>... vulnerablePackages) The packages that this vulnerability impacts.vulnerablePackages
(VulnerablePackage... vulnerablePackages) The packages that this vulnerability impacts.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
-
vulnerabilityId
A unique identifier for this vulnerability.
- Parameters:
vulnerabilityId
- A unique identifier for this vulnerability.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vulnerablePackages
PackageVulnerabilityDetails.Builder vulnerablePackages(Collection<VulnerablePackage> vulnerablePackages) The packages that this vulnerability impacts.
- Parameters:
vulnerablePackages
- The packages that this vulnerability impacts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vulnerablePackages
The packages that this vulnerability impacts.
- Parameters:
vulnerablePackages
- The packages that this vulnerability impacts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vulnerablePackages
PackageVulnerabilityDetails.Builder vulnerablePackages(Consumer<VulnerablePackage.Builder>... vulnerablePackages) The packages that this vulnerability impacts.
This is a convenience method that creates an instance of theVulnerablePackage.Builder
avoiding the need to create one manually viaVulnerablePackage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovulnerablePackages(List<VulnerablePackage>)
.- Parameters:
vulnerablePackages
- a consumer that will call methods onVulnerablePackage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
source
The source of the vulnerability information.
- Parameters:
source
- The source of the vulnerability information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cvss
CVSS scores for one or more vulnerabilities that Amazon Inspector identified for a package.
- Parameters:
cvss
- CVSS scores for one or more vulnerabilities that Amazon Inspector identified for a package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cvss
CVSS scores for one or more vulnerabilities that Amazon Inspector identified for a package.
- Parameters:
cvss
- CVSS scores for one or more vulnerabilities that Amazon Inspector identified for a package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cvss
CVSS scores for one or more vulnerabilities that Amazon Inspector identified for a package.
This is a convenience method that creates an instance of theCvssScore.Builder
avoiding the need to create one manually viaCvssScore.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocvss(List<CvssScore>)
.- Parameters:
cvss
- a consumer that will call methods onCvssScore.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sourceUrl
A link to the source of the vulnerability information.
- Parameters:
sourceUrl
- A link to the source of the vulnerability information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vendorSeverity
The severity that the vendor assigned to this vulnerability type.
- Parameters:
vendorSeverity
- The severity that the vendor assigned to this vulnerability type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vendorCreatedAt
The date and time when this vulnerability was first added to the vendor's database.
- Parameters:
vendorCreatedAt
- The date and time when this vulnerability was first added to the vendor's database.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vendorUpdatedAt
The date and time when the vendor last updated this vulnerability in their database.
- Parameters:
vendorUpdatedAt
- The date and time when the vendor last updated this vulnerability in their database.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
referenceUrls
Links to web pages that contain details about the vulnerabilities that Amazon Inspector identified for the package.
- Parameters:
referenceUrls
- Links to web pages that contain details about the vulnerabilities that Amazon Inspector identified for the package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
referenceUrls
Links to web pages that contain details about the vulnerabilities that Amazon Inspector identified for the package.
- Parameters:
referenceUrls
- Links to web pages that contain details about the vulnerabilities that Amazon Inspector identified for the package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-