Interface PreviewAgentsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<PreviewAgentsResponse.Builder,
,PreviewAgentsResponse> InspectorResponse.Builder
,SdkBuilder<PreviewAgentsResponse.Builder,
,PreviewAgentsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
PreviewAgentsResponse
public static interface PreviewAgentsResponse.Builder
extends InspectorResponse.Builder, SdkPojo, CopyableBuilder<PreviewAgentsResponse.Builder,PreviewAgentsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionagentPreviews
(Collection<AgentPreview> agentPreviews) The resulting list of agents.agentPreviews
(Consumer<AgentPreview.Builder>... agentPreviews) The resulting list of agents.agentPreviews
(AgentPreview... agentPreviews) The resulting list of agents.When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.inspector.model.InspectorResponse.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
-
agentPreviews
The resulting list of agents.
- Parameters:
agentPreviews
- The resulting list of agents.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentPreviews
The resulting list of agents.
- Parameters:
agentPreviews
- The resulting list of agents.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentPreviews
The resulting list of agents.
This is a convenience method that creates an instance of theAgentPreview.Builder
avoiding the need to create one manually viaAgentPreview.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toagentPreviews(List<AgentPreview>)
.- Parameters:
agentPreviews
- a consumer that will call methods onAgentPreview.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.
- Parameters:
nextToken
- When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-