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 FilePath

    • Constructor Detail

      • FilePath

        public FilePath()
    • Method Detail

      • getCodeSnippet

        public List<CodeLine> getCodeSnippet()

        A list of CodeLine objects that describe where the security vulnerability appears in your code.

        Returns:
        A list of CodeLine objects that describe where the security vulnerability appears in your code.
      • setCodeSnippet

        public void setCodeSnippet(Collection<CodeLine> codeSnippet)

        A list of CodeLine objects that describe where the security vulnerability appears in your code.

        Parameters:
        codeSnippet - A list of CodeLine objects that describe where the security vulnerability appears in your code.
      • withCodeSnippet

        public FilePath withCodeSnippet(CodeLine... codeSnippet)

        A list of CodeLine objects that describe where the security vulnerability appears in your code.

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

        Parameters:
        codeSnippet - A list of CodeLine objects that describe where the security vulnerability appears in your code.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withCodeSnippet

        public FilePath withCodeSnippet(Collection<CodeLine> codeSnippet)

        A list of CodeLine objects that describe where the security vulnerability appears in your code.

        Parameters:
        codeSnippet - A list of CodeLine objects that describe where the security vulnerability appears in your code.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setEndLine

        public void setEndLine(Integer endLine)

        The last line number of the code snippet where the security vulnerability appears in your code.

        Parameters:
        endLine - The last line number of the code snippet where the security vulnerability appears in your code.
      • getEndLine

        public Integer getEndLine()

        The last line number of the code snippet where the security vulnerability appears in your code.

        Returns:
        The last line number of the code snippet where the security vulnerability appears in your code.
      • withEndLine

        public FilePath withEndLine(Integer endLine)

        The last line number of the code snippet where the security vulnerability appears in your code.

        Parameters:
        endLine - The last line number of the code snippet where the security vulnerability appears in your code.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setName

        public void setName(String name)

        The name of the file.

        Parameters:
        name - The name of the file.
      • getName

        public String getName()

        The name of the file.

        Returns:
        The name of the file.
      • withName

        public FilePath withName(String name)

        The name of the file.

        Parameters:
        name - The name of the file.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setPath

        public void setPath(String path)

        The path to the resource with the security vulnerability.

        Parameters:
        path - The path to the resource with the security vulnerability.
      • getPath

        public String getPath()

        The path to the resource with the security vulnerability.

        Returns:
        The path to the resource with the security vulnerability.
      • withPath

        public FilePath withPath(String path)

        The path to the resource with the security vulnerability.

        Parameters:
        path - The path to the resource with the security vulnerability.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setStartLine

        public void setStartLine(Integer startLine)

        The first line number of the code snippet where the security vulnerability appears in your code.

        Parameters:
        startLine - The first line number of the code snippet where the security vulnerability appears in your code.
      • getStartLine

        public Integer getStartLine()

        The first line number of the code snippet where the security vulnerability appears in your code.

        Returns:
        The first line number of the code snippet where the security vulnerability appears in your code.
      • withStartLine

        public FilePath withStartLine(Integer startLine)

        The first line number of the code snippet where the security vulnerability appears in your code.

        Parameters:
        startLine - The first line number of the code snippet where the security vulnerability appears in your code.
        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 によって変換されたページ (->オリジナル) /