@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FilePath extends Object implements Serializable, Cloneable, StructuredPojo
Information about the location of security vulnerabilities that Amazon CodeGuru Security detected in your code.
Constructor and Description |
---|
FilePath() |
Modifier and Type | Method and Description |
---|---|
FilePath |
clone() |
boolean |
equals(Object obj) |
List<CodeLine> |
getCodeSnippet()
A list of
CodeLine objects that describe where the security vulnerability appears in your code. |
Integer |
getEndLine()
The last line number of the code snippet where the security vulnerability appears in your code.
|
String |
getName()
The name of the file.
|
String |
getPath()
The path to the resource with the security vulnerability.
|
Integer |
getStartLine()
The first line number of the code snippet where the security vulnerability appears in your code.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCodeSnippet(Collection<CodeLine> codeSnippet)
A list of
CodeLine objects that describe where the security vulnerability appears in your code. |
void |
setEndLine(Integer endLine)
The last line number of the code snippet where the security vulnerability appears in your code.
|
void |
setName(String name)
The name of the file.
|
void |
setPath(String path)
The path to the resource with the security vulnerability.
|
void |
setStartLine(Integer startLine)
The first line number of the code snippet where the security vulnerability appears in your code.
|
String |
toString()
Returns a string representation of this object.
|
FilePath |
withCodeSnippet(CodeLine... codeSnippet)
A list of
CodeLine objects that describe where the security vulnerability appears in your code. |
FilePath |
withCodeSnippet(Collection<CodeLine> codeSnippet)
A list of
CodeLine objects that describe where the security vulnerability appears in your code. |
FilePath |
withEndLine(Integer endLine)
The last line number of the code snippet where the security vulnerability appears in your code.
|
FilePath |
withName(String name)
The name of the file.
|
FilePath |
withPath(String path)
The path to the resource with the security vulnerability.
|
FilePath |
withStartLine(Integer startLine)
The first line number of the code snippet where the security vulnerability appears in your code.
|
public List<CodeLine> getCodeSnippet()
A list of CodeLine
objects that describe where the security vulnerability appears in your code.
CodeLine
objects that describe where the security vulnerability appears in your
code.public void setCodeSnippet(Collection<CodeLine> codeSnippet)
A list of CodeLine
objects that describe where the security vulnerability appears in your code.
codeSnippet
- A list of CodeLine
objects that describe where the security vulnerability appears in your
code.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.
codeSnippet
- A list of CodeLine
objects that describe where the security vulnerability appears in your
code.public FilePath withCodeSnippet(Collection<CodeLine> codeSnippet)
A list of CodeLine
objects that describe where the security vulnerability appears in your code.
codeSnippet
- A list of CodeLine
objects that describe where the security vulnerability appears in your
code.public void setEndLine(Integer endLine)
The last line number of the code snippet where the security vulnerability appears in your code.
endLine
- The last line number of the code snippet where the security vulnerability appears in your code.public Integer getEndLine()
The last line number of the code snippet where the security vulnerability appears in your code.
public FilePath withEndLine(Integer endLine)
The last line number of the code snippet where the security vulnerability appears in your code.
endLine
- The last line number of the code snippet where the security vulnerability appears in your code.public void setName(String name)
The name of the file.
name
- The name of the file.public String getName()
The name of the file.
public FilePath withName(String name)
The name of the file.
name
- The name of the file.public void setPath(String path)
The path to the resource with the security vulnerability.
path
- The path to the resource with the security vulnerability.public String getPath()
The path to the resource with the security vulnerability.
public FilePath withPath(String path)
The path to the resource with the security vulnerability.
path
- The path to the resource with the security vulnerability.public void setStartLine(Integer startLine)
The first line number of the code snippet where the security vulnerability appears in your code.
startLine
- The first line number of the code snippet where the security vulnerability appears in your code.public Integer getStartLine()
The first line number of the code snippet where the security vulnerability appears in your code.
public FilePath withStartLine(Integer startLine)
The first line number of the code snippet where the security vulnerability appears in your code.
startLine
- The first line number of the code snippet where the security vulnerability appears in your code.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.