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 Details

    • 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

      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 the Remediation.Builder avoiding the need to create one manually via Remediation.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to remediation(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:
    • 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 the Resource.Builder avoiding the need to create one manually via Resource.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to resource(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:
    • 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.

      Parameters:
      severity - The severity of the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • severity

      Finding.Builder severity(Severity severity)

      The severity of the finding.

      Parameters:
      severity - The severity of the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      Finding.Builder status(String status)

      The 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:
    • status

      Finding.Builder status(Status status)

      The 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:
    • 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 the Vulnerability.Builder avoiding the need to create one manually via Vulnerability.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to vulnerability(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: