Interface PackageVulnerabilityDetails.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<PackageVulnerabilityDetails.Builder,PackageVulnerabilityDetails>,SdkBuilder<PackageVulnerabilityDetails.Builder,PackageVulnerabilityDetails>,SdkPojo
- Enclosing class:
- PackageVulnerabilityDetails
public static interface PackageVulnerabilityDetails.Builder extends SdkPojo, CopyableBuilder<PackageVulnerabilityDetails.Builder,PackageVulnerabilityDetails>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PackageVulnerabilityDetails.Buildercvss(Collection<CvssScore> cvss)An object that contains details about the CVSS score of a finding.PackageVulnerabilityDetails.Buildercvss(Consumer<CvssScore.Builder>... cvss)An object that contains details about the CVSS score of a finding.PackageVulnerabilityDetails.Buildercvss(CvssScore... cvss)An object that contains details about the CVSS score of a finding.PackageVulnerabilityDetails.BuilderreferenceUrls(String... referenceUrls)One or more URLs that contain details about this vulnerability type.PackageVulnerabilityDetails.BuilderreferenceUrls(Collection<String> referenceUrls)One or more URLs that contain details about this vulnerability type.PackageVulnerabilityDetails.BuilderrelatedVulnerabilities(String... relatedVulnerabilities)One or more vulnerabilities related to the one identified in this finding.PackageVulnerabilityDetails.BuilderrelatedVulnerabilities(Collection<String> relatedVulnerabilities)One or more vulnerabilities related to the one identified in this finding.PackageVulnerabilityDetails.Buildersource(String source)The source of the vulnerability information.PackageVulnerabilityDetails.BuildersourceUrl(String sourceUrl)A URL to the source of the vulnerability information.PackageVulnerabilityDetails.BuildervendorCreatedAt(Instant vendorCreatedAt)The date and time that this vulnerability was first added to the vendor's database.PackageVulnerabilityDetails.BuildervendorSeverity(String vendorSeverity)The severity the vendor has given to this vulnerability type.PackageVulnerabilityDetails.BuildervendorUpdatedAt(Instant vendorUpdatedAt)The date and time the vendor last updated this vulnerability in their database.PackageVulnerabilityDetails.BuildervulnerabilityId(String vulnerabilityId)The ID given to this vulnerability.PackageVulnerabilityDetails.BuildervulnerablePackages(Collection<VulnerablePackage> vulnerablePackages)The packages impacted by this vulnerability.PackageVulnerabilityDetails.BuildervulnerablePackages(Consumer<VulnerablePackage.Builder>... vulnerablePackages)The packages impacted by this vulnerability.PackageVulnerabilityDetails.BuildervulnerablePackages(VulnerablePackage... vulnerablePackages)The packages impacted by this vulnerability.-
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
-
cvss
PackageVulnerabilityDetails.Builder cvss(Collection<CvssScore> cvss)
An object that contains details about the CVSS score of a finding.
- Parameters:
cvss- An object that contains details about the CVSS score of a finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cvss
PackageVulnerabilityDetails.Builder cvss(CvssScore... cvss)
An object that contains details about the CVSS score of a finding.
- Parameters:
cvss- An object that contains details about the CVSS score of a finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cvss
PackageVulnerabilityDetails.Builder cvss(Consumer<CvssScore.Builder>... cvss)
An object that contains details about the CVSS score of a finding.
This is a convenience method that creates an instance of theCvssScore.Builderavoiding the need to create one manually viaCvssScore.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#cvss(List.) - 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:
#cvss(java.util.Collection)
-
referenceUrls
PackageVulnerabilityDetails.Builder referenceUrls(Collection<String> referenceUrls)
One or more URLs that contain details about this vulnerability type.
- Parameters:
referenceUrls- One or more URLs that contain details about this vulnerability type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
referenceUrls
PackageVulnerabilityDetails.Builder referenceUrls(String... referenceUrls)
One or more URLs that contain details about this vulnerability type.
- Parameters:
referenceUrls- One or more URLs that contain details about this vulnerability type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
relatedVulnerabilities
PackageVulnerabilityDetails.Builder relatedVulnerabilities(Collection<String> relatedVulnerabilities)
One or more vulnerabilities related to the one identified in this finding.
- Parameters:
relatedVulnerabilities- One or more vulnerabilities related to the one identified in this finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
relatedVulnerabilities
PackageVulnerabilityDetails.Builder relatedVulnerabilities(String... relatedVulnerabilities)
One or more vulnerabilities related to the one identified in this finding.
- Parameters:
relatedVulnerabilities- One or more vulnerabilities related to the one identified in this finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
PackageVulnerabilityDetails.Builder source(String 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.
-
sourceUrl
PackageVulnerabilityDetails.Builder sourceUrl(String sourceUrl)
A URL to the source of the vulnerability information.
- Parameters:
sourceUrl- A URL to the source of the vulnerability information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vendorCreatedAt
PackageVulnerabilityDetails.Builder vendorCreatedAt(Instant vendorCreatedAt)
The date and time that this vulnerability was first added to the vendor's database.
- Parameters:
vendorCreatedAt- The date and time that 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.
-
vendorSeverity
PackageVulnerabilityDetails.Builder vendorSeverity(String vendorSeverity)
The severity the vendor has given to this vulnerability type.
- Parameters:
vendorSeverity- The severity the vendor has given to this vulnerability type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vendorUpdatedAt
PackageVulnerabilityDetails.Builder vendorUpdatedAt(Instant vendorUpdatedAt)
The date and time the vendor last updated this vulnerability in their database.
- Parameters:
vendorUpdatedAt- The date and time the vendor last updated this vulnerability in their database.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vulnerabilityId
PackageVulnerabilityDetails.Builder vulnerabilityId(String vulnerabilityId)
The ID given to this vulnerability.
- Parameters:
vulnerabilityId- The ID given to 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 impacted by this vulnerability.
- Parameters:
vulnerablePackages- The packages impacted by this vulnerability.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vulnerablePackages
PackageVulnerabilityDetails.Builder vulnerablePackages(VulnerablePackage... vulnerablePackages)
The packages impacted by this vulnerability.
- Parameters:
vulnerablePackages- The packages impacted by this vulnerability.- 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 impacted by this vulnerability.
This is a convenience method that creates an instance of theVulnerablePackage.Builderavoiding the need to create one manually viaVulnerablePackage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#vulnerablePackages(List.) - 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:
#vulnerablePackages(java.util.Collection)
-
-