Interface Finding.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<Finding.Builder,,- Finding> - SdkBuilder<Finding.Builder,,- Finding> - SdkPojo
- Enclosing class:
- Finding
- 
Method SummaryModifier and TypeMethodDescriptionThe time when the finding was created.description(String description) A description of the finding.detectorId(String detectorId) The identifier for the detector that detected the finding in your code.detectorName(String detectorName) The name of the detector that identified the security vulnerability in your code.detectorTags(String... detectorTags) One or more tags or categorizations that are associated with a detector.detectorTags(Collection<String> detectorTags) One or more tags or categorizations that are associated with a detector.generatorId(String generatorId) The identifier for the component that generated a finding such as AmazonCodeGuruSecurity.The identifier for a finding.default Finding.Builderremediation(Consumer<Remediation.Builder> remediation) An object that contains the details about how to remediate a finding.remediation(Remediation remediation) An object that contains the details about how to remediate a finding.default Finding.Builderresource(Consumer<Resource.Builder> resource) The resource where Amazon CodeGuru Security detected a finding.The resource where Amazon CodeGuru Security detected a finding.The identifier for the rule that generated the finding.The severity of the finding.The severity of the finding.The status of the finding.The status of the finding.The title of the finding.The type of finding.The time when the finding was last updated.default Finding.Buildervulnerability(Consumer<Vulnerability.Builder> vulnerability) An object that describes the detected security vulnerability.vulnerability(Vulnerability vulnerability) An object that describes the detected security vulnerability.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
createdAtThe time when the finding was created. - Parameters:
- createdAt- The time when the finding was created.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
descriptionA 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.
 
- 
generatorIdThe identifier for the component that generated a finding such as AmazonCodeGuruSecurity. - Parameters:
- generatorId- The identifier for the component that generated a finding such as AmazonCodeGuruSecurity.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
idThe identifier for a finding. - Parameters:
- id- The identifier for a finding.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
updatedAtThe time when the finding was last updated. Findings are updated when you remediate them or when the finding code location changes. - Parameters:
- updatedAt- The time when the finding was last updated. Findings are updated when you remediate them or when the finding code location changes.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
typeThe type of finding. - Parameters:
- type- The type of finding.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
statusThe status of the finding. A finding status can be open or closed. - Parameters:
- status- The status of the finding. A finding status can be open or closed.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
statusThe status of the finding. A finding status can be open or closed. - Parameters:
- status- The status of the finding. A finding status can be open or closed.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
resourceThe resource where Amazon CodeGuru Security detected a finding. - Parameters:
- resource- The resource where Amazon CodeGuru Security detected a finding.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
resourceThe resource where Amazon CodeGuru Security detected a finding. This is a convenience method that creates an instance of theResource.Builderavoiding the need to create one manually viaResource.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresource(Resource).- Parameters:
- resource- a consumer that will call methods on- Resource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
vulnerabilityAn object that describes the detected security vulnerability. - Parameters:
- vulnerability- An object that describes the detected security vulnerability.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
vulnerabilityAn object that describes the detected security vulnerability. This is a convenience method that creates an instance of theVulnerability.Builderavoiding the need to create one manually viaVulnerability.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovulnerability(Vulnerability).- Parameters:
- vulnerability- a consumer that will call methods on- Vulnerability.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
severityThe severity of the finding. Severity can be critical, high, medium, low, or informational. For information on severity levels, see Finding severity in the Amazon CodeGuru Security User Guide. - Parameters:
- severity- The severity of the finding. Severity can be critical, high, medium, low, or informational. For information on severity levels, see Finding severity in the Amazon CodeGuru Security User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
severityThe severity of the finding. Severity can be critical, high, medium, low, or informational. For information on severity levels, see Finding severity in the Amazon CodeGuru Security User Guide. - Parameters:
- severity- The severity of the finding. Severity can be critical, high, medium, low, or informational. For information on severity levels, see Finding severity in the Amazon CodeGuru Security User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
remediationAn object that contains the details about how to remediate a finding. - Parameters:
- remediation- An object that contains the details about how to remediate a finding.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
remediationAn object that contains the details about how to remediate a finding. This is a convenience method that creates an instance of theRemediation.Builderavoiding the need to create one manually viaRemediation.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toremediation(Remediation).- Parameters:
- remediation- a consumer that will call methods on- Remediation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
titleThe title of the finding. - Parameters:
- title- The title of the finding.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
detectorTagsOne or more tags or categorizations that are associated with a detector. These tags are defined by type, programming language, or other classification such as maintainability or consistency. - Parameters:
- detectorTags- One or more tags or categorizations that are associated with a detector. These tags are defined by type, programming language, or other classification such as maintainability or consistency.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
detectorTagsOne or more tags or categorizations that are associated with a detector. These tags are defined by type, programming language, or other classification such as maintainability or consistency. - Parameters:
- detectorTags- One or more tags or categorizations that are associated with a detector. These tags are defined by type, programming language, or other classification such as maintainability or consistency.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
detectorIdThe identifier for the detector that detected the finding in your code. A detector is a defined rule based on industry standards and AWS best practices. - Parameters:
- detectorId- The identifier for the detector that detected the finding in your code. A detector is a defined rule based on industry standards and AWS best practices.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
detectorNameThe name of the detector that identified the security vulnerability in your code. - Parameters:
- detectorName- The name of the detector that identified the security vulnerability in your code.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
ruleIdThe identifier for the rule that generated the finding. - Parameters:
- ruleId- The identifier for the rule that generated the finding.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
 
-