Interface WorkspacesInstancesClient
- All Superinterfaces:
- AutoCloseable,- AwsClient,- SdkAutoCloseable,- SdkClient
builder()
 method.
 Amazon WorkSpaces Instances provides an API framework for managing virtual workspace environments across multiple AWS regions, enabling programmatic creation and configuration of desktop infrastructure.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String
- 
Method SummaryModifier and TypeMethodDescriptiondefault AssociateVolumeResponseassociateVolume(Consumer<AssociateVolumeRequest.Builder> associateVolumeRequest) Attaches a volume to a WorkSpace Instance.default AssociateVolumeResponseassociateVolume(AssociateVolumeRequest associateVolumeRequest) Attaches a volume to a WorkSpace Instance.builder()Create a builder that can be used to configure and create aWorkspacesInstancesClient.static WorkspacesInstancesClientcreate()Create aWorkspacesInstancesClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateVolumeResponsecreateVolume(Consumer<CreateVolumeRequest.Builder> createVolumeRequest) Creates a new volume for WorkSpace Instances.default CreateVolumeResponsecreateVolume(CreateVolumeRequest createVolumeRequest) Creates a new volume for WorkSpace Instances.default CreateWorkspaceInstanceResponsecreateWorkspaceInstance(Consumer<CreateWorkspaceInstanceRequest.Builder> createWorkspaceInstanceRequest) Launches a new WorkSpace Instance with specified configuration parameters, enabling programmatic workspace deployment.default CreateWorkspaceInstanceResponsecreateWorkspaceInstance(CreateWorkspaceInstanceRequest createWorkspaceInstanceRequest) Launches a new WorkSpace Instance with specified configuration parameters, enabling programmatic workspace deployment.default DeleteVolumeResponsedeleteVolume(Consumer<DeleteVolumeRequest.Builder> deleteVolumeRequest) Deletes a specified volume.default DeleteVolumeResponsedeleteVolume(DeleteVolumeRequest deleteVolumeRequest) Deletes a specified volume.default DeleteWorkspaceInstanceResponsedeleteWorkspaceInstance(Consumer<DeleteWorkspaceInstanceRequest.Builder> deleteWorkspaceInstanceRequest) Deletes the specified WorkSpacedefault DeleteWorkspaceInstanceResponsedeleteWorkspaceInstance(DeleteWorkspaceInstanceRequest deleteWorkspaceInstanceRequest) Deletes the specified WorkSpacedefault DisassociateVolumeResponsedisassociateVolume(Consumer<DisassociateVolumeRequest.Builder> disassociateVolumeRequest) Detaches a volume from a WorkSpace Instance.default DisassociateVolumeResponsedisassociateVolume(DisassociateVolumeRequest disassociateVolumeRequest) Detaches a volume from a WorkSpace Instance.default GetWorkspaceInstanceResponsegetWorkspaceInstance(Consumer<GetWorkspaceInstanceRequest.Builder> getWorkspaceInstanceRequest) Retrieves detailed information about a specific WorkSpace Instance.default GetWorkspaceInstanceResponsegetWorkspaceInstance(GetWorkspaceInstanceRequest getWorkspaceInstanceRequest) Retrieves detailed information about a specific WorkSpace Instance.default ListInstanceTypesResponselistInstanceTypes(Consumer<ListInstanceTypesRequest.Builder> listInstanceTypesRequest) Retrieves a list of instance types supported by Amazon WorkSpaces Instances, enabling precise workspace infrastructure configuration.default ListInstanceTypesResponselistInstanceTypes(ListInstanceTypesRequest listInstanceTypesRequest) Retrieves a list of instance types supported by Amazon WorkSpaces Instances, enabling precise workspace infrastructure configuration.default ListInstanceTypesIterablelistInstanceTypesPaginator(Consumer<ListInstanceTypesRequest.Builder> listInstanceTypesRequest) This is a variant oflistInstanceTypes(software.amazon.awssdk.services.workspacesinstances.model.ListInstanceTypesRequest)operation.default ListInstanceTypesIterablelistInstanceTypesPaginator(ListInstanceTypesRequest listInstanceTypesRequest) This is a variant oflistInstanceTypes(software.amazon.awssdk.services.workspacesinstances.model.ListInstanceTypesRequest)operation.default ListRegionsResponselistRegions(Consumer<ListRegionsRequest.Builder> listRegionsRequest) Retrieves a list of AWS regions supported by Amazon WorkSpaces Instances, enabling region discovery for workspace deployments.default ListRegionsResponselistRegions(ListRegionsRequest listRegionsRequest) Retrieves a list of AWS regions supported by Amazon WorkSpaces Instances, enabling region discovery for workspace deployments.default ListRegionsIterablelistRegionsPaginator(Consumer<ListRegionsRequest.Builder> listRegionsRequest) This is a variant oflistRegions(software.amazon.awssdk.services.workspacesinstances.model.ListRegionsRequest)operation.default ListRegionsIterablelistRegionsPaginator(ListRegionsRequest listRegionsRequest) This is a variant oflistRegions(software.amazon.awssdk.services.workspacesinstances.model.ListRegionsRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Retrieves tags for a WorkSpace Instance.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Retrieves tags for a WorkSpace Instance.default ListWorkspaceInstancesResponselistWorkspaceInstances(Consumer<ListWorkspaceInstancesRequest.Builder> listWorkspaceInstancesRequest) Retrieves a collection of WorkSpaces Instances based on specified filters.default ListWorkspaceInstancesResponselistWorkspaceInstances(ListWorkspaceInstancesRequest listWorkspaceInstancesRequest) Retrieves a collection of WorkSpaces Instances based on specified filters.default ListWorkspaceInstancesIterablelistWorkspaceInstancesPaginator(Consumer<ListWorkspaceInstancesRequest.Builder> listWorkspaceInstancesRequest) This is a variant oflistWorkspaceInstances(software.amazon.awssdk.services.workspacesinstances.model.ListWorkspaceInstancesRequest)operation.default ListWorkspaceInstancesIterablelistWorkspaceInstancesPaginator(ListWorkspaceInstancesRequest listWorkspaceInstancesRequest) This is a variant oflistWorkspaceInstances(software.amazon.awssdk.services.workspacesinstances.model.ListWorkspaceInstancesRequest)operation.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds tags to a WorkSpace Instance.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Adds tags to a WorkSpace Instance.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from a WorkSpace Instance.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Removes tags from a WorkSpace Instance.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseablecloseMethods inherited from interface software.amazon.awssdk.core.SdkClientserviceName
- 
Field Details- 
SERVICE_NAME- See Also:
 
- 
SERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.- See Also:
 
 
- 
- 
Method Details- 
associateVolumedefault AssociateVolumeResponse associateVolume(AssociateVolumeRequest associateVolumeRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, ConflictException, AwsServiceException, SdkClientException, WorkspacesInstancesException Attaches a volume to a WorkSpace Instance. - Parameters:
- associateVolumeRequest- Specifies volume attachment parameters.
- Returns:
- Result of the AssociateVolume operation returned by the service.
- See Also:
 
- 
associateVolumedefault AssociateVolumeResponse associateVolume(Consumer<AssociateVolumeRequest.Builder> associateVolumeRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, ConflictException, AwsServiceException, SdkClientException, WorkspacesInstancesException Attaches a volume to a WorkSpace Instance. 
 This is a convenience which creates an instance of the AssociateVolumeRequest.Builderavoiding the need to create one manually viaAssociateVolumeRequest.builder()- Parameters:
- associateVolumeRequest- A- Consumerthat will call methods on- AssociateVolumeRequest.Builderto create a request. Specifies volume attachment parameters.
- Returns:
- Result of the AssociateVolume operation returned by the service.
- See Also:
 
- 
createVolumedefault CreateVolumeResponse createVolume(CreateVolumeRequest createVolumeRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, ServiceQuotaExceededException, ConflictException, AwsServiceException, SdkClientException, WorkspacesInstancesException Creates a new volume for WorkSpace Instances. - Parameters:
- createVolumeRequest- Specifies volume creation parameters.
- Returns:
- Result of the CreateVolume operation returned by the service.
- See Also:
 
- 
createVolumedefault CreateVolumeResponse createVolume(Consumer<CreateVolumeRequest.Builder> createVolumeRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, ServiceQuotaExceededException, ConflictException, AwsServiceException, SdkClientException, WorkspacesInstancesException Creates a new volume for WorkSpace Instances. 
 This is a convenience which creates an instance of the CreateVolumeRequest.Builderavoiding the need to create one manually viaCreateVolumeRequest.builder()- Parameters:
- createVolumeRequest- A- Consumerthat will call methods on- CreateVolumeRequest.Builderto create a request. Specifies volume creation parameters.
- Returns:
- Result of the CreateVolume operation returned by the service.
- See Also:
 
- 
createWorkspaceInstancedefault CreateWorkspaceInstanceResponse createWorkspaceInstance(CreateWorkspaceInstanceRequest createWorkspaceInstanceRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, ServiceQuotaExceededException, ConflictException, AwsServiceException, SdkClientException, WorkspacesInstancesException Launches a new WorkSpace Instance with specified configuration parameters, enabling programmatic workspace deployment. - Parameters:
- createWorkspaceInstanceRequest- Defines the configuration parameters for creating a new WorkSpaces Instance.
- Returns:
- Result of the CreateWorkspaceInstance operation returned by the service.
- See Also:
 
- 
createWorkspaceInstancedefault CreateWorkspaceInstanceResponse createWorkspaceInstance(Consumer<CreateWorkspaceInstanceRequest.Builder> createWorkspaceInstanceRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, ServiceQuotaExceededException, ConflictException, AwsServiceException, SdkClientException, WorkspacesInstancesException Launches a new WorkSpace Instance with specified configuration parameters, enabling programmatic workspace deployment. 
 This is a convenience which creates an instance of the CreateWorkspaceInstanceRequest.Builderavoiding the need to create one manually viaCreateWorkspaceInstanceRequest.builder()- Parameters:
- createWorkspaceInstanceRequest- A- Consumerthat will call methods on- CreateWorkspaceInstanceRequest.Builderto create a request. Defines the configuration parameters for creating a new WorkSpaces Instance.
- Returns:
- Result of the CreateWorkspaceInstance operation returned by the service.
- See Also:
 
- 
deleteVolumedefault DeleteVolumeResponse deleteVolume(DeleteVolumeRequest deleteVolumeRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, ConflictException, AwsServiceException, SdkClientException, WorkspacesInstancesException Deletes a specified volume. - Parameters:
- deleteVolumeRequest- Specifies the volume to delete.
- Returns:
- Result of the DeleteVolume operation returned by the service.
- See Also:
 
- 
deleteVolumedefault DeleteVolumeResponse deleteVolume(Consumer<DeleteVolumeRequest.Builder> deleteVolumeRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, ConflictException, AwsServiceException, SdkClientException, WorkspacesInstancesException Deletes a specified volume. 
 This is a convenience which creates an instance of the DeleteVolumeRequest.Builderavoiding the need to create one manually viaDeleteVolumeRequest.builder()- Parameters:
- deleteVolumeRequest- A- Consumerthat will call methods on- DeleteVolumeRequest.Builderto create a request. Specifies the volume to delete.
- Returns:
- Result of the DeleteVolume operation returned by the service.
- See Also:
 
- 
deleteWorkspaceInstancedefault DeleteWorkspaceInstanceResponse deleteWorkspaceInstance(DeleteWorkspaceInstanceRequest deleteWorkspaceInstanceRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, ConflictException, AwsServiceException, SdkClientException, WorkspacesInstancesException Deletes the specified WorkSpace - Parameters:
- deleteWorkspaceInstanceRequest- The WorkSpace to delete
- Returns:
- Result of the DeleteWorkspaceInstance operation returned by the service.
- See Also:
 
- 
deleteWorkspaceInstancedefault DeleteWorkspaceInstanceResponse deleteWorkspaceInstance(Consumer<DeleteWorkspaceInstanceRequest.Builder> deleteWorkspaceInstanceRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, ConflictException, AwsServiceException, SdkClientException, WorkspacesInstancesException Deletes the specified WorkSpace 
 This is a convenience which creates an instance of the DeleteWorkspaceInstanceRequest.Builderavoiding the need to create one manually viaDeleteWorkspaceInstanceRequest.builder()- Parameters:
- deleteWorkspaceInstanceRequest- A- Consumerthat will call methods on- DeleteWorkspaceInstanceRequest.Builderto create a request. The WorkSpace to delete
- Returns:
- Result of the DeleteWorkspaceInstance operation returned by the service.
- See Also:
 
- 
disassociateVolumedefault DisassociateVolumeResponse disassociateVolume(DisassociateVolumeRequest disassociateVolumeRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, ConflictException, AwsServiceException, SdkClientException, WorkspacesInstancesException Detaches a volume from a WorkSpace Instance. - Parameters:
- disassociateVolumeRequest- Specifies volume detachment parameters.
- Returns:
- Result of the DisassociateVolume operation returned by the service.
- See Also:
 
- 
disassociateVolumedefault DisassociateVolumeResponse disassociateVolume(Consumer<DisassociateVolumeRequest.Builder> disassociateVolumeRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, ConflictException, AwsServiceException, SdkClientException, WorkspacesInstancesException Detaches a volume from a WorkSpace Instance. 
 This is a convenience which creates an instance of the DisassociateVolumeRequest.Builderavoiding the need to create one manually viaDisassociateVolumeRequest.builder()- Parameters:
- disassociateVolumeRequest- A- Consumerthat will call methods on- DisassociateVolumeRequest.Builderto create a request. Specifies volume detachment parameters.
- Returns:
- Result of the DisassociateVolume operation returned by the service.
- See Also:
 
- 
getWorkspaceInstancedefault GetWorkspaceInstanceResponse getWorkspaceInstance(GetWorkspaceInstanceRequest getWorkspaceInstanceRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, WorkspacesInstancesException Retrieves detailed information about a specific WorkSpace Instance. - Parameters:
- getWorkspaceInstanceRequest- Identifies the WorkSpaces Instance to retrieve detailed information for.
- Returns:
- Result of the GetWorkspaceInstance operation returned by the service.
- See Also:
 
- 
getWorkspaceInstancedefault GetWorkspaceInstanceResponse getWorkspaceInstance(Consumer<GetWorkspaceInstanceRequest.Builder> getWorkspaceInstanceRequest) throws ValidationException, AccessDeniedException, ThrottlingException, ResourceNotFoundException, InternalServerException, AwsServiceException, SdkClientException, WorkspacesInstancesException Retrieves detailed information about a specific WorkSpace Instance. 
 This is a convenience which creates an instance of the GetWorkspaceInstanceRequest.Builderavoiding the need to create one manually viaGetWorkspaceInstanceRequest.builder()- Parameters:
- getWorkspaceInstanceRequest- A- Consumerthat will call methods on- GetWorkspaceInstanceRequest.Builderto create a request. Identifies the WorkSpaces Instance to retrieve detailed information for.
- Returns:
- Result of the GetWorkspaceInstance operation returned by the service.
- See Also:
 
- 
listInstanceTypesdefault ListInstanceTypesResponse listInstanceTypes(ListInstanceTypesRequest listInstanceTypesRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkspacesInstancesException Retrieves a list of instance types supported by Amazon WorkSpaces Instances, enabling precise workspace infrastructure configuration. - Parameters:
- listInstanceTypesRequest- Defines input parameters for retrieving supported WorkSpaces Instances instance types.
- Returns:
- Result of the ListInstanceTypes operation returned by the service.
- See Also:
 
- 
listInstanceTypesdefault ListInstanceTypesResponse listInstanceTypes(Consumer<ListInstanceTypesRequest.Builder> listInstanceTypesRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkspacesInstancesException Retrieves a list of instance types supported by Amazon WorkSpaces Instances, enabling precise workspace infrastructure configuration. 
 This is a convenience which creates an instance of the ListInstanceTypesRequest.Builderavoiding the need to create one manually viaListInstanceTypesRequest.builder()- Parameters:
- listInstanceTypesRequest- A- Consumerthat will call methods on- ListInstanceTypesRequest.Builderto create a request. Defines input parameters for retrieving supported WorkSpaces Instances instance types.
- Returns:
- Result of the ListInstanceTypes operation returned by the service.
- See Also:
 
- 
listInstanceTypesPaginatordefault ListInstanceTypesIterable listInstanceTypesPaginator(ListInstanceTypesRequest listInstanceTypesRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkspacesInstancesException This is a variant of listInstanceTypes(software.amazon.awssdk.services.workspacesinstances.model.ListInstanceTypesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable. The following are few ways to iterate through the response pages: 1) Using a Stream
 2) Using For loopsoftware.amazon.awssdk.services.workspacesinstances.paginators.ListInstanceTypesIterable responses = client.listInstanceTypesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.workspacesinstances.paginators.ListInstanceTypesIterable responses = client .listInstanceTypesPaginator(request); for (software.amazon.awssdk.services.workspacesinstances.model.ListInstanceTypesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.workspacesinstances.paginators.ListInstanceTypesIterable responses = client.listInstanceTypesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page. Note: If you prefer to have control on service calls, use the listInstanceTypes(software.amazon.awssdk.services.workspacesinstances.model.ListInstanceTypesRequest)operation.- Parameters:
- listInstanceTypesRequest- Defines input parameters for retrieving supported WorkSpaces Instances instance types.
- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
 
- 
listInstanceTypesPaginatordefault ListInstanceTypesIterable listInstanceTypesPaginator(Consumer<ListInstanceTypesRequest.Builder> listInstanceTypesRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkspacesInstancesException This is a variant of listInstanceTypes(software.amazon.awssdk.services.workspacesinstances.model.ListInstanceTypesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable. The following are few ways to iterate through the response pages: 1) Using a Stream
 2) Using For loopsoftware.amazon.awssdk.services.workspacesinstances.paginators.ListInstanceTypesIterable responses = client.listInstanceTypesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.workspacesinstances.paginators.ListInstanceTypesIterable responses = client .listInstanceTypesPaginator(request); for (software.amazon.awssdk.services.workspacesinstances.model.ListInstanceTypesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.workspacesinstances.paginators.ListInstanceTypesIterable responses = client.listInstanceTypesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page. Note: If you prefer to have control on service calls, use the listInstanceTypes(software.amazon.awssdk.services.workspacesinstances.model.ListInstanceTypesRequest)operation.
 This is a convenience which creates an instance of the ListInstanceTypesRequest.Builderavoiding the need to create one manually viaListInstanceTypesRequest.builder()- Parameters:
- listInstanceTypesRequest- A- Consumerthat will call methods on- ListInstanceTypesRequest.Builderto create a request. Defines input parameters for retrieving supported WorkSpaces Instances instance types.
- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
 
- 
listRegionsdefault ListRegionsResponse listRegions(ListRegionsRequest listRegionsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkspacesInstancesException Retrieves a list of AWS regions supported by Amazon WorkSpaces Instances, enabling region discovery for workspace deployments. - Parameters:
- listRegionsRequest- Defines input parameters for retrieving supported WorkSpaces Instances regions.
- Returns:
- Result of the ListRegions operation returned by the service.
- See Also:
 
- 
listRegionsdefault ListRegionsResponse listRegions(Consumer<ListRegionsRequest.Builder> listRegionsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkspacesInstancesException Retrieves a list of AWS regions supported by Amazon WorkSpaces Instances, enabling region discovery for workspace deployments. 
 This is a convenience which creates an instance of the ListRegionsRequest.Builderavoiding the need to create one manually viaListRegionsRequest.builder()- Parameters:
- listRegionsRequest- A- Consumerthat will call methods on- ListRegionsRequest.Builderto create a request. Defines input parameters for retrieving supported WorkSpaces Instances regions.
- Returns:
- Result of the ListRegions operation returned by the service.
- See Also:
 
- 
listRegionsPaginatordefault ListRegionsIterable listRegionsPaginator(ListRegionsRequest listRegionsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkspacesInstancesException This is a variant of listRegions(software.amazon.awssdk.services.workspacesinstances.model.ListRegionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable. The following are few ways to iterate through the response pages: 1) Using a Stream
 2) Using For loopsoftware.amazon.awssdk.services.workspacesinstances.paginators.ListRegionsIterable responses = client.listRegionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.workspacesinstances.paginators.ListRegionsIterable responses = client .listRegionsPaginator(request); for (software.amazon.awssdk.services.workspacesinstances.model.ListRegionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.workspacesinstances.paginators.ListRegionsIterable responses = client.listRegionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page. Note: If you prefer to have control on service calls, use the listRegions(software.amazon.awssdk.services.workspacesinstances.model.ListRegionsRequest)operation.- Parameters:
- listRegionsRequest- Defines input parameters for retrieving supported WorkSpaces Instances regions.
- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
 
- 
listRegionsPaginatordefault ListRegionsIterable listRegionsPaginator(Consumer<ListRegionsRequest.Builder> listRegionsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkspacesInstancesException This is a variant of listRegions(software.amazon.awssdk.services.workspacesinstances.model.ListRegionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable. The following are few ways to iterate through the response pages: 1) Using a Stream
 2) Using For loopsoftware.amazon.awssdk.services.workspacesinstances.paginators.ListRegionsIterable responses = client.listRegionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.workspacesinstances.paginators.ListRegionsIterable responses = client .listRegionsPaginator(request); for (software.amazon.awssdk.services.workspacesinstances.model.ListRegionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.workspacesinstances.paginators.ListRegionsIterable responses = client.listRegionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page. Note: If you prefer to have control on service calls, use the listRegions(software.amazon.awssdk.services.workspacesinstances.model.ListRegionsRequest)operation.
 This is a convenience which creates an instance of the ListRegionsRequest.Builderavoiding the need to create one manually viaListRegionsRequest.builder()- Parameters:
- listRegionsRequest- A- Consumerthat will call methods on- ListRegionsRequest.Builderto create a request. Defines input parameters for retrieving supported WorkSpaces Instances regions.
- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
 
- 
listTagsForResourcedefault ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkspacesInstancesException Retrieves tags for a WorkSpace Instance. - Parameters:
- listTagsForResourceRequest- Specifies the WorkSpace Instance to retrieve tags for.
- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
 
- 
listTagsForResourcedefault ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkspacesInstancesException Retrieves tags for a WorkSpace Instance. 
 This is a convenience which creates an instance of the ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
- listTagsForResourceRequest- A- Consumerthat will call methods on- ListTagsForResourceRequest.Builderto create a request. Specifies the WorkSpace Instance to retrieve tags for.
- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
 
- 
listWorkspaceInstancesdefault ListWorkspaceInstancesResponse listWorkspaceInstances(ListWorkspaceInstancesRequest listWorkspaceInstancesRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkspacesInstancesException Retrieves a collection of WorkSpaces Instances based on specified filters. - Parameters:
- listWorkspaceInstancesRequest- Defines filters and pagination parameters for retrieving WorkSpaces Instances.
- Returns:
- Result of the ListWorkspaceInstances operation returned by the service.
- See Also:
 
- 
listWorkspaceInstancesdefault ListWorkspaceInstancesResponse listWorkspaceInstances(Consumer<ListWorkspaceInstancesRequest.Builder> listWorkspaceInstancesRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkspacesInstancesException Retrieves a collection of WorkSpaces Instances based on specified filters. 
 This is a convenience which creates an instance of the ListWorkspaceInstancesRequest.Builderavoiding the need to create one manually viaListWorkspaceInstancesRequest.builder()- Parameters:
- listWorkspaceInstancesRequest- A- Consumerthat will call methods on- ListWorkspaceInstancesRequest.Builderto create a request. Defines filters and pagination parameters for retrieving WorkSpaces Instances.
- Returns:
- Result of the ListWorkspaceInstances operation returned by the service.
- See Also:
 
- 
listWorkspaceInstancesPaginatordefault ListWorkspaceInstancesIterable listWorkspaceInstancesPaginator(ListWorkspaceInstancesRequest listWorkspaceInstancesRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkspacesInstancesException This is a variant of listWorkspaceInstances(software.amazon.awssdk.services.workspacesinstances.model.ListWorkspaceInstancesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable. The following are few ways to iterate through the response pages: 1) Using a Stream
 2) Using For loopsoftware.amazon.awssdk.services.workspacesinstances.paginators.ListWorkspaceInstancesIterable responses = client.listWorkspaceInstancesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.workspacesinstances.paginators.ListWorkspaceInstancesIterable responses = client .listWorkspaceInstancesPaginator(request); for (software.amazon.awssdk.services.workspacesinstances.model.ListWorkspaceInstancesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.workspacesinstances.paginators.ListWorkspaceInstancesIterable responses = client.listWorkspaceInstancesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page. Note: If you prefer to have control on service calls, use the listWorkspaceInstances(software.amazon.awssdk.services.workspacesinstances.model.ListWorkspaceInstancesRequest)operation.- Parameters:
- listWorkspaceInstancesRequest- Defines filters and pagination parameters for retrieving WorkSpaces Instances.
- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
 
- 
listWorkspaceInstancesPaginatordefault ListWorkspaceInstancesIterable listWorkspaceInstancesPaginator(Consumer<ListWorkspaceInstancesRequest.Builder> listWorkspaceInstancesRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkspacesInstancesException This is a variant of listWorkspaceInstances(software.amazon.awssdk.services.workspacesinstances.model.ListWorkspaceInstancesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable. The following are few ways to iterate through the response pages: 1) Using a Stream
 2) Using For loopsoftware.amazon.awssdk.services.workspacesinstances.paginators.ListWorkspaceInstancesIterable responses = client.listWorkspaceInstancesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.workspacesinstances.paginators.ListWorkspaceInstancesIterable responses = client .listWorkspaceInstancesPaginator(request); for (software.amazon.awssdk.services.workspacesinstances.model.ListWorkspaceInstancesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.workspacesinstances.paginators.ListWorkspaceInstancesIterable responses = client.listWorkspaceInstancesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page. Note: If you prefer to have control on service calls, use the listWorkspaceInstances(software.amazon.awssdk.services.workspacesinstances.model.ListWorkspaceInstancesRequest)operation.
 This is a convenience which creates an instance of the ListWorkspaceInstancesRequest.Builderavoiding the need to create one manually viaListWorkspaceInstancesRequest.builder()- Parameters:
- listWorkspaceInstancesRequest- A- Consumerthat will call methods on- ListWorkspaceInstancesRequest.Builderto create a request. Defines filters and pagination parameters for retrieving WorkSpaces Instances.
- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
 
- 
tagResourcedefault TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkspacesInstancesException Adds tags to a WorkSpace Instance. - Parameters:
- tagResourceRequest- Specifies tags to add to a WorkSpace Instance.
- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
 
- 
tagResourcedefault TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkspacesInstancesException Adds tags to a WorkSpace Instance. 
 This is a convenience which creates an instance of the TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
- tagResourceRequest- A- Consumerthat will call methods on- TagResourceRequest.Builderto create a request. Specifies tags to add to a WorkSpace Instance.
- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
 
- 
untagResourcedefault UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkspacesInstancesException Removes tags from a WorkSpace Instance. - Parameters:
- untagResourceRequest- Specifies tags to remove from a WorkSpace Instance.
- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
 
- 
untagResourcedefault UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkspacesInstancesException Removes tags from a WorkSpace Instance. 
 This is a convenience which creates an instance of the UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
- untagResourceRequest- A- Consumerthat will call methods on- UntagResourceRequest.Builderto create a request. Specifies tags to remove from a WorkSpace Instance.
- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
 
- 
createCreate aWorkspacesInstancesClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
- 
builderCreate a builder that can be used to configure and create aWorkspacesInstancesClient.
- 
serviceMetadata
- 
serviceClientConfigurationDescription copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
- serviceClientConfigurationin interface- AwsClient
- Specified by:
- serviceClientConfigurationin interface- SdkClient
- Returns:
- SdkServiceClientConfiguration
 
 
-