Interface CodeSnippetResult.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<CodeSnippetResult.Builder,,- CodeSnippetResult> - SdkBuilder<CodeSnippetResult.Builder,,- CodeSnippetResult> - SdkPojo
- Enclosing class:
- CodeSnippetResult
@Mutable
@NotThreadSafe
public static interface CodeSnippetResult.Builder
extends SdkPojo, CopyableBuilder<CodeSnippetResult.Builder,CodeSnippetResult> 
- 
Method SummaryModifier and TypeMethodDescriptioncodeSnippet(Collection<CodeLine> codeSnippet) Contains information on the retrieved code snippet.codeSnippet(Consumer<CodeLine.Builder>... codeSnippet) Contains information on the retrieved code snippet.codeSnippet(CodeLine... codeSnippet) Contains information on the retrieved code snippet.The line number of the last line of a code snippet.findingArn(String findingArn) The ARN of a finding that the code snippet is associated with.The line number of the first line of a code snippet.suggestedFixes(Collection<SuggestedFix> suggestedFixes) Details of a suggested code fix.suggestedFixes(Consumer<SuggestedFix.Builder>... suggestedFixes) Details of a suggested code fix.suggestedFixes(SuggestedFix... suggestedFixes) Details of a suggested code fix.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
findingArnThe ARN of a finding that the code snippet is associated with. - Parameters:
- findingArn- The ARN of a finding that the code snippet is associated with.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
startLineThe line number of the first line of a code snippet. - Parameters:
- startLine- The line number of the first line of a code snippet.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
endLineThe line number of the last line of a code snippet. - Parameters:
- endLine- The line number of the last line of a code snippet.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
codeSnippetContains information on the retrieved code snippet. - Parameters:
- codeSnippet- Contains information on the retrieved code snippet.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
codeSnippetContains information on the retrieved code snippet. - Parameters:
- codeSnippet- Contains information on the retrieved code snippet.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
codeSnippetContains information on the retrieved code snippet. This is a convenience method that creates an instance of theCodeLine.Builderavoiding the need to create one manually viaCodeLine.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocodeSnippet(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:
 
- 
suggestedFixesDetails of a suggested code fix. - Parameters:
- suggestedFixes- Details of a suggested code fix.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
suggestedFixesDetails of a suggested code fix. - Parameters:
- suggestedFixes- Details of a suggested code fix.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
suggestedFixesDetails of a suggested code fix. This is a convenience method that creates an instance of theSuggestedFix.Builderavoiding the need to create one manually viaSuggestedFix.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosuggestedFixes(List<SuggestedFix>).- Parameters:
- suggestedFixes- a consumer that will call methods on- SuggestedFix.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-