Interface FindingVulnerability.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<FindingVulnerability.Builder,,FindingVulnerability> SdkBuilder<FindingVulnerability.Builder,,FindingVulnerability> SdkPojo
- Enclosing class:
FindingVulnerability
-
Method Summary
Modifier and TypeMethodDescriptionadditionalCweIds(String... additionalCweIds) Further CWEs the producer attributed to this same vulnerability.additionalCweIds(Collection<String> additionalCweIds) Further CWEs the producer attributed to this same vulnerability.affectedPackages(Collection<AffectedPackage> affectedPackages) Sets the value of the AffectedPackages property for this object.affectedPackages(Consumer<AffectedPackage.Builder>... affectedPackages) Sets the value of the AffectedPackages property for this object.affectedPackages(AffectedPackage... affectedPackages) Sets the value of the AffectedPackages property for this object.The vulnerable fragment, when the producer supplied one.Sets the value of the CveId property for this object.cvssBaseScore(Double cvssBaseScore) The CVSS base score forcveId, when the producer supplies one, from 0.0 to 10.0.cweCaption(String cweCaption) The producer's human-readable caption forcweId.Primary CWE for this vulnerability, e.g.description(String description) Sets the value of the Description property for this object.The producer's extended analysis for this vulnerability.fixCoverage(String fixCoverage) The producer's description of how completely a fix is available.fixCoverageId(Integer fixCoverageId) The producer's enum value behindfixCoverage.locations(Collection<FindingLocation> locations) Every location this vulnerability was reported at.locations(Consumer<FindingLocation.Builder>... locations) Every location this vulnerability was reported at.locations(FindingLocation... locations) Every location this vulnerability was reported at.remediation(String remediation) Sets the value of the Remediation property for this object.remediationReferences(String... remediationReferences) Sets the value of the RemediationReferences property for this object.remediationReferences(Collection<String> remediationReferences) Sets the value of the RemediationReferences property for this object.Sets the value of the Title property for this object.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
-
title
Sets the value of the Title property for this object.- Parameters:
title- The new value for the Title property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
Sets the value of the Description property for this object.- Parameters:
description- The new value for the Description property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cweId
Primary CWE for this vulnerability, e.g. "CWE-89".
- Parameters:
cweId- Primary CWE for this vulnerability, e.g. "CWE-89".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cweCaption
The producer's human-readable caption for
cweId.- Parameters:
cweCaption- The producer's human-readable caption forcweId.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalCweIds
Further CWEs the producer attributed to this same vulnerability.
- Parameters:
additionalCweIds- Further CWEs the producer attributed to this same vulnerability.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalCweIds
Further CWEs the producer attributed to this same vulnerability.
- Parameters:
additionalCweIds- Further CWEs the producer attributed to this same vulnerability.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cveId
Sets the value of the CveId property for this object.- Parameters:
cveId- The new value for the CveId property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cvssBaseScore
The CVSS base score for
cveId, when the producer supplies one, from 0.0 to 10.0.- Parameters:
cvssBaseScore- The CVSS base score forcveId, when the producer supplies one, from 0.0 to 10.0.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fixCoverage
The producer's description of how completely a fix is available.
- Parameters:
fixCoverage- The producer's description of how completely a fix is available.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fixCoverageId
The producer's enum value behind
fixCoverage.- Parameters:
fixCoverageId- The producer's enum value behindfixCoverage.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
locations
Every location this vulnerability was reported at.
- Parameters:
locations- Every location this vulnerability was reported at.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
locations
Every location this vulnerability was reported at.
- Parameters:
locations- Every location this vulnerability was reported at.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
locations
Every location this vulnerability was reported at.
This is a convenience method that creates an instance of theFindingLocation.Builderavoiding the need to create one manually viaFindingLocation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolocations(List<FindingLocation>).- Parameters:
locations- a consumer that will call methods onFindingLocation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
remediation
Sets the value of the Remediation property for this object.- Parameters:
remediation- The new value for the Remediation property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
remediationReferences
Sets the value of the RemediationReferences property for this object.- Parameters:
remediationReferences- The new value for the RemediationReferences property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
remediationReferences
Sets the value of the RemediationReferences property for this object.- Parameters:
remediationReferences- The new value for the RemediationReferences property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
code
The vulnerable fragment, when the producer supplied one.
- Parameters:
code- The vulnerable fragment, when the producer supplied one.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
details
The producer's extended analysis for this vulnerability.
- Parameters:
details- The producer's extended analysis for this vulnerability.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
affectedPackages
Sets the value of the AffectedPackages property for this object.- Parameters:
affectedPackages- The new value for the AffectedPackages property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
affectedPackages
Sets the value of the AffectedPackages property for this object.- Parameters:
affectedPackages- The new value for the AffectedPackages property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
affectedPackages
FindingVulnerability.Builder affectedPackages(Consumer<AffectedPackage.Builder>... affectedPackages) Sets the value of the AffectedPackages property for this object. This is a convenience method that creates an instance of theAffectedPackage.Builderavoiding the need to create one manually viaAffectedPackage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaffectedPackages(List<AffectedPackage>).- Parameters:
affectedPackages- a consumer that will call methods onAffectedPackage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-