Interface ListWorkspaceInstancesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListWorkspaceInstancesResponse.Builder,,ListWorkspaceInstancesResponse> SdkBuilder<ListWorkspaceInstancesResponse.Builder,,ListWorkspaceInstancesResponse> SdkPojo,SdkResponse.Builder,WorkspacesInstancesResponse.Builder
- Enclosing class:
ListWorkspaceInstancesResponse
@Mutable
@NotThreadSafe
public static interface ListWorkspaceInstancesResponse.Builder
extends WorkspacesInstancesResponse.Builder, SdkPojo, CopyableBuilder<ListWorkspaceInstancesResponse.Builder,ListWorkspaceInstancesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionToken for retrieving additional WorkSpaces Instances if the result set is paginated.workspaceInstances(Collection<WorkspaceInstance> workspaceInstances) Collection of WorkSpaces Instances returned by the query.workspaceInstances(Consumer<WorkspaceInstance.Builder>... workspaceInstances) Collection of WorkSpaces Instances returned by the query.workspaceInstances(WorkspaceInstance... workspaceInstances) Collection of WorkSpaces Instances returned by the query.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods 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, sdkHttpResponseMethods inherited from interface software.amazon.awssdk.services.workspacesinstances.model.WorkspacesInstancesResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
workspaceInstances
ListWorkspaceInstancesResponse.Builder workspaceInstances(Collection<WorkspaceInstance> workspaceInstances) Collection of WorkSpaces Instances returned by the query.
- Parameters:
workspaceInstances- Collection of WorkSpaces Instances returned by the query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workspaceInstances
Collection of WorkSpaces Instances returned by the query.
- Parameters:
workspaceInstances- Collection of WorkSpaces Instances returned by the query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workspaceInstances
ListWorkspaceInstancesResponse.Builder workspaceInstances(Consumer<WorkspaceInstance.Builder>... workspaceInstances) Collection of WorkSpaces Instances returned by the query.
This is a convenience method that creates an instance of theWorkspaceInstance.Builderavoiding the need to create one manually viaWorkspaceInstance.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toworkspaceInstances(List<WorkspaceInstance>).- Parameters:
workspaceInstances- a consumer that will call methods onWorkspaceInstance.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
Token for retrieving additional WorkSpaces Instances if the result set is paginated.
- Parameters:
nextToken- Token for retrieving additional WorkSpaces Instances if the result set is paginated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-