Interface Finding.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Finding.Builder,,Finding> SdkBuilder<Finding.Builder,,Finding> SdkPojo
- Enclosing class:
Finding
-
Method Summary
Modifier and TypeMethodDescriptionagentSpaceId(String agentSpaceId) The unique identifier of the agent space associated with the finding.attackScript(String attackScript) The attack script used to reproduce the finding.codeLocations(Collection<CodeLocation> codeLocations) The file locations involved in the vulnerability, as reported by the code scanner.codeLocations(Consumer<CodeLocation.Builder>... codeLocations) The file locations involved in the vulnerability, as reported by the code scanner.codeLocations(CodeLocation... codeLocations) The file locations involved in the vulnerability, as reported by the code scanner.default Finding.BuildercodeRemediationTask(Consumer<CodeRemediationTask.Builder> codeRemediationTask) The code remediation task associated with the finding, if code remediation was initiated.codeRemediationTask(CodeRemediationTask codeRemediationTask) The code remediation task associated with the finding, if code remediation was initiated.codeReviewId(String codeReviewId) The unique identifier of the code review associated with the finding.codeReviewJobId(String codeReviewJobId) The unique identifier of the code review job that produced the finding.confidence(String confidence) The confidence level of the finding.confidence(ConfidenceLevel confidence) The confidence level of the finding.The date and time the finding was created, in UTC format.description(String description) A description of the finding.The unique identifier of the finding.lastUpdatedBy(String lastUpdatedBy) The identifier of the entity that last updated the finding.The name of the finding.The unique identifier of the pentest associated with the finding.pentestJobId(String pentestJobId) The unique identifier of the pentest job that produced the finding.The reasoning behind the finding, explaining why it was identified as a vulnerability.The risk level of the finding.The risk level of the finding.The numerical risk score of the finding.The type of security risk identified by the finding.The current status of the finding.status(FindingStatus status) The current status of the finding.The unique identifier of the task that produced the finding.The date and time the finding was last updated, in UTC format.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
-
findingId
The unique identifier of the finding.
- Parameters:
findingId- The unique identifier of the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentSpaceId
The unique identifier of the agent space associated with the finding.
- Parameters:
agentSpaceId- The unique identifier of the agent space associated with the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pentestId
The unique identifier of the pentest associated with the finding.
- Parameters:
pentestId- The unique identifier of the pentest associated with the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pentestJobId
The unique identifier of the pentest job that produced the finding.
- Parameters:
pentestJobId- The unique identifier of the pentest job that produced the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
codeReviewId
The unique identifier of the code review associated with the finding.
- Parameters:
codeReviewId- The unique identifier of the code review associated with the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
codeReviewJobId
The unique identifier of the code review job that produced the finding.
- Parameters:
codeReviewJobId- The unique identifier of the code review job that produced the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskId
The unique identifier of the task that produced the finding.
- Parameters:
taskId- The unique identifier of the task that produced the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the finding.
- Parameters:
name- The name of the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the finding.
- Parameters:
description- A description of the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The current status of the finding. Valid values include ACTIVE, RESOLVED, ACCEPTED, and FALSE_POSITIVE.
- Parameters:
status- The current status of the finding. Valid values include ACTIVE, RESOLVED, ACCEPTED, and FALSE_POSITIVE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of the finding. Valid values include ACTIVE, RESOLVED, ACCEPTED, and FALSE_POSITIVE.
- Parameters:
status- The current status of the finding. Valid values include ACTIVE, RESOLVED, ACCEPTED, and FALSE_POSITIVE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
riskType
The type of security risk identified by the finding.
- Parameters:
riskType- The type of security risk identified by the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
riskLevel
The risk level of the finding. Valid values include UNKNOWN, INFORMATIONAL, LOW, MEDIUM, HIGH, and CRITICAL.
- Parameters:
riskLevel- The risk level of the finding. Valid values include UNKNOWN, INFORMATIONAL, LOW, MEDIUM, HIGH, and CRITICAL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
riskLevel
The risk level of the finding. Valid values include UNKNOWN, INFORMATIONAL, LOW, MEDIUM, HIGH, and CRITICAL.
- Parameters:
riskLevel- The risk level of the finding. Valid values include UNKNOWN, INFORMATIONAL, LOW, MEDIUM, HIGH, and CRITICAL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
riskScore
The numerical risk score of the finding.
- Parameters:
riskScore- The numerical risk score of the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reasoning
The reasoning behind the finding, explaining why it was identified as a vulnerability.
- Parameters:
reasoning- The reasoning behind the finding, explaining why it was identified as a vulnerability.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
confidence
The confidence level of the finding. Valid values include FALSE_POSITIVE, UNCONFIRMED, LOW, MEDIUM, and HIGH.
- Parameters:
confidence- The confidence level of the finding. Valid values include FALSE_POSITIVE, UNCONFIRMED, LOW, MEDIUM, and HIGH.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
confidence
The confidence level of the finding. Valid values include FALSE_POSITIVE, UNCONFIRMED, LOW, MEDIUM, and HIGH.
- Parameters:
confidence- The confidence level of the finding. Valid values include FALSE_POSITIVE, UNCONFIRMED, LOW, MEDIUM, and HIGH.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
attackScript
The attack script used to reproduce the finding.
- Parameters:
attackScript- The attack script used to reproduce the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
codeRemediationTask
The code remediation task associated with the finding, if code remediation was initiated.
- Parameters:
codeRemediationTask- The code remediation task associated with the finding, if code remediation was initiated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
codeRemediationTask
default Finding.Builder codeRemediationTask(Consumer<CodeRemediationTask.Builder> codeRemediationTask) The code remediation task associated with the finding, if code remediation was initiated.
This is a convenience method that creates an instance of theCodeRemediationTask.Builderavoiding the need to create one manually viaCodeRemediationTask.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocodeRemediationTask(CodeRemediationTask).- Parameters:
codeRemediationTask- a consumer that will call methods onCodeRemediationTask.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lastUpdatedBy
The identifier of the entity that last updated the finding.
- Parameters:
lastUpdatedBy- The identifier of the entity that last updated the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
codeLocations
The file locations involved in the vulnerability, as reported by the code scanner.
- Parameters:
codeLocations- The file locations involved in the vulnerability, as reported by the code scanner.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
codeLocations
The file locations involved in the vulnerability, as reported by the code scanner.
- Parameters:
codeLocations- The file locations involved in the vulnerability, as reported by the code scanner.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
codeLocations
The file locations involved in the vulnerability, as reported by the code scanner.
This is a convenience method that creates an instance of theCodeLocation.Builderavoiding the need to create one manually viaCodeLocation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocodeLocations(List<CodeLocation>).- Parameters:
codeLocations- a consumer that will call methods onCodeLocation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdAt
The date and time the finding was created, in UTC format.
- Parameters:
createdAt- The date and time the finding was created, in UTC format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
The date and time the finding was last updated, in UTC format.
- Parameters:
updatedAt- The date and time the finding was last updated, in UTC format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-