Interface ListWorkspacesResponse.Builder
- All Superinterfaces:
AmpResponse.Builder
,AwsResponse.Builder
,Buildable
,CopyableBuilder<ListWorkspacesResponse.Builder,
,ListWorkspacesResponse> SdkBuilder<ListWorkspacesResponse.Builder,
,ListWorkspacesResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListWorkspacesResponse
public static interface ListWorkspacesResponse.Builder
extends AmpResponse.Builder, SdkPojo, CopyableBuilder<ListWorkspacesResponse.Builder,ListWorkspacesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionPagination token to use when requesting the next page in this list.workspaces
(Collection<WorkspaceSummary> workspaces) The list of existing workspaces, including those undergoing creation or deletion.workspaces
(Consumer<WorkspaceSummary.Builder>... workspaces) The list of existing workspaces, including those undergoing creation or deletion.workspaces
(WorkspaceSummary... workspaces) The list of existing workspaces, including those undergoing creation or deletion.Methods inherited from interface software.amazon.awssdk.services.amp.model.AmpResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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
-
workspaces
The list of existing workspaces, including those undergoing creation or deletion.
- Parameters:
workspaces
- The list of existing workspaces, including those undergoing creation or deletion.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workspaces
The list of existing workspaces, including those undergoing creation or deletion.
- Parameters:
workspaces
- The list of existing workspaces, including those undergoing creation or deletion.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workspaces
The list of existing workspaces, including those undergoing creation or deletion.
This is a convenience method that creates an instance of theWorkspaceSummary.Builder
avoiding the need to create one manually viaWorkspaceSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toworkspaces(List<WorkspaceSummary>)
.- Parameters:
workspaces
- a consumer that will call methods onWorkspaceSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
Pagination token to use when requesting the next page in this list.
- Parameters:
nextToken
- Pagination token to use when requesting the next page in this list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-