Interface BatchGetCodeSnippetResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<BatchGetCodeSnippetResponse.Builder,BatchGetCodeSnippetResponse>,Inspector2Response.Builder,SdkBuilder<BatchGetCodeSnippetResponse.Builder,BatchGetCodeSnippetResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- BatchGetCodeSnippetResponse
public static interface BatchGetCodeSnippetResponse.Builder extends Inspector2Response.Builder, SdkPojo, CopyableBuilder<BatchGetCodeSnippetResponse.Builder,BatchGetCodeSnippetResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BatchGetCodeSnippetResponse.BuildercodeSnippetResults(Collection<CodeSnippetResult> codeSnippetResults)The retrieved code snippets associated with the provided finding ARNs.BatchGetCodeSnippetResponse.BuildercodeSnippetResults(Consumer<CodeSnippetResult.Builder>... codeSnippetResults)The retrieved code snippets associated with the provided finding ARNs.BatchGetCodeSnippetResponse.BuildercodeSnippetResults(CodeSnippetResult... codeSnippetResults)The retrieved code snippets associated with the provided finding ARNs.BatchGetCodeSnippetResponse.Buildererrors(Collection<CodeSnippetError> errors)Any errors Amazon Inspector encountered while trying to retrieve the requested code snippets.BatchGetCodeSnippetResponse.Buildererrors(Consumer<CodeSnippetError.Builder>... errors)Any errors Amazon Inspector encountered while trying to retrieve the requested code snippets.BatchGetCodeSnippetResponse.Buildererrors(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 Detail
-
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
BatchGetCodeSnippetResponse.Builder codeSnippetResults(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
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.Builderavoiding the need to create one manually viaCodeSnippetResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#codeSnippetResults(List.) - 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:
#codeSnippetResults(java.util.Collection)
-
errors
BatchGetCodeSnippetResponse.Builder errors(Collection<CodeSnippetError> 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
BatchGetCodeSnippetResponse.Builder errors(CodeSnippetError... 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
BatchGetCodeSnippetResponse.Builder errors(Consumer<CodeSnippetError.Builder>... 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.Builderavoiding the need to create one manually viaCodeSnippetError.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#errors(List.) - 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:
#errors(java.util.Collection)
-
-