Interface ConnectHealthClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
Health Agent for healthcare providers and patient engagement
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptiondefault ActivateSubscriptionResponseactivateSubscription(Consumer<ActivateSubscriptionRequest.Builder> activateSubscriptionRequest) Activates a Subscription to enable billing for a user.default ActivateSubscriptionResponseactivateSubscription(ActivateSubscriptionRequest activateSubscriptionRequest) Activates a Subscription to enable billing for a user.static ConnectHealthClientBuilderbuilder()Create a builder that can be used to configure and create aConnectHealthClient.static ConnectHealthClientcreate()Create aConnectHealthClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateDomainResponsecreateDomain(Consumer<CreateDomainRequest.Builder> createDomainRequest) Creates a new Domain for managing HealthAgent resources.default CreateDomainResponsecreateDomain(CreateDomainRequest createDomainRequest) Creates a new Domain for managing HealthAgent resources.default CreateSubscriptionResponsecreateSubscription(Consumer<CreateSubscriptionRequest.Builder> createSubscriptionRequest) Creates a new Subscription within a Domain for billing and user management.default CreateSubscriptionResponsecreateSubscription(CreateSubscriptionRequest createSubscriptionRequest) Creates a new Subscription within a Domain for billing and user management.default DeactivateSubscriptionResponsedeactivateSubscription(Consumer<DeactivateSubscriptionRequest.Builder> deactivateSubscriptionRequest) Deactivates a Subscription to stop billing for a user.default DeactivateSubscriptionResponsedeactivateSubscription(DeactivateSubscriptionRequest deactivateSubscriptionRequest) Deactivates a Subscription to stop billing for a user.default DeleteDomainResponsedeleteDomain(Consumer<DeleteDomainRequest.Builder> deleteDomainRequest) Deletes a Domain and all associated resources.default DeleteDomainResponsedeleteDomain(DeleteDomainRequest deleteDomainRequest) Deletes a Domain and all associated resources.default GetDomainResponsegetDomain(Consumer<GetDomainRequest.Builder> getDomainRequest) Retrieves information about a Domain.default GetDomainResponsegetDomain(GetDomainRequest getDomainRequest) Retrieves information about a Domain.getMedicalScribeListeningSession(Consumer<GetMedicalScribeListeningSessionRequest.Builder> getMedicalScribeListeningSessionRequest) Retrieves details about an existing Medical Scribe listening sessiongetMedicalScribeListeningSession(GetMedicalScribeListeningSessionRequest getMedicalScribeListeningSessionRequest) Retrieves details about an existing Medical Scribe listening sessiondefault GetPatientInsightsJobResponsegetPatientInsightsJob(Consumer<GetPatientInsightsJobRequest.Builder> getPatientInsightsJobRequest) Get details of a started patient insights job.default GetPatientInsightsJobResponsegetPatientInsightsJob(GetPatientInsightsJobRequest getPatientInsightsJobRequest) Get details of a started patient insights job.default GetSubscriptionResponsegetSubscription(Consumer<GetSubscriptionRequest.Builder> getSubscriptionRequest) Retrieves information about a Subscription.default GetSubscriptionResponsegetSubscription(GetSubscriptionRequest getSubscriptionRequest) Retrieves information about a Subscription.default ListDomainsResponselistDomains(Consumer<ListDomainsRequest.Builder> listDomainsRequest) Lists Domains for a given account.default ListDomainsResponselistDomains(ListDomainsRequest listDomainsRequest) Lists Domains for a given account.default ListDomainsIterablelistDomainsPaginator(Consumer<ListDomainsRequest.Builder> listDomainsRequest) This is a variant oflistDomains(software.amazon.awssdk.services.connecthealth.model.ListDomainsRequest)operation.default ListDomainsIterablelistDomainsPaginator(ListDomainsRequest listDomainsRequest) This is a variant oflistDomains(software.amazon.awssdk.services.connecthealth.model.ListDomainsRequest)operation.default ListSubscriptionsResponselistSubscriptions(Consumer<ListSubscriptionsRequest.Builder> listSubscriptionsRequest) Lists all Subscriptions within a Domain.default ListSubscriptionsResponselistSubscriptions(ListSubscriptionsRequest listSubscriptionsRequest) Lists all Subscriptions within a Domain.default ListSubscriptionsIterablelistSubscriptionsPaginator(Consumer<ListSubscriptionsRequest.Builder> listSubscriptionsRequest) This is a variant oflistSubscriptions(software.amazon.awssdk.services.connecthealth.model.ListSubscriptionsRequest)operation.default ListSubscriptionsIterablelistSubscriptionsPaginator(ListSubscriptionsRequest listSubscriptionsRequest) This is a variant oflistSubscriptions(software.amazon.awssdk.services.connecthealth.model.ListSubscriptionsRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists the tags associated with the specified resourcedefault ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists the tags associated with the specified resourceThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault StartPatientInsightsJobResponsestartPatientInsightsJob(Consumer<StartPatientInsightsJobRequest.Builder> startPatientInsightsJobRequest) Starts a new patient insights job.default StartPatientInsightsJobResponsestartPatientInsightsJob(StartPatientInsightsJobRequest startPatientInsightsJobRequest) Starts a new patient insights job.default TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Associates the specified tags with the specified resourcedefault TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Associates the specified tags with the specified resourcedefault UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes the specified tags from the specified resourcedefault UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Removes the specified tags from the specified resourceMethods 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
-
activateSubscription
default ActivateSubscriptionResponse activateSubscription(ActivateSubscriptionRequest activateSubscriptionRequest) throws InternalServerException, ResourceNotFoundException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, ConnectHealthException Activates a Subscription to enable billing for a user.
- Parameters:
activateSubscriptionRequest-- Returns:
- Result of the ActivateSubscription operation returned by the service.
- See Also:
-
activateSubscription
default ActivateSubscriptionResponse activateSubscription(Consumer<ActivateSubscriptionRequest.Builder> activateSubscriptionRequest) throws InternalServerException, ResourceNotFoundException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, ConnectHealthException Activates a Subscription to enable billing for a user.
This is a convenience which creates an instance of the
ActivateSubscriptionRequest.Builderavoiding the need to create one manually viaActivateSubscriptionRequest.builder()- Parameters:
activateSubscriptionRequest- AConsumerthat will call methods onActivateSubscriptionRequest.Builderto create a request.- Returns:
- Result of the ActivateSubscription operation returned by the service.
- See Also:
-
createDomain
default CreateDomainResponse createDomain(CreateDomainRequest createDomainRequest) throws ServiceQuotaExceededException, AwsServiceException, SdkClientException, ConnectHealthException Creates a new Domain for managing HealthAgent resources.
- Parameters:
createDomainRequest-- Returns:
- Result of the CreateDomain operation returned by the service.
- See Also:
-
createDomain
default CreateDomainResponse createDomain(Consumer<CreateDomainRequest.Builder> createDomainRequest) throws ServiceQuotaExceededException, AwsServiceException, SdkClientException, ConnectHealthException Creates a new Domain for managing HealthAgent resources.
This is a convenience which creates an instance of the
CreateDomainRequest.Builderavoiding the need to create one manually viaCreateDomainRequest.builder()- Parameters:
createDomainRequest- AConsumerthat will call methods onCreateDomainRequest.Builderto create a request.- Returns:
- Result of the CreateDomain operation returned by the service.
- See Also:
-
createSubscription
default CreateSubscriptionResponse createSubscription(CreateSubscriptionRequest createSubscriptionRequest) throws InternalServerException, ResourceNotFoundException, AccessDeniedException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ConnectHealthException Creates a new Subscription within a Domain for billing and user management.
- Parameters:
createSubscriptionRequest-- Returns:
- Result of the CreateSubscription operation returned by the service.
- See Also:
-
createSubscription
default CreateSubscriptionResponse createSubscription(Consumer<CreateSubscriptionRequest.Builder> createSubscriptionRequest) throws InternalServerException, ResourceNotFoundException, AccessDeniedException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ConnectHealthException Creates a new Subscription within a Domain for billing and user management.
This is a convenience which creates an instance of the
CreateSubscriptionRequest.Builderavoiding the need to create one manually viaCreateSubscriptionRequest.builder()- Parameters:
createSubscriptionRequest- AConsumerthat will call methods onCreateSubscriptionRequest.Builderto create a request.- Returns:
- Result of the CreateSubscription operation returned by the service.
- See Also:
-
deactivateSubscription
default DeactivateSubscriptionResponse deactivateSubscription(DeactivateSubscriptionRequest deactivateSubscriptionRequest) throws InternalServerException, ResourceNotFoundException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, ConnectHealthException Deactivates a Subscription to stop billing for a user.
- Parameters:
deactivateSubscriptionRequest-- Returns:
- Result of the DeactivateSubscription operation returned by the service.
- See Also:
-
deactivateSubscription
default DeactivateSubscriptionResponse deactivateSubscription(Consumer<DeactivateSubscriptionRequest.Builder> deactivateSubscriptionRequest) throws InternalServerException, ResourceNotFoundException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, ConnectHealthException Deactivates a Subscription to stop billing for a user.
This is a convenience which creates an instance of the
DeactivateSubscriptionRequest.Builderavoiding the need to create one manually viaDeactivateSubscriptionRequest.builder()- Parameters:
deactivateSubscriptionRequest- AConsumerthat will call methods onDeactivateSubscriptionRequest.Builderto create a request.- Returns:
- Result of the DeactivateSubscription operation returned by the service.
- See Also:
-
deleteDomain
default DeleteDomainResponse deleteDomain(DeleteDomainRequest deleteDomainRequest) throws ResourceNotFoundException, AwsServiceException, SdkClientException, ConnectHealthException Deletes a Domain and all associated resources.
- Parameters:
deleteDomainRequest-- Returns:
- Result of the DeleteDomain operation returned by the service.
- See Also:
-
deleteDomain
default DeleteDomainResponse deleteDomain(Consumer<DeleteDomainRequest.Builder> deleteDomainRequest) throws ResourceNotFoundException, AwsServiceException, SdkClientException, ConnectHealthException Deletes a Domain and all associated resources.
This is a convenience which creates an instance of the
DeleteDomainRequest.Builderavoiding the need to create one manually viaDeleteDomainRequest.builder()- Parameters:
deleteDomainRequest- AConsumerthat will call methods onDeleteDomainRequest.Builderto create a request.- Returns:
- Result of the DeleteDomain operation returned by the service.
- See Also:
-
getDomain
default GetDomainResponse getDomain(GetDomainRequest getDomainRequest) throws ResourceNotFoundException, AwsServiceException, SdkClientException, ConnectHealthException Retrieves information about a Domain.
- Parameters:
getDomainRequest-- Returns:
- Result of the GetDomain operation returned by the service.
- See Also:
-
getDomain
default GetDomainResponse getDomain(Consumer<GetDomainRequest.Builder> getDomainRequest) throws ResourceNotFoundException, AwsServiceException, SdkClientException, ConnectHealthException Retrieves information about a Domain.
This is a convenience which creates an instance of the
GetDomainRequest.Builderavoiding the need to create one manually viaGetDomainRequest.builder()- Parameters:
getDomainRequest- AConsumerthat will call methods onGetDomainRequest.Builderto create a request.- Returns:
- Result of the GetDomain operation returned by the service.
- See Also:
-
getMedicalScribeListeningSession
default GetMedicalScribeListeningSessionResponse getMedicalScribeListeningSession(GetMedicalScribeListeningSessionRequest getMedicalScribeListeningSessionRequest) throws InternalServerException, ResourceNotFoundException, AccessDeniedException, ThrottlingException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ConnectHealthException Retrieves details about an existing Medical Scribe listening session
- Parameters:
getMedicalScribeListeningSessionRequest-- Returns:
- Result of the GetMedicalScribeListeningSession operation returned by the service.
- See Also:
-
getMedicalScribeListeningSession
default GetMedicalScribeListeningSessionResponse getMedicalScribeListeningSession(Consumer<GetMedicalScribeListeningSessionRequest.Builder> getMedicalScribeListeningSessionRequest) throws InternalServerException, ResourceNotFoundException, AccessDeniedException, ThrottlingException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ConnectHealthException Retrieves details about an existing Medical Scribe listening session
This is a convenience which creates an instance of the
GetMedicalScribeListeningSessionRequest.Builderavoiding the need to create one manually viaGetMedicalScribeListeningSessionRequest.builder()- Parameters:
getMedicalScribeListeningSessionRequest- AConsumerthat will call methods onGetMedicalScribeListeningSessionRequest.Builderto create a request.- Returns:
- Result of the GetMedicalScribeListeningSession operation returned by the service.
- See Also:
-
getPatientInsightsJob
default GetPatientInsightsJobResponse getPatientInsightsJob(GetPatientInsightsJobRequest getPatientInsightsJobRequest) throws InternalServerException, ResourceNotFoundException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, ConnectHealthException Get details of a started patient insights job.
- Parameters:
getPatientInsightsJobRequest-- Returns:
- Result of the GetPatientInsightsJob operation returned by the service.
- See Also:
-
getPatientInsightsJob
default GetPatientInsightsJobResponse getPatientInsightsJob(Consumer<GetPatientInsightsJobRequest.Builder> getPatientInsightsJobRequest) throws InternalServerException, ResourceNotFoundException, AccessDeniedException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, ConnectHealthException Get details of a started patient insights job.
This is a convenience which creates an instance of the
GetPatientInsightsJobRequest.Builderavoiding the need to create one manually viaGetPatientInsightsJobRequest.builder()- Parameters:
getPatientInsightsJobRequest- AConsumerthat will call methods onGetPatientInsightsJobRequest.Builderto create a request.- Returns:
- Result of the GetPatientInsightsJob operation returned by the service.
- See Also:
-
getSubscription
default GetSubscriptionResponse getSubscription(GetSubscriptionRequest getSubscriptionRequest) throws InternalServerException, ResourceNotFoundException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, ConnectHealthException Retrieves information about a Subscription.
- Parameters:
getSubscriptionRequest-- Returns:
- Result of the GetSubscription operation returned by the service.
- See Also:
-
getSubscription
default GetSubscriptionResponse getSubscription(Consumer<GetSubscriptionRequest.Builder> getSubscriptionRequest) throws InternalServerException, ResourceNotFoundException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, ConnectHealthException Retrieves information about a Subscription.
This is a convenience which creates an instance of the
GetSubscriptionRequest.Builderavoiding the need to create one manually viaGetSubscriptionRequest.builder()- Parameters:
getSubscriptionRequest- AConsumerthat will call methods onGetSubscriptionRequest.Builderto create a request.- Returns:
- Result of the GetSubscription operation returned by the service.
- See Also:
-
listDomains
default ListDomainsResponse listDomains(ListDomainsRequest listDomainsRequest) throws AwsServiceException, SdkClientException, ConnectHealthException Lists Domains for a given account.
- Parameters:
listDomainsRequest-- Returns:
- Result of the ListDomains operation returned by the service.
- See Also:
-
listDomains
default ListDomainsResponse listDomains(Consumer<ListDomainsRequest.Builder> listDomainsRequest) throws AwsServiceException, SdkClientException, ConnectHealthException Lists Domains for a given account.
This is a convenience which creates an instance of the
ListDomainsRequest.Builderavoiding the need to create one manually viaListDomainsRequest.builder()- Parameters:
listDomainsRequest- AConsumerthat will call methods onListDomainsRequest.Builderto create a request.- Returns:
- Result of the ListDomains operation returned by the service.
- See Also:
-
listDomainsPaginator
default ListDomainsIterable listDomainsPaginator(ListDomainsRequest listDomainsRequest) throws AwsServiceException, SdkClientException, ConnectHealthException This is a variant of
listDomains(software.amazon.awssdk.services.connecthealth.model.ListDomainsRequest)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.connecthealth.paginators.ListDomainsIterable responses = client.listDomainsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.connecthealth.paginators.ListDomainsIterable responses = client.listDomainsPaginator(request); for (software.amazon.awssdk.services.connecthealth.model.ListDomainsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.connecthealth.paginators.ListDomainsIterable responses = client.listDomainsPaginator(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
listDomains(software.amazon.awssdk.services.connecthealth.model.ListDomainsRequest)operation.- Parameters:
listDomainsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listDomainsPaginator
default ListDomainsIterable listDomainsPaginator(Consumer<ListDomainsRequest.Builder> listDomainsRequest) throws AwsServiceException, SdkClientException, ConnectHealthException This is a variant of
listDomains(software.amazon.awssdk.services.connecthealth.model.ListDomainsRequest)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.connecthealth.paginators.ListDomainsIterable responses = client.listDomainsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.connecthealth.paginators.ListDomainsIterable responses = client.listDomainsPaginator(request); for (software.amazon.awssdk.services.connecthealth.model.ListDomainsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.connecthealth.paginators.ListDomainsIterable responses = client.listDomainsPaginator(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
listDomains(software.amazon.awssdk.services.connecthealth.model.ListDomainsRequest)operation.
This is a convenience which creates an instance of the
ListDomainsRequest.Builderavoiding the need to create one manually viaListDomainsRequest.builder()- Parameters:
listDomainsRequest- AConsumerthat will call methods onListDomainsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listSubscriptions
default ListSubscriptionsResponse listSubscriptions(ListSubscriptionsRequest listSubscriptionsRequest) throws InternalServerException, ResourceNotFoundException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, ConnectHealthException Lists all Subscriptions within a Domain.
- Parameters:
listSubscriptionsRequest-- Returns:
- Result of the ListSubscriptions operation returned by the service.
- See Also:
-
listSubscriptions
default ListSubscriptionsResponse listSubscriptions(Consumer<ListSubscriptionsRequest.Builder> listSubscriptionsRequest) throws InternalServerException, ResourceNotFoundException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, ConnectHealthException Lists all Subscriptions within a Domain.
This is a convenience which creates an instance of the
ListSubscriptionsRequest.Builderavoiding the need to create one manually viaListSubscriptionsRequest.builder()- Parameters:
listSubscriptionsRequest- AConsumerthat will call methods onListSubscriptionsRequest.Builderto create a request.- Returns:
- Result of the ListSubscriptions operation returned by the service.
- See Also:
-
listSubscriptionsPaginator
default ListSubscriptionsIterable listSubscriptionsPaginator(ListSubscriptionsRequest listSubscriptionsRequest) throws InternalServerException, ResourceNotFoundException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, ConnectHealthException This is a variant of
listSubscriptions(software.amazon.awssdk.services.connecthealth.model.ListSubscriptionsRequest)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.connecthealth.paginators.ListSubscriptionsIterable responses = client.listSubscriptionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.connecthealth.paginators.ListSubscriptionsIterable responses = client .listSubscriptionsPaginator(request); for (software.amazon.awssdk.services.connecthealth.model.ListSubscriptionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.connecthealth.paginators.ListSubscriptionsIterable responses = client.listSubscriptionsPaginator(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
listSubscriptions(software.amazon.awssdk.services.connecthealth.model.ListSubscriptionsRequest)operation.- Parameters:
listSubscriptionsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listSubscriptionsPaginator
default ListSubscriptionsIterable listSubscriptionsPaginator(Consumer<ListSubscriptionsRequest.Builder> listSubscriptionsRequest) throws InternalServerException, ResourceNotFoundException, AccessDeniedException, ValidationException, AwsServiceException, SdkClientException, ConnectHealthException This is a variant of
listSubscriptions(software.amazon.awssdk.services.connecthealth.model.ListSubscriptionsRequest)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.connecthealth.paginators.ListSubscriptionsIterable responses = client.listSubscriptionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.connecthealth.paginators.ListSubscriptionsIterable responses = client .listSubscriptionsPaginator(request); for (software.amazon.awssdk.services.connecthealth.model.ListSubscriptionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.connecthealth.paginators.ListSubscriptionsIterable responses = client.listSubscriptionsPaginator(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
listSubscriptions(software.amazon.awssdk.services.connecthealth.model.ListSubscriptionsRequest)operation.
This is a convenience which creates an instance of the
ListSubscriptionsRequest.Builderavoiding the need to create one manually viaListSubscriptionsRequest.builder()- Parameters:
listSubscriptionsRequest- AConsumerthat will call methods onListSubscriptionsRequest.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 AwsServiceException, SdkClientException, ConnectHealthException Lists the tags associated with the specified resource
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws AwsServiceException, SdkClientException, ConnectHealthException Lists the tags associated with the specified 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:
-
startPatientInsightsJob
default StartPatientInsightsJobResponse startPatientInsightsJob(StartPatientInsightsJobRequest startPatientInsightsJobRequest) throws InternalServerException, ResourceNotFoundException, AccessDeniedException, ValidationException, ThrottlingException, ConflictException, AwsServiceException, SdkClientException, ConnectHealthException Starts a new patient insights job.
- Parameters:
startPatientInsightsJobRequest-- Returns:
- Result of the StartPatientInsightsJob operation returned by the service.
- See Also:
-
startPatientInsightsJob
default StartPatientInsightsJobResponse startPatientInsightsJob(Consumer<StartPatientInsightsJobRequest.Builder> startPatientInsightsJobRequest) throws InternalServerException, ResourceNotFoundException, AccessDeniedException, ValidationException, ThrottlingException, ConflictException, AwsServiceException, SdkClientException, ConnectHealthException Starts a new patient insights job.
This is a convenience which creates an instance of the
StartPatientInsightsJobRequest.Builderavoiding the need to create one manually viaStartPatientInsightsJobRequest.builder()- Parameters:
startPatientInsightsJobRequest- AConsumerthat will call methods onStartPatientInsightsJobRequest.Builderto create a request.- Returns:
- Result of the StartPatientInsightsJob operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws AwsServiceException, SdkClientException, ConnectHealthException Associates the specified tags with 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 AwsServiceException, SdkClientException, ConnectHealthException Associates the specified tags with 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 AwsServiceException, SdkClientException, ConnectHealthException Removes the specified tags from the specified resource
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws AwsServiceException, SdkClientException, ConnectHealthException Removes the specified tags from the specified 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:
-
create
Create aConnectHealthClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aConnectHealthClient. -
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
-