Interface WorkSpacesThinClientClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder()
method.
Amazon WorkSpaces Thin Client is an affordable device built to work with Amazon Web Services End User Computing (EUC) virtual desktops to provide users with a complete cloud desktop solution. WorkSpaces Thin Client is a compact device designed to connect up to two monitors and USB devices like a keyboard, mouse, headset, and webcam. To maximize endpoint security, WorkSpaces Thin Client devices do not allow local data storage or installation of unapproved applications. The WorkSpaces Thin Client device ships preloaded with device management software.
You can use these APIs to complete WorkSpaces Thin Client tasks, such as creating environments or viewing devices. For more information about WorkSpaces Thin Client, including the required permissions to use the service, see the Amazon WorkSpaces Thin Client Administrator Guide. For more information about using the Command Line Interface (CLI) to manage your WorkSpaces Thin Client resources, see the WorkSpaces Thin Client section of the CLI Reference.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a builder that can be used to configure and create aWorkSpacesThinClientClient.static WorkSpacesThinClientClientcreate()Create aWorkSpacesThinClientClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateEnvironmentResponsecreateEnvironment(Consumer<CreateEnvironmentRequest.Builder> createEnvironmentRequest) Creates an environment for your thin client devices.default CreateEnvironmentResponsecreateEnvironment(CreateEnvironmentRequest createEnvironmentRequest) Creates an environment for your thin client devices.default DeleteDeviceResponsedeleteDevice(Consumer<DeleteDeviceRequest.Builder> deleteDeviceRequest) Deletes a thin client device.default DeleteDeviceResponsedeleteDevice(DeleteDeviceRequest deleteDeviceRequest) Deletes a thin client device.default DeleteEnvironmentResponsedeleteEnvironment(Consumer<DeleteEnvironmentRequest.Builder> deleteEnvironmentRequest) Deletes an environment.default DeleteEnvironmentResponsedeleteEnvironment(DeleteEnvironmentRequest deleteEnvironmentRequest) Deletes an environment.default DeregisterDeviceResponsederegisterDevice(Consumer<DeregisterDeviceRequest.Builder> deregisterDeviceRequest) Deregisters a thin client device.default DeregisterDeviceResponsederegisterDevice(DeregisterDeviceRequest deregisterDeviceRequest) Deregisters a thin client device.default GetDeviceResponsegetDevice(Consumer<GetDeviceRequest.Builder> getDeviceRequest) Returns information for a thin client device.default GetDeviceResponsegetDevice(GetDeviceRequest getDeviceRequest) Returns information for a thin client device.default GetEnvironmentResponsegetEnvironment(Consumer<GetEnvironmentRequest.Builder> getEnvironmentRequest) Returns information for an environment.default GetEnvironmentResponsegetEnvironment(GetEnvironmentRequest getEnvironmentRequest) Returns information for an environment.default GetSoftwareSetResponsegetSoftwareSet(Consumer<GetSoftwareSetRequest.Builder> getSoftwareSetRequest) Returns information for a software set.default GetSoftwareSetResponsegetSoftwareSet(GetSoftwareSetRequest getSoftwareSetRequest) Returns information for a software set.default ListDevicesResponselistDevices(Consumer<ListDevicesRequest.Builder> listDevicesRequest) Returns a list of thin client devices.default ListDevicesResponselistDevices(ListDevicesRequest listDevicesRequest) Returns a list of thin client devices.default ListDevicesIterablelistDevicesPaginator(Consumer<ListDevicesRequest.Builder> listDevicesRequest) This is a variant oflistDevices(software.amazon.awssdk.services.workspacesthinclient.model.ListDevicesRequest)operation.default ListDevicesIterablelistDevicesPaginator(ListDevicesRequest listDevicesRequest) This is a variant oflistDevices(software.amazon.awssdk.services.workspacesthinclient.model.ListDevicesRequest)operation.default ListEnvironmentsResponselistEnvironments(Consumer<ListEnvironmentsRequest.Builder> listEnvironmentsRequest) Returns a list of environments.default ListEnvironmentsResponselistEnvironments(ListEnvironmentsRequest listEnvironmentsRequest) Returns a list of environments.default ListEnvironmentsIterablelistEnvironmentsPaginator(Consumer<ListEnvironmentsRequest.Builder> listEnvironmentsRequest) This is a variant oflistEnvironments(software.amazon.awssdk.services.workspacesthinclient.model.ListEnvironmentsRequest)operation.default ListEnvironmentsIterablelistEnvironmentsPaginator(ListEnvironmentsRequest listEnvironmentsRequest) This is a variant oflistEnvironments(software.amazon.awssdk.services.workspacesthinclient.model.ListEnvironmentsRequest)operation.default ListSoftwareSetsResponselistSoftwareSets(Consumer<ListSoftwareSetsRequest.Builder> listSoftwareSetsRequest) Returns a list of software sets.default ListSoftwareSetsResponselistSoftwareSets(ListSoftwareSetsRequest listSoftwareSetsRequest) Returns a list of software sets.default ListSoftwareSetsIterablelistSoftwareSetsPaginator(Consumer<ListSoftwareSetsRequest.Builder> listSoftwareSetsRequest) This is a variant oflistSoftwareSets(software.amazon.awssdk.services.workspacesthinclient.model.ListSoftwareSetsRequest)operation.default ListSoftwareSetsIterablelistSoftwareSetsPaginator(ListSoftwareSetsRequest listSoftwareSetsRequest) This is a variant oflistSoftwareSets(software.amazon.awssdk.services.workspacesthinclient.model.ListSoftwareSetsRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Returns a list of tags for a resource.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Returns a list of tags for a resource.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Assigns one or more tags (key-value pairs) to the specified resource.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Assigns one or more tags (key-value pairs) to the specified resource.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes a tag or tags from a resource.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Removes a tag or tags from a resource.default UpdateDeviceResponseupdateDevice(Consumer<UpdateDeviceRequest.Builder> updateDeviceRequest) Updates a thin client device.default UpdateDeviceResponseupdateDevice(UpdateDeviceRequest updateDeviceRequest) Updates a thin client device.default UpdateEnvironmentResponseupdateEnvironment(Consumer<UpdateEnvironmentRequest.Builder> updateEnvironmentRequest) Updates an environment.default UpdateEnvironmentResponseupdateEnvironment(UpdateEnvironmentRequest updateEnvironmentRequest) Updates an environment.default UpdateSoftwareSetResponseupdateSoftwareSet(Consumer<UpdateSoftwareSetRequest.Builder> updateSoftwareSetRequest) Updates a software set.default UpdateSoftwareSetResponseupdateSoftwareSet(UpdateSoftwareSetRequest updateSoftwareSetRequest) Updates a software set.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
Method Details
-
createEnvironment
default CreateEnvironmentResponse createEnvironment(CreateEnvironmentRequest createEnvironmentRequest) throws ServiceQuotaExceededException, ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Creates an environment for your thin client devices.
- Parameters:
createEnvironmentRequest-- Returns:
- Result of the CreateEnvironment operation returned by the service.
- See Also:
-
createEnvironment
default CreateEnvironmentResponse createEnvironment(Consumer<CreateEnvironmentRequest.Builder> createEnvironmentRequest) throws ServiceQuotaExceededException, ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Creates an environment for your thin client devices.
This is a convenience which creates an instance of the
CreateEnvironmentRequest.Builderavoiding the need to create one manually viaCreateEnvironmentRequest.builder()- Parameters:
createEnvironmentRequest- AConsumerthat will call methods onCreateEnvironmentRequest.Builderto create a request.- Returns:
- Result of the CreateEnvironment operation returned by the service.
- See Also:
-
deleteDevice
default DeleteDeviceResponse deleteDevice(DeleteDeviceRequest deleteDeviceRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Deletes a thin client device.
- Parameters:
deleteDeviceRequest-- Returns:
- Result of the DeleteDevice operation returned by the service.
- See Also:
-
deleteDevice
default DeleteDeviceResponse deleteDevice(Consumer<DeleteDeviceRequest.Builder> deleteDeviceRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Deletes a thin client device.
This is a convenience which creates an instance of the
DeleteDeviceRequest.Builderavoiding the need to create one manually viaDeleteDeviceRequest.builder()- Parameters:
deleteDeviceRequest- AConsumerthat will call methods onDeleteDeviceRequest.Builderto create a request.- Returns:
- Result of the DeleteDevice operation returned by the service.
- See Also:
-
deleteEnvironment
default DeleteEnvironmentResponse deleteEnvironment(DeleteEnvironmentRequest deleteEnvironmentRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Deletes an environment.
- Parameters:
deleteEnvironmentRequest-- Returns:
- Result of the DeleteEnvironment operation returned by the service.
- See Also:
-
deleteEnvironment
default DeleteEnvironmentResponse deleteEnvironment(Consumer<DeleteEnvironmentRequest.Builder> deleteEnvironmentRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Deletes an environment.
This is a convenience which creates an instance of the
DeleteEnvironmentRequest.Builderavoiding the need to create one manually viaDeleteEnvironmentRequest.builder()- Parameters:
deleteEnvironmentRequest- AConsumerthat will call methods onDeleteEnvironmentRequest.Builderto create a request.- Returns:
- Result of the DeleteEnvironment operation returned by the service.
- See Also:
-
deregisterDevice
default DeregisterDeviceResponse deregisterDevice(DeregisterDeviceRequest deregisterDeviceRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Deregisters a thin client device.
- Parameters:
deregisterDeviceRequest-- Returns:
- Result of the DeregisterDevice operation returned by the service.
- See Also:
-
deregisterDevice
default DeregisterDeviceResponse deregisterDevice(Consumer<DeregisterDeviceRequest.Builder> deregisterDeviceRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Deregisters a thin client device.
This is a convenience which creates an instance of the
DeregisterDeviceRequest.Builderavoiding the need to create one manually viaDeregisterDeviceRequest.builder()- Parameters:
deregisterDeviceRequest- AConsumerthat will call methods onDeregisterDeviceRequest.Builderto create a request.- Returns:
- Result of the DeregisterDevice operation returned by the service.
- See Also:
-
getDevice
default GetDeviceResponse getDevice(GetDeviceRequest getDeviceRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Returns information for a thin client device.
- Parameters:
getDeviceRequest-- Returns:
- Result of the GetDevice operation returned by the service.
- See Also:
-
getDevice
default GetDeviceResponse getDevice(Consumer<GetDeviceRequest.Builder> getDeviceRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Returns information for a thin client device.
This is a convenience which creates an instance of the
GetDeviceRequest.Builderavoiding the need to create one manually viaGetDeviceRequest.builder()- Parameters:
getDeviceRequest- AConsumerthat will call methods onGetDeviceRequest.Builderto create a request.- Returns:
- Result of the GetDevice operation returned by the service.
- See Also:
-
getEnvironment
default GetEnvironmentResponse getEnvironment(GetEnvironmentRequest getEnvironmentRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Returns information for an environment.
- Parameters:
getEnvironmentRequest-- Returns:
- Result of the GetEnvironment operation returned by the service.
- See Also:
-
getEnvironment
default GetEnvironmentResponse getEnvironment(Consumer<GetEnvironmentRequest.Builder> getEnvironmentRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Returns information for an environment.
This is a convenience which creates an instance of the
GetEnvironmentRequest.Builderavoiding the need to create one manually viaGetEnvironmentRequest.builder()- Parameters:
getEnvironmentRequest- AConsumerthat will call methods onGetEnvironmentRequest.Builderto create a request.- Returns:
- Result of the GetEnvironment operation returned by the service.
- See Also:
-
getSoftwareSet
default GetSoftwareSetResponse getSoftwareSet(GetSoftwareSetRequest getSoftwareSetRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Returns information for a software set.
- Parameters:
getSoftwareSetRequest-- Returns:
- Result of the GetSoftwareSet operation returned by the service.
- See Also:
-
getSoftwareSet
default GetSoftwareSetResponse getSoftwareSet(Consumer<GetSoftwareSetRequest.Builder> getSoftwareSetRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Returns information for a software set.
This is a convenience which creates an instance of the
GetSoftwareSetRequest.Builderavoiding the need to create one manually viaGetSoftwareSetRequest.builder()- Parameters:
getSoftwareSetRequest- AConsumerthat will call methods onGetSoftwareSetRequest.Builderto create a request.- Returns:
- Result of the GetSoftwareSet operation returned by the service.
- See Also:
-
listDevices
default ListDevicesResponse listDevices(ListDevicesRequest listDevicesRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Returns a list of thin client devices.
- Parameters:
listDevicesRequest-- Returns:
- Result of the ListDevices operation returned by the service.
- See Also:
-
listDevices
default ListDevicesResponse listDevices(Consumer<ListDevicesRequest.Builder> listDevicesRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Returns a list of thin client devices.
This is a convenience which creates an instance of the
ListDevicesRequest.Builderavoiding the need to create one manually viaListDevicesRequest.builder()- Parameters:
listDevicesRequest- AConsumerthat will call methods onListDevicesRequest.Builderto create a request.- Returns:
- Result of the ListDevices operation returned by the service.
- See Also:
-
listDevicesPaginator
default ListDevicesIterable listDevicesPaginator(ListDevicesRequest listDevicesRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException This is a variant of
listDevices(software.amazon.awssdk.services.workspacesthinclient.model.ListDevicesRequest)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.workspacesthinclient.paginators.ListDevicesIterable responses = client.listDevicesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.workspacesthinclient.paginators.ListDevicesIterable responses = client .listDevicesPaginator(request); for (software.amazon.awssdk.services.workspacesthinclient.model.ListDevicesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.workspacesthinclient.paginators.ListDevicesIterable responses = client.listDevicesPaginator(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
listDevices(software.amazon.awssdk.services.workspacesthinclient.model.ListDevicesRequest)operation.- Parameters:
listDevicesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listDevicesPaginator
default ListDevicesIterable listDevicesPaginator(Consumer<ListDevicesRequest.Builder> listDevicesRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException This is a variant of
listDevices(software.amazon.awssdk.services.workspacesthinclient.model.ListDevicesRequest)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.workspacesthinclient.paginators.ListDevicesIterable responses = client.listDevicesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.workspacesthinclient.paginators.ListDevicesIterable responses = client .listDevicesPaginator(request); for (software.amazon.awssdk.services.workspacesthinclient.model.ListDevicesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.workspacesthinclient.paginators.ListDevicesIterable responses = client.listDevicesPaginator(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
listDevices(software.amazon.awssdk.services.workspacesthinclient.model.ListDevicesRequest)operation.
This is a convenience which creates an instance of the
ListDevicesRequest.Builderavoiding the need to create one manually viaListDevicesRequest.builder()- Parameters:
listDevicesRequest- AConsumerthat will call methods onListDevicesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listEnvironments
default ListEnvironmentsResponse listEnvironments(ListEnvironmentsRequest listEnvironmentsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Returns a list of environments.
- Parameters:
listEnvironmentsRequest-- Returns:
- Result of the ListEnvironments operation returned by the service.
- See Also:
-
listEnvironments
default ListEnvironmentsResponse listEnvironments(Consumer<ListEnvironmentsRequest.Builder> listEnvironmentsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Returns a list of environments.
This is a convenience which creates an instance of the
ListEnvironmentsRequest.Builderavoiding the need to create one manually viaListEnvironmentsRequest.builder()- Parameters:
listEnvironmentsRequest- AConsumerthat will call methods onListEnvironmentsRequest.Builderto create a request.- Returns:
- Result of the ListEnvironments operation returned by the service.
- See Also:
-
listEnvironmentsPaginator
default ListEnvironmentsIterable listEnvironmentsPaginator(ListEnvironmentsRequest listEnvironmentsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException This is a variant of
listEnvironments(software.amazon.awssdk.services.workspacesthinclient.model.ListEnvironmentsRequest)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.workspacesthinclient.paginators.ListEnvironmentsIterable responses = client.listEnvironmentsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.workspacesthinclient.paginators.ListEnvironmentsIterable responses = client .listEnvironmentsPaginator(request); for (software.amazon.awssdk.services.workspacesthinclient.model.ListEnvironmentsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.workspacesthinclient.paginators.ListEnvironmentsIterable responses = client.listEnvironmentsPaginator(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
listEnvironments(software.amazon.awssdk.services.workspacesthinclient.model.ListEnvironmentsRequest)operation.- Parameters:
listEnvironmentsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listEnvironmentsPaginator
default ListEnvironmentsIterable listEnvironmentsPaginator(Consumer<ListEnvironmentsRequest.Builder> listEnvironmentsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException This is a variant of
listEnvironments(software.amazon.awssdk.services.workspacesthinclient.model.ListEnvironmentsRequest)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.workspacesthinclient.paginators.ListEnvironmentsIterable responses = client.listEnvironmentsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.workspacesthinclient.paginators.ListEnvironmentsIterable responses = client .listEnvironmentsPaginator(request); for (software.amazon.awssdk.services.workspacesthinclient.model.ListEnvironmentsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.workspacesthinclient.paginators.ListEnvironmentsIterable responses = client.listEnvironmentsPaginator(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
listEnvironments(software.amazon.awssdk.services.workspacesthinclient.model.ListEnvironmentsRequest)operation.
This is a convenience which creates an instance of the
ListEnvironmentsRequest.Builderavoiding the need to create one manually viaListEnvironmentsRequest.builder()- Parameters:
listEnvironmentsRequest- AConsumerthat will call methods onListEnvironmentsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listSoftwareSets
default ListSoftwareSetsResponse listSoftwareSets(ListSoftwareSetsRequest listSoftwareSetsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Returns a list of software sets.
- Parameters:
listSoftwareSetsRequest-- Returns:
- Result of the ListSoftwareSets operation returned by the service.
- See Also:
-
listSoftwareSets
default ListSoftwareSetsResponse listSoftwareSets(Consumer<ListSoftwareSetsRequest.Builder> listSoftwareSetsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Returns a list of software sets.
This is a convenience which creates an instance of the
ListSoftwareSetsRequest.Builderavoiding the need to create one manually viaListSoftwareSetsRequest.builder()- Parameters:
listSoftwareSetsRequest- AConsumerthat will call methods onListSoftwareSetsRequest.Builderto create a request.- Returns:
- Result of the ListSoftwareSets operation returned by the service.
- See Also:
-
listSoftwareSetsPaginator
default ListSoftwareSetsIterable listSoftwareSetsPaginator(ListSoftwareSetsRequest listSoftwareSetsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException This is a variant of
listSoftwareSets(software.amazon.awssdk.services.workspacesthinclient.model.ListSoftwareSetsRequest)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.workspacesthinclient.paginators.ListSoftwareSetsIterable responses = client.listSoftwareSetsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.workspacesthinclient.paginators.ListSoftwareSetsIterable responses = client .listSoftwareSetsPaginator(request); for (software.amazon.awssdk.services.workspacesthinclient.model.ListSoftwareSetsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.workspacesthinclient.paginators.ListSoftwareSetsIterable responses = client.listSoftwareSetsPaginator(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
listSoftwareSets(software.amazon.awssdk.services.workspacesthinclient.model.ListSoftwareSetsRequest)operation.- Parameters:
listSoftwareSetsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listSoftwareSetsPaginator
default ListSoftwareSetsIterable listSoftwareSetsPaginator(Consumer<ListSoftwareSetsRequest.Builder> listSoftwareSetsRequest) throws ValidationException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException This is a variant of
listSoftwareSets(software.amazon.awssdk.services.workspacesthinclient.model.ListSoftwareSetsRequest)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.workspacesthinclient.paginators.ListSoftwareSetsIterable responses = client.listSoftwareSetsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.workspacesthinclient.paginators.ListSoftwareSetsIterable responses = client .listSoftwareSetsPaginator(request); for (software.amazon.awssdk.services.workspacesthinclient.model.ListSoftwareSetsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.workspacesthinclient.paginators.ListSoftwareSetsIterable responses = client.listSoftwareSetsPaginator(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
listSoftwareSets(software.amazon.awssdk.services.workspacesthinclient.model.ListSoftwareSetsRequest)operation.
This is a convenience which creates an instance of the
ListSoftwareSetsRequest.Builderavoiding the need to create one manually viaListSoftwareSetsRequest.builder()- Parameters:
listSoftwareSetsRequest- AConsumerthat will call methods onListSoftwareSetsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Returns a list of tags for a resource.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Returns a list of tags for a resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Assigns one or more tags (key-value pairs) to the specified resource.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Assigns one or more tags (key-value pairs) to the specified resource.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Removes a tag or tags from a resource.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ConflictException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Removes a tag or tags from a resource.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
updateDevice
default UpdateDeviceResponse updateDevice(UpdateDeviceRequest updateDeviceRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Updates a thin client device.
- Parameters:
updateDeviceRequest-- Returns:
- Result of the UpdateDevice operation returned by the service.
- See Also:
-
updateDevice
default UpdateDeviceResponse updateDevice(Consumer<UpdateDeviceRequest.Builder> updateDeviceRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Updates a thin client device.
This is a convenience which creates an instance of the
UpdateDeviceRequest.Builderavoiding the need to create one manually viaUpdateDeviceRequest.builder()- Parameters:
updateDeviceRequest- AConsumerthat will call methods onUpdateDeviceRequest.Builderto create a request.- Returns:
- Result of the UpdateDevice operation returned by the service.
- See Also:
-
updateEnvironment
default UpdateEnvironmentResponse updateEnvironment(UpdateEnvironmentRequest updateEnvironmentRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Updates an environment.
- Parameters:
updateEnvironmentRequest-- Returns:
- Result of the UpdateEnvironment operation returned by the service.
- See Also:
-
updateEnvironment
default UpdateEnvironmentResponse updateEnvironment(Consumer<UpdateEnvironmentRequest.Builder> updateEnvironmentRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Updates an environment.
This is a convenience which creates an instance of the
UpdateEnvironmentRequest.Builderavoiding the need to create one manually viaUpdateEnvironmentRequest.builder()- Parameters:
updateEnvironmentRequest- AConsumerthat will call methods onUpdateEnvironmentRequest.Builderto create a request.- Returns:
- Result of the UpdateEnvironment operation returned by the service.
- See Also:
-
updateSoftwareSet
default UpdateSoftwareSetResponse updateSoftwareSet(UpdateSoftwareSetRequest updateSoftwareSetRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Updates a software set.
- Parameters:
updateSoftwareSetRequest-- Returns:
- Result of the UpdateSoftwareSet operation returned by the service.
- See Also:
-
updateSoftwareSet
default UpdateSoftwareSetResponse updateSoftwareSet(Consumer<UpdateSoftwareSetRequest.Builder> updateSoftwareSetRequest) throws ValidationException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, WorkSpacesThinClientException Updates a software set.
This is a convenience which creates an instance of the
UpdateSoftwareSetRequest.Builderavoiding the need to create one manually viaUpdateSoftwareSetRequest.builder()- Parameters:
updateSoftwareSetRequest- AConsumerthat will call methods onUpdateSoftwareSetRequest.Builderto create a request.- Returns:
- Result of the UpdateSoftwareSet operation returned by the service.
- See Also:
-
create
Create aWorkSpacesThinClientClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aWorkSpacesThinClientClient. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-