Interface FilePath.Builder

    • Method Detail

      • codeSnippet

        FilePath.Builder codeSnippet​(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.
      • codeSnippet

        FilePath.Builder codeSnippet​(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.
      • codeSnippet

        FilePath.Builder codeSnippet​(Consumer<CodeLine.Builder>... codeSnippet)

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

        This is a convenience method that creates an instance of the CodeLine.Builder avoiding the need to create one manually via CodeLine.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #codeSnippet(List).

        Parameters:
        codeSnippet - a consumer that will call methods on CodeLine.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #codeSnippet(java.util.Collection)
      • endLine

        FilePath.Builder endLine​(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.
      • name

        FilePath.Builder name​(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.
      • path

        FilePath.Builder path​(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.
      • startLine

        FilePath.Builder startLine​(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.