Interface CodeSnippetResult.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CodeSnippetResult.Builder,CodeSnippetResult>,SdkBuilder<CodeSnippetResult.Builder,CodeSnippetResult>,SdkPojo
- Enclosing class:
- CodeSnippetResult
public static interface CodeSnippetResult.Builder extends SdkPojo, CopyableBuilder<CodeSnippetResult.Builder,CodeSnippetResult>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CodeSnippetResult.BuildercodeSnippet(Collection<CodeLine> codeSnippet)Contains information on the retrieved code snippet.CodeSnippetResult.BuildercodeSnippet(Consumer<CodeLine.Builder>... codeSnippet)Contains information on the retrieved code snippet.CodeSnippetResult.BuildercodeSnippet(CodeLine... codeSnippet)Contains information on the retrieved code snippet.CodeSnippetResult.BuilderendLine(Integer endLine)The line number of the last line of a code snippet.CodeSnippetResult.BuilderfindingArn(String findingArn)The ARN of a finding that the code snippet is associated with.CodeSnippetResult.BuilderstartLine(Integer startLine)The line number of the first line of a code snippet.CodeSnippetResult.BuildersuggestedFixes(Collection<SuggestedFix> suggestedFixes)Details of a suggested code fix.CodeSnippetResult.BuildersuggestedFixes(Consumer<SuggestedFix.Builder>... suggestedFixes)Details of a suggested code fix.CodeSnippetResult.BuildersuggestedFixes(SuggestedFix... suggestedFixes)Details of a suggested code fix.-
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
CodeSnippetResult.Builder codeSnippet(Collection<CodeLine> codeSnippet)
Contains 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.
-
codeSnippet
CodeSnippetResult.Builder codeSnippet(CodeLine... codeSnippet)
Contains 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.
-
codeSnippet
CodeSnippetResult.Builder codeSnippet(Consumer<CodeLine.Builder>... codeSnippet)
Contains 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 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
CodeSnippetResult.Builder endLine(Integer endLine)
The 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.
-
findingArn
CodeSnippetResult.Builder findingArn(String findingArn)
The 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.
-
startLine
CodeSnippetResult.Builder startLine(Integer startLine)
The 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.
-
suggestedFixes
CodeSnippetResult.Builder suggestedFixes(Collection<SuggestedFix> suggestedFixes)
Details 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.
-
suggestedFixes
CodeSnippetResult.Builder suggestedFixes(SuggestedFix... suggestedFixes)
Details 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.
-
suggestedFixes
CodeSnippetResult.Builder suggestedFixes(Consumer<SuggestedFix.Builder>... suggestedFixes)
Details 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 to#suggestedFixes(List.) - Parameters:
suggestedFixes- a consumer that will call methods onSuggestedFix.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#suggestedFixes(java.util.Collection)
-
-