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
Modifier 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.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 Details
-
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
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
Contains information on the retrieved code snippet.
This is a convenience method that creates an instance of theCodeLine.Builder
avoiding the need to create one manually viaCodeLine.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocodeSnippet(List<CodeLine>)
.- 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:
-
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
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
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
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
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
Details of a suggested code fix.
This is a convenience method that creates an instance of theSuggestedFix.Builder
avoiding the need to create one manually viaSuggestedFix.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosuggestedFixes(List<SuggestedFix>)
.- 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:
-