Interface PreviewAgentsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<PreviewAgentsResponse.Builder,,PreviewAgentsResponse> InspectorResponse.Builder,SdkBuilder<PreviewAgentsResponse.Builder,,PreviewAgentsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
PreviewAgentsResponse
@Mutable
@NotThreadSafe
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
copyMethods inherited from interface software.amazon.awssdk.services.inspector.model.InspectorResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods 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.Builderavoiding the need to create one manually viaAgentPreview.builder().When the
Consumercompletes,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.
-