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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FilePath.BuildercodeSnippet(Collection<CodeLine> codeSnippet)A list ofCodeLineobjects that describe where the security vulnerability appears in your code.FilePath.BuildercodeSnippet(Consumer<CodeLine.Builder>... codeSnippet)A list ofCodeLineobjects that describe where the security vulnerability appears in your code.FilePath.BuildercodeSnippet(CodeLine... codeSnippet)A list ofCodeLineobjects that describe where the security vulnerability appears in your code.FilePath.BuilderendLine(Integer endLine)The last line number of the code snippet where the security vulnerability appears in your code.FilePath.Buildername(String name)The name of the file.FilePath.Builderpath(String path)The path to the resource with the security vulnerability.FilePath.BuilderstartLine(Integer startLine)The first line number of the code snippet where the security vulnerability appears in your code.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
codeSnippet
FilePath.Builder codeSnippet(Collection<CodeLine> codeSnippet)
A list of
CodeLineobjects that describe where the security vulnerability appears in your code.- Parameters:
codeSnippet- A list ofCodeLineobjects 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
CodeLineobjects that describe where the security vulnerability appears in your code.- Parameters:
codeSnippet- A list ofCodeLineobjects 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
This is a convenience method that creates an instance of theCodeLineobjects that describe where the security vulnerability appears in your code.CodeLine.Builderavoiding the need to create one manually viaCodeLine.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#codeSnippet(List.) - Parameters:
codeSnippet- a consumer that will call methods onCodeLine.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.
-
-