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 forFixedInVersion
andRemediation
.fixAvailable
(VulnerabilityFixAvailable fixAvailable) Specifies if all vulnerable packages in a finding have a value forFixedInVersion
andRemediation
.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.Builder
vendor
(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
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
-
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.Builder
avoiding the need to create one manually viaSoftwarePackage.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaCvss.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaVulnerabilityVendor.builder()
.When the
Consumer
completes,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
FixedInVersion
andRemediation
. This field is evaluated for each vulnerabilityId
based on the number of vulnerable packages that have a value for bothFixedInVersion
andRemediation
. Valid values are as follows:-
YES
if all vulnerable packages have a value for bothFixedInVersion
andRemediation
-
NO
if no vulnerable packages have a value forFixedInVersion
andRemediation
-
PARTIAL
otherwise
- Parameters:
fixAvailable
- Specifies if all vulnerable packages in a finding have a value forFixedInVersion
andRemediation
. This field is evaluated for each vulnerabilityId
based on the number of vulnerable packages that have a value for bothFixedInVersion
andRemediation
. Valid values are as follows:-
YES
if all vulnerable packages have a value for bothFixedInVersion
andRemediation
-
NO
if no vulnerable packages have a value forFixedInVersion
andRemediation
-
PARTIAL
otherwise
-
- 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
FixedInVersion
andRemediation
. This field is evaluated for each vulnerabilityId
based on the number of vulnerable packages that have a value for bothFixedInVersion
andRemediation
. Valid values are as follows:-
YES
if all vulnerable packages have a value for bothFixedInVersion
andRemediation
-
NO
if no vulnerable packages have a value forFixedInVersion
andRemediation
-
PARTIAL
otherwise
- Parameters:
fixAvailable
- Specifies if all vulnerable packages in a finding have a value forFixedInVersion
andRemediation
. This field is evaluated for each vulnerabilityId
based on the number of vulnerable packages that have a value for bothFixedInVersion
andRemediation
. Valid values are as follows:-
YES
if all vulnerable packages have a value for bothFixedInVersion
andRemediation
-
NO
if no vulnerable packages have a value forFixedInVersion
andRemediation
-
PARTIAL
otherwise
-
- 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.Builder
avoiding the need to create one manually viaVulnerabilityCodeVulnerabilities.builder()
.When the
Consumer
completes,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:
-