Interface Vulnerability.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Vulnerability.Builder,,Vulnerability> SdkBuilder<Vulnerability.Builder,,Vulnerability> SdkPojo
- Enclosing class:
Vulnerability
-
Method Summary
Modifier and TypeMethodDescriptioncodeVulnerabilities(Collection<VulnerabilityCodeVulnerabilities> codeVulnerabilities) The vulnerabilities found in your Lambda function code.codeVulnerabilities(Consumer<VulnerabilityCodeVulnerabilities.Builder>... codeVulnerabilities) The vulnerabilities found in your Lambda function code.codeVulnerabilities(VulnerabilityCodeVulnerabilities... codeVulnerabilities) The vulnerabilities found in your Lambda function code.cvss(Collection<Cvss> cvss) CVSS scores from the advisory related to the vulnerability.cvss(Consumer<Cvss.Builder>... cvss) CVSS scores from the advisory related to the vulnerability.CVSS scores from the advisory related to the vulnerability.The Exploit Prediction Scoring System (EPSS) score for a finding.exploitAvailable(String exploitAvailable) Whether an exploit is available for a finding.exploitAvailable(VulnerabilityExploitAvailable exploitAvailable) Whether an exploit is available for a finding.fixAvailable(String fixAvailable) Specifies if all vulnerable packages in a finding have a value forFixedInVersionandRemediation.fixAvailable(VulnerabilityFixAvailable fixAvailable) Specifies if all vulnerable packages in a finding have a value forFixedInVersionandRemediation.The identifier of the vulnerability.lastKnownExploitAt(String lastKnownExploitAt) The date and time of the last exploit associated with a finding discovered in your environment.referenceUrls(String... referenceUrls) A list of URLs that provide additional information about the vulnerability.referenceUrls(Collection<String> referenceUrls) A list of URLs that provide additional information about the vulnerability.relatedVulnerabilities(String... relatedVulnerabilities) List of vulnerabilities that are related to this vulnerability.relatedVulnerabilities(Collection<String> relatedVulnerabilities) List of vulnerabilities that are related to this vulnerability.default Vulnerability.Buildervendor(Consumer<VulnerabilityVendor.Builder> vendor) Information about the vendor that generates the vulnerability report.vendor(VulnerabilityVendor vendor) Information about the vendor that generates the vulnerability report.vulnerablePackages(Collection<SoftwarePackage> vulnerablePackages) List of software packages that have the vulnerability.vulnerablePackages(Consumer<SoftwarePackage.Builder>... vulnerablePackages) List of software packages that have the vulnerability.vulnerablePackages(SoftwarePackage... vulnerablePackages) List of software packages that have the vulnerability.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
id
The identifier of the vulnerability.
- Parameters:
id- The identifier of the vulnerability.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vulnerablePackages
List of software packages that have the vulnerability.
- Parameters:
vulnerablePackages- List of software packages that have the vulnerability.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vulnerablePackages
List of software packages that have the vulnerability.
- Parameters:
vulnerablePackages- List of software packages that have the vulnerability.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vulnerablePackages
List of software packages that have the vulnerability.
This is a convenience method that creates an instance of theSoftwarePackage.Builderavoiding the need to create one manually viaSoftwarePackage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovulnerablePackages(List<SoftwarePackage>).- Parameters:
vulnerablePackages- a consumer that will call methods onSoftwarePackage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
cvss
CVSS scores from the advisory related to the vulnerability.
- Parameters:
cvss- CVSS scores from the advisory related to the vulnerability.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cvss
CVSS scores from the advisory related to the vulnerability.
- Parameters:
cvss- CVSS scores from the advisory related to the vulnerability.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cvss
CVSS scores from the advisory related to the vulnerability.
This is a convenience method that creates an instance of theCvss.Builderavoiding the need to create one manually viaCvss.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocvss(List<Cvss>).- Parameters:
cvss- a consumer that will call methods onCvss.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
vendor
Information about the vendor that generates the vulnerability report.
- Parameters:
vendor- Information about the vendor that generates the vulnerability report.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vendor
Information about the vendor that generates the vulnerability report.
This is a convenience method that creates an instance of theVulnerabilityVendor.Builderavoiding the need to create one manually viaVulnerabilityVendor.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovendor(VulnerabilityVendor).- Parameters:
vendor- a consumer that will call methods onVulnerabilityVendor.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
referenceUrls
A list of URLs that provide additional information about the vulnerability.
- Parameters:
referenceUrls- A list of URLs that provide additional information about the vulnerability.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
referenceUrls
A list of URLs that provide additional information about the vulnerability.
- Parameters:
referenceUrls- A list of URLs that provide additional information about the vulnerability.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fixAvailable
Specifies if all vulnerable packages in a finding have a value for
FixedInVersionandRemediation. This field is evaluated for each vulnerabilityIdbased on the number of vulnerable packages that have a value for bothFixedInVersionandRemediation. Valid values are as follows:-
YESif all vulnerable packages have a value for bothFixedInVersionandRemediation -
NOif no vulnerable packages have a value forFixedInVersionandRemediation -
PARTIALotherwise
- Parameters:
fixAvailable- Specifies if all vulnerable packages in a finding have a value forFixedInVersionandRemediation. This field is evaluated for each vulnerabilityIdbased on the number of vulnerable packages that have a value for bothFixedInVersionandRemediation. Valid values are as follows:-
YESif all vulnerable packages have a value for bothFixedInVersionandRemediation -
NOif no vulnerable packages have a value forFixedInVersionandRemediation -
PARTIALotherwise
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
fixAvailable
Specifies if all vulnerable packages in a finding have a value for
FixedInVersionandRemediation. This field is evaluated for each vulnerabilityIdbased on the number of vulnerable packages that have a value for bothFixedInVersionandRemediation. Valid values are as follows:-
YESif all vulnerable packages have a value for bothFixedInVersionandRemediation -
NOif no vulnerable packages have a value forFixedInVersionandRemediation -
PARTIALotherwise
- Parameters:
fixAvailable- Specifies if all vulnerable packages in a finding have a value forFixedInVersionandRemediation. This field is evaluated for each vulnerabilityIdbased on the number of vulnerable packages that have a value for bothFixedInVersionandRemediation. Valid values are as follows:-
YESif all vulnerable packages have a value for bothFixedInVersionandRemediation -
NOif no vulnerable packages have a value forFixedInVersionandRemediation -
PARTIALotherwise
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
epssScore
The Exploit Prediction Scoring System (EPSS) score for a finding.
- Parameters:
epssScore- The Exploit Prediction Scoring System (EPSS) score for a finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exploitAvailable
Whether an exploit is available for a finding.
- Parameters:
exploitAvailable- Whether an exploit is available for a finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
exploitAvailable
Whether an exploit is available for a finding.
- Parameters:
exploitAvailable- Whether an exploit is available for a finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lastKnownExploitAt
The date and time of the last exploit associated with a finding discovered in your environment.
- Parameters:
lastKnownExploitAt- The date and time of the last exploit associated with a finding discovered in your environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
codeVulnerabilities
Vulnerability.Builder codeVulnerabilities(Collection<VulnerabilityCodeVulnerabilities> codeVulnerabilities) The vulnerabilities found in your Lambda function code. This field pertains to findings that Security Hub receives from Amazon Inspector.
- Parameters:
codeVulnerabilities- The vulnerabilities found in your Lambda function code. This field pertains to findings that Security Hub receives from Amazon Inspector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
codeVulnerabilities
The vulnerabilities found in your Lambda function code. This field pertains to findings that Security Hub receives from Amazon Inspector.
- Parameters:
codeVulnerabilities- The vulnerabilities found in your Lambda function code. This field pertains to findings that Security Hub receives from Amazon Inspector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
codeVulnerabilities
Vulnerability.Builder codeVulnerabilities(Consumer<VulnerabilityCodeVulnerabilities.Builder>... codeVulnerabilities) The vulnerabilities found in your Lambda function code. This field pertains to findings that Security Hub receives from Amazon Inspector.
This is a convenience method that creates an instance of theVulnerabilityCodeVulnerabilities.Builderavoiding the need to create one manually viaVulnerabilityCodeVulnerabilities.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocodeVulnerabilities(List<VulnerabilityCodeVulnerabilities>).- Parameters:
codeVulnerabilities- a consumer that will call methods onVulnerabilityCodeVulnerabilities.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-