Interface Vulnerability.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Vulnerability.Builder,Vulnerability>,SdkBuilder<Vulnerability.Builder,Vulnerability>,SdkPojo
- Enclosing class:
- Vulnerability
public static interface Vulnerability.Builder extends SdkPojo, CopyableBuilder<Vulnerability.Builder,Vulnerability>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Vulnerability.BuildercodeVulnerabilities(Collection<VulnerabilityCodeVulnerabilities> codeVulnerabilities)The vulnerabilities found in your Lambda function code.Vulnerability.BuildercodeVulnerabilities(Consumer<VulnerabilityCodeVulnerabilities.Builder>... codeVulnerabilities)The vulnerabilities found in your Lambda function code.Vulnerability.BuildercodeVulnerabilities(VulnerabilityCodeVulnerabilities... codeVulnerabilities)The vulnerabilities found in your Lambda function code.Vulnerability.Buildercvss(Collection<Cvss> cvss)CVSS scores from the advisory related to the vulnerability.Vulnerability.Buildercvss(Consumer<Cvss.Builder>... cvss)CVSS scores from the advisory related to the vulnerability.Vulnerability.Buildercvss(Cvss... cvss)CVSS scores from the advisory related to the vulnerability.Vulnerability.BuilderepssScore(Double epssScore)The Exploit Prediction Scoring System (EPSS) score for a finding.Vulnerability.BuilderexploitAvailable(String exploitAvailable)Whether an exploit is available for a finding.Vulnerability.BuilderexploitAvailable(VulnerabilityExploitAvailable exploitAvailable)Whether an exploit is available for a finding.Vulnerability.BuilderfixAvailable(String fixAvailable)Specifies if all vulnerable packages in a finding have a value forFixedInVersionandRemediation.Vulnerability.BuilderfixAvailable(VulnerabilityFixAvailable fixAvailable)Specifies if all vulnerable packages in a finding have a value forFixedInVersionandRemediation.Vulnerability.Builderid(String id)The identifier of the vulnerability.Vulnerability.BuilderlastKnownExploitAt(String lastKnownExploitAt)The date and time of the last exploit associated with a finding discovered in your environment.Vulnerability.BuilderreferenceUrls(String... referenceUrls)A list of URLs that provide additional information about the vulnerability.Vulnerability.BuilderreferenceUrls(Collection<String> referenceUrls)A list of URLs that provide additional information about the vulnerability.Vulnerability.BuilderrelatedVulnerabilities(String... relatedVulnerabilities)List of vulnerabilities that are related to this vulnerability.Vulnerability.BuilderrelatedVulnerabilities(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.Vulnerability.Buildervendor(VulnerabilityVendor vendor)Information about the vendor that generates the vulnerability report.Vulnerability.BuildervulnerablePackages(Collection<SoftwarePackage> vulnerablePackages)List of software packages that have the vulnerability.Vulnerability.BuildervulnerablePackages(Consumer<SoftwarePackage.Builder>... vulnerablePackages)List of software packages that have the vulnerability.Vulnerability.BuildervulnerablePackages(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 Detail
-
id
Vulnerability.Builder id(String 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
Vulnerability.Builder vulnerablePackages(Collection<SoftwarePackage> 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
Vulnerability.Builder vulnerablePackages(SoftwarePackage... 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
Vulnerability.Builder vulnerablePackages(Consumer<SoftwarePackage.Builder>... 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 to#vulnerablePackages(List.) - 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:
#vulnerablePackages(java.util.Collection)
-
cvss
Vulnerability.Builder cvss(Collection<Cvss> 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
Vulnerability.Builder cvss(Cvss... 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
Vulnerability.Builder cvss(Consumer<Cvss.Builder>... 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 to#cvss(List.) - 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:
#cvss(java.util.Collection)
-
relatedVulnerabilities
Vulnerability.Builder relatedVulnerabilities(Collection<String> relatedVulnerabilities)
List of vulnerabilities that are related to this vulnerability.
- Parameters:
relatedVulnerabilities- List of vulnerabilities that are related to this vulnerability.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
relatedVulnerabilities
Vulnerability.Builder relatedVulnerabilities(String... relatedVulnerabilities)
List of vulnerabilities that are related to this vulnerability.
- Parameters:
relatedVulnerabilities- List of vulnerabilities that are related to this vulnerability.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vendor
Vulnerability.Builder vendor(VulnerabilityVendor 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
default Vulnerability.Builder vendor(Consumer<VulnerabilityVendor.Builder> 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:
vendor(VulnerabilityVendor)
-
referenceUrls
Vulnerability.Builder referenceUrls(Collection<String> 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
Vulnerability.Builder referenceUrls(String... 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
Vulnerability.Builder fixAvailable(String 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:
VulnerabilityFixAvailable,VulnerabilityFixAvailable
-
-
fixAvailable
Vulnerability.Builder fixAvailable(VulnerabilityFixAvailable 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:
VulnerabilityFixAvailable,VulnerabilityFixAvailable
-
-
epssScore
Vulnerability.Builder epssScore(Double 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
Vulnerability.Builder exploitAvailable(String 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:
VulnerabilityExploitAvailable,VulnerabilityExploitAvailable
-
exploitAvailable
Vulnerability.Builder exploitAvailable(VulnerabilityExploitAvailable 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:
VulnerabilityExploitAvailable,VulnerabilityExploitAvailable
-
lastKnownExploitAt
Vulnerability.Builder lastKnownExploitAt(String 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
Vulnerability.Builder codeVulnerabilities(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
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 to#codeVulnerabilities(List.) - 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:
#codeVulnerabilities(java.util.Collection)
-
-