Interface ListAgentsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListAgentsResponse.Builder,ListAgentsResponse>,DataSyncResponse.Builder,SdkBuilder<ListAgentsResponse.Builder,ListAgentsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- ListAgentsResponse
public static interface ListAgentsResponse.Builder extends DataSyncResponse.Builder, SdkPojo, CopyableBuilder<ListAgentsResponse.Builder,ListAgentsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListAgentsResponse.Builderagents(Collection<AgentListEntry> agents)A list of DataSync agents in your Amazon Web Services account in the Amazon Web Services Region specified in the request.ListAgentsResponse.Builderagents(Consumer<AgentListEntry.Builder>... agents)A list of DataSync agents in your Amazon Web Services account in the Amazon Web Services Region specified in the request.ListAgentsResponse.Builderagents(AgentListEntry... agents)A list of DataSync agents in your Amazon Web Services account in the Amazon Web Services Region specified in the request.ListAgentsResponse.BuildernextToken(String nextToken)The opaque string that indicates the position to begin the next list of results in the response.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.datasync.model.DataSyncResponse.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
-
agents
ListAgentsResponse.Builder agents(Collection<AgentListEntry> agents)
A list of DataSync agents in your Amazon Web Services account in the Amazon Web Services Region specified in the request. The list is ordered by the agents' Amazon Resource Names (ARNs).
- Parameters:
agents- A list of DataSync agents in your Amazon Web Services account in the Amazon Web Services Region specified in the request. The list is ordered by the agents' Amazon Resource Names (ARNs).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agents
ListAgentsResponse.Builder agents(AgentListEntry... agents)
A list of DataSync agents in your Amazon Web Services account in the Amazon Web Services Region specified in the request. The list is ordered by the agents' Amazon Resource Names (ARNs).
- Parameters:
agents- A list of DataSync agents in your Amazon Web Services account in the Amazon Web Services Region specified in the request. The list is ordered by the agents' Amazon Resource Names (ARNs).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agents
ListAgentsResponse.Builder agents(Consumer<AgentListEntry.Builder>... agents)
A list of DataSync agents in your Amazon Web Services account in the Amazon Web Services Region specified in the request. The list is ordered by the agents' Amazon Resource Names (ARNs).
This is a convenience method that creates an instance of theAgentListEntry.Builderavoiding the need to create one manually viaAgentListEntry.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#agents(List.) - Parameters:
agents- a consumer that will call methods onAgentListEntry.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#agents(java.util.Collection)
-
nextToken
ListAgentsResponse.Builder nextToken(String nextToken)
The opaque string that indicates the position to begin the next list of results in the response.
- Parameters:
nextToken- The opaque string that indicates the position to begin the next list of results in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-