Interface Finding.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Finding.Builder,Finding>,SdkBuilder<Finding.Builder,Finding>,SdkPojo
- Enclosing class:
- Finding
public static interface Finding.Builder extends SdkPojo, CopyableBuilder<Finding.Builder,Finding>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Finding.BuildercreatedAt(Instant createdAt)The time when the finding was created.Finding.Builderdescription(String description)A description of the finding.Finding.BuilderdetectorId(String detectorId)The identifier for the detector that detected the finding in your code.Finding.BuilderdetectorName(String detectorName)The name of the detector that identified the security vulnerability in your code.Finding.BuilderdetectorTags(String... detectorTags)One or more tags or categorizations that are associated with a detector.Finding.BuilderdetectorTags(Collection<String> detectorTags)One or more tags or categorizations that are associated with a detector.Finding.BuildergeneratorId(String generatorId)The identifier for the component that generated a finding such as AWSCodeGuruSecurity or AWSInspector.Finding.Builderid(String id)The identifier for a finding.default Finding.Builderremediation(Consumer<Remediation.Builder> remediation)An object that contains the details about how to remediate a finding.Finding.Builderremediation(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.Finding.Builderresource(Resource resource)The resource where Amazon CodeGuru Security detected a finding.Finding.BuilderruleId(String ruleId)The identifier for the rule that generated the finding.Finding.Builderseverity(String severity)The severity of the finding.Finding.Builderseverity(Severity severity)The severity of the finding.Finding.Builderstatus(String status)The status of the finding.Finding.Builderstatus(Status status)The status of the finding.Finding.Buildertitle(String title)The title of the finding.Finding.Buildertype(String type)The type of finding.Finding.BuilderupdatedAt(Instant updatedAt)The time when the finding was last updated.default Finding.Buildervulnerability(Consumer<Vulnerability.Builder> vulnerability)An object that describes the detected security vulnerability.Finding.Buildervulnerability(Vulnerability vulnerability)An object that describes the detected security 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
-
createdAt
Finding.Builder createdAt(Instant createdAt)
The 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.
-
description
Finding.Builder description(String 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.
-
detectorId
Finding.Builder detectorId(String 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.
- 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.
-
detectorName
Finding.Builder detectorName(String detectorName)
The 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.
-
detectorTags
Finding.Builder detectorTags(Collection<String> 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.
- 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.
-
detectorTags
Finding.Builder detectorTags(String... 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.
- 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.
-
generatorId
Finding.Builder generatorId(String generatorId)
The identifier for the component that generated a finding such as AWSCodeGuruSecurity or AWSInspector.
- Parameters:
generatorId- The identifier for the component that generated a finding such as AWSCodeGuruSecurity or AWSInspector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
Finding.Builder id(String id)
The 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.
-
remediation
Finding.Builder remediation(Remediation remediation)
An 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.
-
remediation
default Finding.Builder remediation(Consumer<Remediation.Builder> remediation)
An 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 onRemediation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
remediation(Remediation)
-
resource
Finding.Builder resource(Resource resource)
The 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.
-
resource
default Finding.Builder resource(Consumer<Resource.Builder> resource)
The 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 onResource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
resource(Resource)
-
ruleId
Finding.Builder ruleId(String ruleId)
The 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.
-
severity
Finding.Builder severity(String severity)
The severity of the finding.
-
severity
Finding.Builder severity(Severity severity)
The severity of the finding.
-
status
Finding.Builder status(String status)
The status of the finding. A finding status can be open or closed.
-
status
Finding.Builder status(Status status)
The status of the finding. A finding status can be open or closed.
-
title
Finding.Builder title(String title)
The 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.
-
type
Finding.Builder type(String type)
The type of finding.
- Parameters:
type- The type of finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
Finding.Builder updatedAt(Instant updatedAt)
The 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.
-
vulnerability
Finding.Builder vulnerability(Vulnerability vulnerability)
An 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.
-
vulnerability
default Finding.Builder vulnerability(Consumer<Vulnerability.Builder> vulnerability)
An 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 onVulnerability.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
vulnerability(Vulnerability)
-
-