JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.codegurusecurity.model

Class Finding

    • Constructor Detail

      • Finding

        public Finding()
    • Method Detail

      • setCreatedAt

        public void setCreatedAt(Date createdAt)

        The time when the finding was created.

        Parameters:
        createdAt - The time when the finding was created.
      • getCreatedAt

        public Date getCreatedAt()

        The time when the finding was created.

        Returns:
        The time when the finding was created.
      • withCreatedAt

        public Finding withCreatedAt(Date 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.
      • setDescription

        public void setDescription(String description)

        A description of the finding.

        Parameters:
        description - A description of the finding.
      • getDescription

        public String getDescription()

        A description of the finding.

        Returns:
        A description of the finding.
      • withDescription

        public Finding withDescription(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.
      • setDetectorId

        public void setDetectorId(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.
      • getDetectorId

        public String getDetectorId()

        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:
        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.
      • withDetectorId

        public Finding withDetectorId(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.
      • setDetectorName

        public void setDetectorName(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.
      • getDetectorName

        public String getDetectorName()

        The name of the detector that identified the security vulnerability in your code.

        Returns:
        The name of the detector that identified the security vulnerability in your code.
      • withDetectorName

        public Finding withDetectorName(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.
      • getDetectorTags

        public List<String> getDetectorTags()

        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:
        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.
      • setDetectorTags

        public void setDetectorTags(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.
      • withDetectorTags

        public Finding withDetectorTags(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.

        NOTE: This method appends the values to the existing list (if any). Use setDetectorTags(java.util.Collection) or withDetectorTags(java.util.Collection) if you want to override the existing values.

        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.
      • withDetectorTags

        public Finding withDetectorTags(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.
      • setGeneratorId

        public void setGeneratorId(String generatorId)

        The 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.
      • getGeneratorId

        public String getGeneratorId()

        The identifier for the component that generated a finding such as AmazonCodeGuruSecurity.

        Returns:
        The identifier for the component that generated a finding such as AmazonCodeGuruSecurity.
      • withGeneratorId

        public Finding withGeneratorId(String generatorId)

        The 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.
      • setId

        public void setId(String id)

        The identifier for a finding.

        Parameters:
        id - The identifier for a finding.
      • getId

        public String getId()

        The identifier for a finding.

        Returns:
        The identifier for a finding.
      • withId

        public Finding withId(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.
      • setRemediation

        public void setRemediation(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.
      • getRemediation

        public Remediation getRemediation()

        An object that contains the details about how to remediate a finding.

        Returns:
        An object that contains the details about how to remediate a finding.
      • withRemediation

        public Finding withRemediation(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.
      • setResource

        public void setResource(Resource resource)

        The resource where Amazon CodeGuru Security detected a finding.

        Parameters:
        resource - The resource where Amazon CodeGuru Security detected a finding.
      • getResource

        public Resource getResource()

        The resource where Amazon CodeGuru Security detected a finding.

        Returns:
        The resource where Amazon CodeGuru Security detected a finding.
      • withResource

        public Finding withResource(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.
      • setRuleId

        public void setRuleId(String ruleId)

        The identifier for the rule that generated the finding.

        Parameters:
        ruleId - The identifier for the rule that generated the finding.
      • getRuleId

        public String getRuleId()

        The identifier for the rule that generated the finding.

        Returns:
        The identifier for the rule that generated the finding.
      • withRuleId

        public Finding withRuleId(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.
      • setSeverity

        public void setSeverity(String 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.

        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.
        See Also:
        Severity
      • getSeverity

        public String getSeverity()

        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:
        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.
        See Also:
        Severity
      • withSeverity

        public Finding withSeverity(String 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.

        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:
        Severity
      • withSeverity

        public Finding withSeverity(Severity 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.

        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:
        Severity
      • setStatus

        public void setStatus(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.
        See Also:
        Status
      • getStatus

        public String getStatus()

        The status of the finding. A finding status can be open or closed.

        Returns:
        The status of the finding. A finding status can be open or closed.
        See Also:
        Status
      • withStatus

        public Finding withStatus(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
      • withStatus

        public Finding withStatus(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
      • setTitle

        public void setTitle(String title)

        The title of the finding.

        Parameters:
        title - The title of the finding.
      • getTitle

        public String getTitle()

        The title of the finding.

        Returns:
        The title of the finding.
      • withTitle

        public Finding withTitle(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.
      • setType

        public void setType(String type)

        The type of finding.

        Parameters:
        type - The type of finding.
      • getType

        public String getType()

        The type of finding.

        Returns:
        The type of finding.
      • withType

        public Finding withType(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.
      • setUpdatedAt

        public void setUpdatedAt(Date 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.
      • getUpdatedAt

        public Date getUpdatedAt()

        The time when the finding was last updated. Findings are updated when you remediate them or when the finding code location changes.

        Returns:
        The time when the finding was last updated. Findings are updated when you remediate them or when the finding code location changes.
      • withUpdatedAt

        public Finding withUpdatedAt(Date 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.
      • setVulnerability

        public void setVulnerability(Vulnerability vulnerability)

        An object that describes the detected security vulnerability.

        Parameters:
        vulnerability - An object that describes the detected security vulnerability.
      • getVulnerability

        public Vulnerability getVulnerability()

        An object that describes the detected security vulnerability.

        Returns:
        An object that describes the detected security vulnerability.
      • withVulnerability

        public Finding withVulnerability(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.
      • toString

        public String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /