@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CodeSnippetResult extends Object implements Serializable, Cloneable, StructuredPojo
Contains information on a code snippet retrieved by Amazon Inspector from a code vulnerability finding.
| Constructor and Description | 
|---|
| CodeSnippetResult() | 
| Modifier and Type | Method and Description | 
|---|---|
| CodeSnippetResult | clone() | 
| boolean | equals(Object obj) | 
| List<CodeLine> | getCodeSnippet()
 Contains information on the retrieved code snippet. | 
| Integer | getEndLine()
 The line number of the last line of a code snippet. | 
| String | getFindingArn()
 The ARN of a finding that the code snippet is associated with. | 
| Integer | getStartLine()
 The line number of the first line of a code snippet. | 
| List<SuggestedFix> | getSuggestedFixes()
 Details of a suggested code fix. | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller)Marshalls this structured data using the given  ProtocolMarshaller. | 
| void | setCodeSnippet(Collection<CodeLine> codeSnippet)
 Contains information on the retrieved code snippet. | 
| void | setEndLine(Integer endLine)
 The line number of the last line of a code snippet. | 
| void | setFindingArn(String findingArn)
 The ARN of a finding that the code snippet is associated with. | 
| void | setStartLine(Integer startLine)
 The line number of the first line of a code snippet. | 
| void | setSuggestedFixes(Collection<SuggestedFix> suggestedFixes)
 Details of a suggested code fix. | 
| String | toString()Returns a string representation of this object. | 
| CodeSnippetResult | withCodeSnippet(CodeLine... codeSnippet)
 Contains information on the retrieved code snippet. | 
| CodeSnippetResult | withCodeSnippet(Collection<CodeLine> codeSnippet)
 Contains information on the retrieved code snippet. | 
| CodeSnippetResult | withEndLine(Integer endLine)
 The line number of the last line of a code snippet. | 
| CodeSnippetResult | withFindingArn(String findingArn)
 The ARN of a finding that the code snippet is associated with. | 
| CodeSnippetResult | withStartLine(Integer startLine)
 The line number of the first line of a code snippet. | 
| CodeSnippetResult | withSuggestedFixes(Collection<SuggestedFix> suggestedFixes)
 Details of a suggested code fix. | 
| CodeSnippetResult | withSuggestedFixes(SuggestedFix... suggestedFixes)
 Details of a suggested code fix. | 
public List<CodeLine> getCodeSnippet()
Contains information on the retrieved code snippet.
public void setCodeSnippet(Collection<CodeLine> codeSnippet)
Contains information on the retrieved code snippet.
codeSnippet - Contains information on the retrieved code snippet.public CodeSnippetResult withCodeSnippet(CodeLine... codeSnippet)
Contains information on the retrieved code snippet.
 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 - Contains information on the retrieved code snippet.public CodeSnippetResult withCodeSnippet(Collection<CodeLine> codeSnippet)
Contains information on the retrieved code snippet.
codeSnippet - Contains information on the retrieved code snippet.public void setEndLine(Integer endLine)
The line number of the last line of a code snippet.
endLine - The line number of the last line of a code snippet.public Integer getEndLine()
The line number of the last line of a code snippet.
public CodeSnippetResult withEndLine(Integer endLine)
The line number of the last line of a code snippet.
endLine - The line number of the last line of a code snippet.public void setFindingArn(String findingArn)
The ARN of a finding that the code snippet is associated with.
findingArn - The ARN of a finding that the code snippet is associated with.public String getFindingArn()
The ARN of a finding that the code snippet is associated with.
public CodeSnippetResult withFindingArn(String findingArn)
The ARN of a finding that the code snippet is associated with.
findingArn - The ARN of a finding that the code snippet is associated with.public void setStartLine(Integer startLine)
The line number of the first line of a code snippet.
startLine - The line number of the first line of a code snippet.public Integer getStartLine()
The line number of the first line of a code snippet.
public CodeSnippetResult withStartLine(Integer startLine)
The line number of the first line of a code snippet.
startLine - The line number of the first line of a code snippet.public List<SuggestedFix> getSuggestedFixes()
Details of a suggested code fix.
public void setSuggestedFixes(Collection<SuggestedFix> suggestedFixes)
Details of a suggested code fix.
suggestedFixes - Details of a suggested code fix.public CodeSnippetResult withSuggestedFixes(SuggestedFix... suggestedFixes)
Details of a suggested code fix.
 NOTE: This method appends the values to the existing list (if any). Use
 setSuggestedFixes(java.util.Collection) or withSuggestedFixes(java.util.Collection) if you want
 to override the existing values.
 
suggestedFixes - Details of a suggested code fix.public CodeSnippetResult withSuggestedFixes(Collection<SuggestedFix> suggestedFixes)
Details of a suggested code fix.
suggestedFixes - Details of a suggested code fix.public String toString()
toString in class ObjectObject.toString()public CodeSnippetResult clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.