Interface FilePath.Builder

All Superinterfaces:
Buildable, CopyableBuilder<FilePath.Builder,FilePath>, SdkBuilder<FilePath.Builder,FilePath>, SdkPojo
Enclosing class:
FilePath

public static interface FilePath.Builder extends SdkPojo, CopyableBuilder<FilePath.Builder,FilePath>
  • Method Details

    • 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<CodeLine>).

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

      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

      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.