Interface Finding.Builder

    • 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.
      • 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.
      • 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, Severity
      • 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:
        Severity, Severity
      • 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, Status
      • 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:
        Status, Status
      • 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.