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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PreviewAgentsResponse.BuilderagentPreviews(Collection<AgentPreview> agentPreviews)The resulting list of agents.PreviewAgentsResponse.BuilderagentPreviews(Consumer<AgentPreview.Builder>... agentPreviews)The resulting list of agents.PreviewAgentsResponse.BuilderagentPreviews(AgentPreview... agentPreviews)The resulting list of agents.PreviewAgentsResponse.BuildernextToken(String 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.-
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 Detail
-
agentPreviews
PreviewAgentsResponse.Builder agentPreviews(Collection<AgentPreview> 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
PreviewAgentsResponse.Builder agentPreviews(AgentPreview... 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
PreviewAgentsResponse.Builder agentPreviews(Consumer<AgentPreview.Builder>... 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 to#agentPreviews(List.) - 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:
#agentPreviews(java.util.Collection)
-
nextToken
PreviewAgentsResponse.Builder nextToken(String 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.
-
-