Interface BatchGetCodeSnippetResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<BatchGetCodeSnippetResponse.Builder,
,BatchGetCodeSnippetResponse> Inspector2Response.Builder
,SdkBuilder<BatchGetCodeSnippetResponse.Builder,
,BatchGetCodeSnippetResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
BatchGetCodeSnippetResponse
-
Method Summary
Modifier and TypeMethodDescriptioncodeSnippetResults
(Collection<CodeSnippetResult> codeSnippetResults) The retrieved code snippets associated with the provided finding ARNs.codeSnippetResults
(Consumer<CodeSnippetResult.Builder>... codeSnippetResults) The retrieved code snippets associated with the provided finding ARNs.codeSnippetResults
(CodeSnippetResult... codeSnippetResults) The retrieved code snippets associated with the provided finding ARNs.errors
(Collection<CodeSnippetError> errors) Any errors Amazon Inspector encountered while trying to retrieve the requested code snippets.errors
(Consumer<CodeSnippetError.Builder>... errors) Any errors Amazon Inspector encountered while trying to retrieve the requested code snippets.errors
(CodeSnippetError... errors) Any errors Amazon Inspector encountered while trying to retrieve the requested code snippets.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.inspector2.model.Inspector2Response.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
codeSnippetResults
BatchGetCodeSnippetResponse.Builder codeSnippetResults(Collection<CodeSnippetResult> codeSnippetResults) The retrieved code snippets associated with the provided finding ARNs.
- Parameters:
codeSnippetResults
- The retrieved code snippets associated with the provided finding ARNs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
codeSnippetResults
The retrieved code snippets associated with the provided finding ARNs.
- Parameters:
codeSnippetResults
- The retrieved code snippets associated with the provided finding ARNs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
codeSnippetResults
BatchGetCodeSnippetResponse.Builder codeSnippetResults(Consumer<CodeSnippetResult.Builder>... codeSnippetResults) The retrieved code snippets associated with the provided finding ARNs.
This is a convenience method that creates an instance of theCodeSnippetResult.Builder
avoiding the need to create one manually viaCodeSnippetResult.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocodeSnippetResults(List<CodeSnippetResult>)
.- Parameters:
codeSnippetResults
- a consumer that will call methods onCodeSnippetResult.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
errors
Any errors Amazon Inspector encountered while trying to retrieve the requested code snippets.
- Parameters:
errors
- Any errors Amazon Inspector encountered while trying to retrieve the requested code snippets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
Any errors Amazon Inspector encountered while trying to retrieve the requested code snippets.
- Parameters:
errors
- Any errors Amazon Inspector encountered while trying to retrieve the requested code snippets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
Any errors Amazon Inspector encountered while trying to retrieve the requested code snippets.
This is a convenience method that creates an instance of theCodeSnippetError.Builder
avoiding the need to create one manually viaCodeSnippetError.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toerrors(List<CodeSnippetError>)
.- Parameters:
errors
- a consumer that will call methods onCodeSnippetError.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-