software.amazon.awssdk.services.healthlake.HealthLakeClient Maven / Gradle / Ivy
Show all versions of healthlake Show documentation
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package software.amazon.awssdk.services.healthlake;
import java.util.function.Consumer;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.annotations.SdkPublicApi;
import software.amazon.awssdk.annotations.ThreadSafe;
import software.amazon.awssdk.awscore.AwsClient;
import software.amazon.awssdk.awscore.exception.AwsServiceException;
import software.amazon.awssdk.core.exception.SdkClientException;
import software.amazon.awssdk.regions.ServiceMetadata;
import software.amazon.awssdk.services.healthlake.model.AccessDeniedException;
import software.amazon.awssdk.services.healthlake.model.ConflictException;
import software.amazon.awssdk.services.healthlake.model.CreateFhirDatastoreRequest;
import software.amazon.awssdk.services.healthlake.model.CreateFhirDatastoreResponse;
import software.amazon.awssdk.services.healthlake.model.DeleteFhirDatastoreRequest;
import software.amazon.awssdk.services.healthlake.model.DeleteFhirDatastoreResponse;
import software.amazon.awssdk.services.healthlake.model.DescribeFhirDatastoreRequest;
import software.amazon.awssdk.services.healthlake.model.DescribeFhirDatastoreResponse;
import software.amazon.awssdk.services.healthlake.model.DescribeFhirExportJobRequest;
import software.amazon.awssdk.services.healthlake.model.DescribeFhirExportJobResponse;
import software.amazon.awssdk.services.healthlake.model.DescribeFhirImportJobRequest;
import software.amazon.awssdk.services.healthlake.model.DescribeFhirImportJobResponse;
import software.amazon.awssdk.services.healthlake.model.HealthLakeException;
import software.amazon.awssdk.services.healthlake.model.InternalServerException;
import software.amazon.awssdk.services.healthlake.model.ListFhirDatastoresRequest;
import software.amazon.awssdk.services.healthlake.model.ListFhirDatastoresResponse;
import software.amazon.awssdk.services.healthlake.model.ListFhirExportJobsRequest;
import software.amazon.awssdk.services.healthlake.model.ListFhirExportJobsResponse;
import software.amazon.awssdk.services.healthlake.model.ListFhirImportJobsRequest;
import software.amazon.awssdk.services.healthlake.model.ListFhirImportJobsResponse;
import software.amazon.awssdk.services.healthlake.model.ListTagsForResourceRequest;
import software.amazon.awssdk.services.healthlake.model.ListTagsForResourceResponse;
import software.amazon.awssdk.services.healthlake.model.ResourceNotFoundException;
import software.amazon.awssdk.services.healthlake.model.StartFhirExportJobRequest;
import software.amazon.awssdk.services.healthlake.model.StartFhirExportJobResponse;
import software.amazon.awssdk.services.healthlake.model.StartFhirImportJobRequest;
import software.amazon.awssdk.services.healthlake.model.StartFhirImportJobResponse;
import software.amazon.awssdk.services.healthlake.model.TagResourceRequest;
import software.amazon.awssdk.services.healthlake.model.TagResourceResponse;
import software.amazon.awssdk.services.healthlake.model.ThrottlingException;
import software.amazon.awssdk.services.healthlake.model.UntagResourceRequest;
import software.amazon.awssdk.services.healthlake.model.UntagResourceResponse;
import software.amazon.awssdk.services.healthlake.model.ValidationException;
import software.amazon.awssdk.services.healthlake.paginators.ListFHIRDatastoresIterable;
import software.amazon.awssdk.services.healthlake.paginators.ListFHIRExportJobsIterable;
import software.amazon.awssdk.services.healthlake.paginators.ListFHIRImportJobsIterable;
/**
* Service client for accessing HealthLake. This can be created using the static {@link #builder()} method.
*
*
* AWS HealthLake is a HIPAA eligibile service that allows customers to store, transform, query, and analyze their
* FHIR-formatted data in a consistent fashion in the cloud.
*
*/
@Generated("software.amazon.awssdk:codegen")
@SdkPublicApi
@ThreadSafe
public interface HealthLakeClient extends AwsClient {
String SERVICE_NAME = "healthlake";
/**
* Value for looking up the service's metadata from the
* {@link software.amazon.awssdk.regions.ServiceMetadataProvider}.
*/
String SERVICE_METADATA_ID = "healthlake";
/**
*
* Creates a data store that can ingest and export FHIR formatted data.
*
*
* @param createFhirDatastoreRequest
* @return Result of the CreateFHIRDatastore operation returned by the service.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ThrottlingException
* The user has exceeded their maximum number of allowed calls to the given API.
* @throws AccessDeniedException
* Access is denied. Your account is not authorized to perform this operation.
* @throws InternalServerException
* Unknown error occurs in the service.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.CreateFHIRDatastore
* @see AWS API Documentation
*/
default CreateFhirDatastoreResponse createFHIRDatastore(CreateFhirDatastoreRequest createFhirDatastoreRequest)
throws ValidationException, ThrottlingException, AccessDeniedException, InternalServerException, AwsServiceException,
SdkClientException, HealthLakeException {
throw new UnsupportedOperationException();
}
/**
*
* Creates a data store that can ingest and export FHIR formatted data.
*
*
*
* This is a convenience which creates an instance of the {@link CreateFhirDatastoreRequest.Builder} avoiding the
* need to create one manually via {@link CreateFhirDatastoreRequest#builder()}
*
*
* @param createFhirDatastoreRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.healthlake.model.CreateFhirDatastoreRequest.Builder} to create a
* request.
* @return Result of the CreateFHIRDatastore operation returned by the service.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ThrottlingException
* The user has exceeded their maximum number of allowed calls to the given API.
* @throws AccessDeniedException
* Access is denied. Your account is not authorized to perform this operation.
* @throws InternalServerException
* Unknown error occurs in the service.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.CreateFHIRDatastore
* @see AWS API Documentation
*/
default CreateFhirDatastoreResponse createFHIRDatastore(
Consumer createFhirDatastoreRequest) throws ValidationException,
ThrottlingException, AccessDeniedException, InternalServerException, AwsServiceException, SdkClientException,
HealthLakeException {
return createFHIRDatastore(CreateFhirDatastoreRequest.builder().applyMutation(createFhirDatastoreRequest).build());
}
/**
*
* Deletes a data store.
*
*
* @param deleteFhirDatastoreRequest
* @return Result of the DeleteFHIRDatastore operation returned by the service.
* @throws AccessDeniedException
* Access is denied. Your account is not authorized to perform this operation.
* @throws ConflictException
* The data store is in a transition state and the user requested action can not be performed.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ResourceNotFoundException
* The requested data store was not found.
* @throws ThrottlingException
* The user has exceeded their maximum number of allowed calls to the given API.
* @throws InternalServerException
* Unknown error occurs in the service.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.DeleteFHIRDatastore
* @see AWS API Documentation
*/
default DeleteFhirDatastoreResponse deleteFHIRDatastore(DeleteFhirDatastoreRequest deleteFhirDatastoreRequest)
throws AccessDeniedException, ConflictException, ValidationException, ResourceNotFoundException, ThrottlingException,
InternalServerException, AwsServiceException, SdkClientException, HealthLakeException {
throw new UnsupportedOperationException();
}
/**
*
* Deletes a data store.
*
*
*
* This is a convenience which creates an instance of the {@link DeleteFhirDatastoreRequest.Builder} avoiding the
* need to create one manually via {@link DeleteFhirDatastoreRequest#builder()}
*
*
* @param deleteFhirDatastoreRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.healthlake.model.DeleteFhirDatastoreRequest.Builder} to create a
* request.
* @return Result of the DeleteFHIRDatastore operation returned by the service.
* @throws AccessDeniedException
* Access is denied. Your account is not authorized to perform this operation.
* @throws ConflictException
* The data store is in a transition state and the user requested action can not be performed.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ResourceNotFoundException
* The requested data store was not found.
* @throws ThrottlingException
* The user has exceeded their maximum number of allowed calls to the given API.
* @throws InternalServerException
* Unknown error occurs in the service.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.DeleteFHIRDatastore
* @see AWS API Documentation
*/
default DeleteFhirDatastoreResponse deleteFHIRDatastore(
Consumer deleteFhirDatastoreRequest) throws AccessDeniedException,
ConflictException, ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException,
AwsServiceException, SdkClientException, HealthLakeException {
return deleteFHIRDatastore(DeleteFhirDatastoreRequest.builder().applyMutation(deleteFhirDatastoreRequest).build());
}
/**
*
* Gets the properties associated with the FHIR data store, including the data store ID, data store ARN, data store
* name, data store status, when the data store was created, data store type version, and the data store's endpoint.
*
*
* @param describeFhirDatastoreRequest
* @return Result of the DescribeFHIRDatastore operation returned by the service.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ResourceNotFoundException
* The requested data store was not found.
* @throws ThrottlingException
* The user has exceeded their maximum number of allowed calls to the given API.
* @throws InternalServerException
* Unknown error occurs in the service.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.DescribeFHIRDatastore
* @see AWS API Documentation
*/
default DescribeFhirDatastoreResponse describeFHIRDatastore(DescribeFhirDatastoreRequest describeFhirDatastoreRequest)
throws ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException,
AwsServiceException, SdkClientException, HealthLakeException {
throw new UnsupportedOperationException();
}
/**
*
* Gets the properties associated with the FHIR data store, including the data store ID, data store ARN, data store
* name, data store status, when the data store was created, data store type version, and the data store's endpoint.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeFhirDatastoreRequest.Builder} avoiding the
* need to create one manually via {@link DescribeFhirDatastoreRequest#builder()}
*
*
* @param describeFhirDatastoreRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.healthlake.model.DescribeFhirDatastoreRequest.Builder} to create a
* request.
* @return Result of the DescribeFHIRDatastore operation returned by the service.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ResourceNotFoundException
* The requested data store was not found.
* @throws ThrottlingException
* The user has exceeded their maximum number of allowed calls to the given API.
* @throws InternalServerException
* Unknown error occurs in the service.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.DescribeFHIRDatastore
* @see AWS API Documentation
*/
default DescribeFhirDatastoreResponse describeFHIRDatastore(
Consumer describeFhirDatastoreRequest) throws ValidationException,
ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException,
HealthLakeException {
return describeFHIRDatastore(DescribeFhirDatastoreRequest.builder().applyMutation(describeFhirDatastoreRequest).build());
}
/**
*
* Displays the properties of a FHIR export job, including the ID, ARN, name, and the status of the job.
*
*
* @param describeFhirExportJobRequest
* @return Result of the DescribeFHIRExportJob operation returned by the service.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ResourceNotFoundException
* The requested data store was not found.
* @throws ThrottlingException
* The user has exceeded their maximum number of allowed calls to the given API.
* @throws InternalServerException
* Unknown error occurs in the service.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.DescribeFHIRExportJob
* @see AWS API Documentation
*/
default DescribeFhirExportJobResponse describeFHIRExportJob(DescribeFhirExportJobRequest describeFhirExportJobRequest)
throws ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException,
AwsServiceException, SdkClientException, HealthLakeException {
throw new UnsupportedOperationException();
}
/**
*
* Displays the properties of a FHIR export job, including the ID, ARN, name, and the status of the job.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeFhirExportJobRequest.Builder} avoiding the
* need to create one manually via {@link DescribeFhirExportJobRequest#builder()}
*
*
* @param describeFhirExportJobRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.healthlake.model.DescribeFhirExportJobRequest.Builder} to create a
* request.
* @return Result of the DescribeFHIRExportJob operation returned by the service.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ResourceNotFoundException
* The requested data store was not found.
* @throws ThrottlingException
* The user has exceeded their maximum number of allowed calls to the given API.
* @throws InternalServerException
* Unknown error occurs in the service.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.DescribeFHIRExportJob
* @see AWS API Documentation
*/
default DescribeFhirExportJobResponse describeFHIRExportJob(
Consumer describeFhirExportJobRequest) throws ValidationException,
ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException,
HealthLakeException {
return describeFHIRExportJob(DescribeFhirExportJobRequest.builder().applyMutation(describeFhirExportJobRequest).build());
}
/**
*
* Displays the properties of a FHIR import job, including the ID, ARN, name, and the status of the job.
*
*
* @param describeFhirImportJobRequest
* @return Result of the DescribeFHIRImportJob operation returned by the service.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ResourceNotFoundException
* The requested data store was not found.
* @throws ThrottlingException
* The user has exceeded their maximum number of allowed calls to the given API.
* @throws InternalServerException
* Unknown error occurs in the service.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.DescribeFHIRImportJob
* @see AWS API Documentation
*/
default DescribeFhirImportJobResponse describeFHIRImportJob(DescribeFhirImportJobRequest describeFhirImportJobRequest)
throws ValidationException, ResourceNotFoundException, ThrottlingException, InternalServerException,
AwsServiceException, SdkClientException, HealthLakeException {
throw new UnsupportedOperationException();
}
/**
*
* Displays the properties of a FHIR import job, including the ID, ARN, name, and the status of the job.
*
*
*
* This is a convenience which creates an instance of the {@link DescribeFhirImportJobRequest.Builder} avoiding the
* need to create one manually via {@link DescribeFhirImportJobRequest#builder()}
*
*
* @param describeFhirImportJobRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.healthlake.model.DescribeFhirImportJobRequest.Builder} to create a
* request.
* @return Result of the DescribeFHIRImportJob operation returned by the service.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ResourceNotFoundException
* The requested data store was not found.
* @throws ThrottlingException
* The user has exceeded their maximum number of allowed calls to the given API.
* @throws InternalServerException
* Unknown error occurs in the service.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.DescribeFHIRImportJob
* @see AWS API Documentation
*/
default DescribeFhirImportJobResponse describeFHIRImportJob(
Consumer describeFhirImportJobRequest) throws ValidationException,
ResourceNotFoundException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException,
HealthLakeException {
return describeFHIRImportJob(DescribeFhirImportJobRequest.builder().applyMutation(describeFhirImportJobRequest).build());
}
/**
*
* Lists all FHIR data stores that are in the user’s account, regardless of data store status.
*
*
* @param listFhirDatastoresRequest
* @return Result of the ListFHIRDatastores operation returned by the service.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ThrottlingException
* The user has exceeded their maximum number of allowed calls to the given API.
* @throws InternalServerException
* Unknown error occurs in the service.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.ListFHIRDatastores
* @see AWS
* API Documentation
*/
default ListFhirDatastoresResponse listFHIRDatastores(ListFhirDatastoresRequest listFhirDatastoresRequest)
throws ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException,
HealthLakeException {
throw new UnsupportedOperationException();
}
/**
*
* Lists all FHIR data stores that are in the user’s account, regardless of data store status.
*
*
*
* This is a convenience which creates an instance of the {@link ListFhirDatastoresRequest.Builder} avoiding the
* need to create one manually via {@link ListFhirDatastoresRequest#builder()}
*
*
* @param listFhirDatastoresRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.healthlake.model.ListFhirDatastoresRequest.Builder} to create a
* request.
* @return Result of the ListFHIRDatastores operation returned by the service.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ThrottlingException
* The user has exceeded their maximum number of allowed calls to the given API.
* @throws InternalServerException
* Unknown error occurs in the service.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.ListFHIRDatastores
* @see AWS
* API Documentation
*/
default ListFhirDatastoresResponse listFHIRDatastores(Consumer listFhirDatastoresRequest)
throws ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException,
HealthLakeException {
return listFHIRDatastores(ListFhirDatastoresRequest.builder().applyMutation(listFhirDatastoresRequest).build());
}
/**
*
* Lists all FHIR data stores that are in the user’s account, regardless of data store status.
*
*
*
* This is a variant of
* {@link #listFHIRDatastores(software.amazon.awssdk.services.healthlake.model.ListFhirDatastoresRequest)}
* 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
*
*
* {@code
* software.amazon.awssdk.services.healthlake.paginators.ListFHIRDatastoresIterable responses = client.listFHIRDatastoresPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.healthlake.paginators.ListFHIRDatastoresIterable responses = client
* .listFHIRDatastoresPaginator(request);
* for (software.amazon.awssdk.services.healthlake.model.ListFhirDatastoresResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.healthlake.paginators.ListFHIRDatastoresIterable responses = client.listFHIRDatastoresPaginator(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
* {@link #listFHIRDatastores(software.amazon.awssdk.services.healthlake.model.ListFhirDatastoresRequest)}
* operation.
*
*
* @param listFhirDatastoresRequest
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ThrottlingException
* The user has exceeded their maximum number of allowed calls to the given API.
* @throws InternalServerException
* Unknown error occurs in the service.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.ListFHIRDatastores
* @see AWS
* API Documentation
*/
default ListFHIRDatastoresIterable listFHIRDatastoresPaginator(ListFhirDatastoresRequest listFhirDatastoresRequest)
throws ValidationException, ThrottlingException, InternalServerException, AwsServiceException, SdkClientException,
HealthLakeException {
return new ListFHIRDatastoresIterable(this, listFhirDatastoresRequest);
}
/**
*
* Lists all FHIR data stores that are in the user’s account, regardless of data store status.
*
*
*
* This is a variant of
* {@link #listFHIRDatastores(software.amazon.awssdk.services.healthlake.model.ListFhirDatastoresRequest)}
* 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
*
*
* {@code
* software.amazon.awssdk.services.healthlake.paginators.ListFHIRDatastoresIterable responses = client.listFHIRDatastoresPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.healthlake.paginators.ListFHIRDatastoresIterable responses = client
* .listFHIRDatastoresPaginator(request);
* for (software.amazon.awssdk.services.healthlake.model.ListFhirDatastoresResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.healthlake.paginators.ListFHIRDatastoresIterable responses = client.listFHIRDatastoresPaginator(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
* {@link #listFHIRDatastores(software.amazon.awssdk.services.healthlake.model.ListFhirDatastoresRequest)}
* operation.
*
*
* This is a convenience which creates an instance of the {@link ListFhirDatastoresRequest.Builder} avoiding the
* need to create one manually via {@link ListFhirDatastoresRequest#builder()}
*
*
* @param listFhirDatastoresRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.healthlake.model.ListFhirDatastoresRequest.Builder} to create a
* request.
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ThrottlingException
* The user has exceeded their maximum number of allowed calls to the given API.
* @throws InternalServerException
* Unknown error occurs in the service.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.ListFHIRDatastores
* @see AWS
* API Documentation
*/
default ListFHIRDatastoresIterable listFHIRDatastoresPaginator(
Consumer listFhirDatastoresRequest) throws ValidationException,
ThrottlingException, InternalServerException, AwsServiceException, SdkClientException, HealthLakeException {
return listFHIRDatastoresPaginator(ListFhirDatastoresRequest.builder().applyMutation(listFhirDatastoresRequest).build());
}
/**
*
* Lists all FHIR export jobs associated with an account and their statuses.
*
*
* @param listFhirExportJobsRequest
* @return Result of the ListFHIRExportJobs operation returned by the service.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ResourceNotFoundException
* The requested data store was not found.
* @throws AccessDeniedException
* Access is denied. Your account is not authorized to perform this operation.
* @throws ThrottlingException
* The user has exceeded their maximum number of allowed calls to the given API.
* @throws InternalServerException
* Unknown error occurs in the service.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.ListFHIRExportJobs
* @see AWS
* API Documentation
*/
default ListFhirExportJobsResponse listFHIRExportJobs(ListFhirExportJobsRequest listFhirExportJobsRequest)
throws ValidationException, ResourceNotFoundException, AccessDeniedException, ThrottlingException,
InternalServerException, AwsServiceException, SdkClientException, HealthLakeException {
throw new UnsupportedOperationException();
}
/**
*
* Lists all FHIR export jobs associated with an account and their statuses.
*
*
*
* This is a convenience which creates an instance of the {@link ListFhirExportJobsRequest.Builder} avoiding the
* need to create one manually via {@link ListFhirExportJobsRequest#builder()}
*
*
* @param listFhirExportJobsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.healthlake.model.ListFhirExportJobsRequest.Builder} to create a
* request.
* @return Result of the ListFHIRExportJobs operation returned by the service.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ResourceNotFoundException
* The requested data store was not found.
* @throws AccessDeniedException
* Access is denied. Your account is not authorized to perform this operation.
* @throws ThrottlingException
* The user has exceeded their maximum number of allowed calls to the given API.
* @throws InternalServerException
* Unknown error occurs in the service.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.ListFHIRExportJobs
* @see AWS
* API Documentation
*/
default ListFhirExportJobsResponse listFHIRExportJobs(Consumer listFhirExportJobsRequest)
throws ValidationException, ResourceNotFoundException, AccessDeniedException, ThrottlingException,
InternalServerException, AwsServiceException, SdkClientException, HealthLakeException {
return listFHIRExportJobs(ListFhirExportJobsRequest.builder().applyMutation(listFhirExportJobsRequest).build());
}
/**
*
* Lists all FHIR export jobs associated with an account and their statuses.
*
*
*
* This is a variant of
* {@link #listFHIRExportJobs(software.amazon.awssdk.services.healthlake.model.ListFhirExportJobsRequest)}
* 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
*
*
* {@code
* software.amazon.awssdk.services.healthlake.paginators.ListFHIRExportJobsIterable responses = client.listFHIRExportJobsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.healthlake.paginators.ListFHIRExportJobsIterable responses = client
* .listFHIRExportJobsPaginator(request);
* for (software.amazon.awssdk.services.healthlake.model.ListFhirExportJobsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.healthlake.paginators.ListFHIRExportJobsIterable responses = client.listFHIRExportJobsPaginator(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
* {@link #listFHIRExportJobs(software.amazon.awssdk.services.healthlake.model.ListFhirExportJobsRequest)}
* operation.
*
*
* @param listFhirExportJobsRequest
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ResourceNotFoundException
* The requested data store was not found.
* @throws AccessDeniedException
* Access is denied. Your account is not authorized to perform this operation.
* @throws ThrottlingException
* The user has exceeded their maximum number of allowed calls to the given API.
* @throws InternalServerException
* Unknown error occurs in the service.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.ListFHIRExportJobs
* @see AWS
* API Documentation
*/
default ListFHIRExportJobsIterable listFHIRExportJobsPaginator(ListFhirExportJobsRequest listFhirExportJobsRequest)
throws ValidationException, ResourceNotFoundException, AccessDeniedException, ThrottlingException,
InternalServerException, AwsServiceException, SdkClientException, HealthLakeException {
return new ListFHIRExportJobsIterable(this, listFhirExportJobsRequest);
}
/**
*
* Lists all FHIR export jobs associated with an account and their statuses.
*
*
*
* This is a variant of
* {@link #listFHIRExportJobs(software.amazon.awssdk.services.healthlake.model.ListFhirExportJobsRequest)}
* 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
*
*
* {@code
* software.amazon.awssdk.services.healthlake.paginators.ListFHIRExportJobsIterable responses = client.listFHIRExportJobsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.healthlake.paginators.ListFHIRExportJobsIterable responses = client
* .listFHIRExportJobsPaginator(request);
* for (software.amazon.awssdk.services.healthlake.model.ListFhirExportJobsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.healthlake.paginators.ListFHIRExportJobsIterable responses = client.listFHIRExportJobsPaginator(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
* {@link #listFHIRExportJobs(software.amazon.awssdk.services.healthlake.model.ListFhirExportJobsRequest)}
* operation.
*
*
* This is a convenience which creates an instance of the {@link ListFhirExportJobsRequest.Builder} avoiding the
* need to create one manually via {@link ListFhirExportJobsRequest#builder()}
*
*
* @param listFhirExportJobsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.healthlake.model.ListFhirExportJobsRequest.Builder} to create a
* request.
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ResourceNotFoundException
* The requested data store was not found.
* @throws AccessDeniedException
* Access is denied. Your account is not authorized to perform this operation.
* @throws ThrottlingException
* The user has exceeded their maximum number of allowed calls to the given API.
* @throws InternalServerException
* Unknown error occurs in the service.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.ListFHIRExportJobs
* @see AWS
* API Documentation
*/
default ListFHIRExportJobsIterable listFHIRExportJobsPaginator(
Consumer listFhirExportJobsRequest) throws ValidationException,
ResourceNotFoundException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException,
SdkClientException, HealthLakeException {
return listFHIRExportJobsPaginator(ListFhirExportJobsRequest.builder().applyMutation(listFhirExportJobsRequest).build());
}
/**
*
* Lists all FHIR import jobs associated with an account and their statuses.
*
*
* @param listFhirImportJobsRequest
* @return Result of the ListFHIRImportJobs operation returned by the service.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ResourceNotFoundException
* The requested data store was not found.
* @throws AccessDeniedException
* Access is denied. Your account is not authorized to perform this operation.
* @throws ThrottlingException
* The user has exceeded their maximum number of allowed calls to the given API.
* @throws InternalServerException
* Unknown error occurs in the service.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.ListFHIRImportJobs
* @see AWS
* API Documentation
*/
default ListFhirImportJobsResponse listFHIRImportJobs(ListFhirImportJobsRequest listFhirImportJobsRequest)
throws ValidationException, ResourceNotFoundException, AccessDeniedException, ThrottlingException,
InternalServerException, AwsServiceException, SdkClientException, HealthLakeException {
throw new UnsupportedOperationException();
}
/**
*
* Lists all FHIR import jobs associated with an account and their statuses.
*
*
*
* This is a convenience which creates an instance of the {@link ListFhirImportJobsRequest.Builder} avoiding the
* need to create one manually via {@link ListFhirImportJobsRequest#builder()}
*
*
* @param listFhirImportJobsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.healthlake.model.ListFhirImportJobsRequest.Builder} to create a
* request.
* @return Result of the ListFHIRImportJobs operation returned by the service.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ResourceNotFoundException
* The requested data store was not found.
* @throws AccessDeniedException
* Access is denied. Your account is not authorized to perform this operation.
* @throws ThrottlingException
* The user has exceeded their maximum number of allowed calls to the given API.
* @throws InternalServerException
* Unknown error occurs in the service.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.ListFHIRImportJobs
* @see AWS
* API Documentation
*/
default ListFhirImportJobsResponse listFHIRImportJobs(Consumer listFhirImportJobsRequest)
throws ValidationException, ResourceNotFoundException, AccessDeniedException, ThrottlingException,
InternalServerException, AwsServiceException, SdkClientException, HealthLakeException {
return listFHIRImportJobs(ListFhirImportJobsRequest.builder().applyMutation(listFhirImportJobsRequest).build());
}
/**
*
* Lists all FHIR import jobs associated with an account and their statuses.
*
*
*
* This is a variant of
* {@link #listFHIRImportJobs(software.amazon.awssdk.services.healthlake.model.ListFhirImportJobsRequest)}
* 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
*
*
* {@code
* software.amazon.awssdk.services.healthlake.paginators.ListFHIRImportJobsIterable responses = client.listFHIRImportJobsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.healthlake.paginators.ListFHIRImportJobsIterable responses = client
* .listFHIRImportJobsPaginator(request);
* for (software.amazon.awssdk.services.healthlake.model.ListFhirImportJobsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.healthlake.paginators.ListFHIRImportJobsIterable responses = client.listFHIRImportJobsPaginator(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
* {@link #listFHIRImportJobs(software.amazon.awssdk.services.healthlake.model.ListFhirImportJobsRequest)}
* operation.
*
*
* @param listFhirImportJobsRequest
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ResourceNotFoundException
* The requested data store was not found.
* @throws AccessDeniedException
* Access is denied. Your account is not authorized to perform this operation.
* @throws ThrottlingException
* The user has exceeded their maximum number of allowed calls to the given API.
* @throws InternalServerException
* Unknown error occurs in the service.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.ListFHIRImportJobs
* @see AWS
* API Documentation
*/
default ListFHIRImportJobsIterable listFHIRImportJobsPaginator(ListFhirImportJobsRequest listFhirImportJobsRequest)
throws ValidationException, ResourceNotFoundException, AccessDeniedException, ThrottlingException,
InternalServerException, AwsServiceException, SdkClientException, HealthLakeException {
return new ListFHIRImportJobsIterable(this, listFhirImportJobsRequest);
}
/**
*
* Lists all FHIR import jobs associated with an account and their statuses.
*
*
*
* This is a variant of
* {@link #listFHIRImportJobs(software.amazon.awssdk.services.healthlake.model.ListFhirImportJobsRequest)}
* 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
*
*
* {@code
* software.amazon.awssdk.services.healthlake.paginators.ListFHIRImportJobsIterable responses = client.listFHIRImportJobsPaginator(request);
* responses.stream().forEach(....);
* }
*
*
* 2) Using For loop
*
*
* {
* @code
* software.amazon.awssdk.services.healthlake.paginators.ListFHIRImportJobsIterable responses = client
* .listFHIRImportJobsPaginator(request);
* for (software.amazon.awssdk.services.healthlake.model.ListFhirImportJobsResponse response : responses) {
* // do something;
* }
* }
*
*
* 3) Use iterator directly
*
*
* {@code
* software.amazon.awssdk.services.healthlake.paginators.ListFHIRImportJobsIterable responses = client.listFHIRImportJobsPaginator(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
* {@link #listFHIRImportJobs(software.amazon.awssdk.services.healthlake.model.ListFhirImportJobsRequest)}
* operation.
*
*
* This is a convenience which creates an instance of the {@link ListFhirImportJobsRequest.Builder} avoiding the
* need to create one manually via {@link ListFhirImportJobsRequest#builder()}
*
*
* @param listFhirImportJobsRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.healthlake.model.ListFhirImportJobsRequest.Builder} to create a
* request.
* @return A custom iterable that can be used to iterate through all the response pages.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ResourceNotFoundException
* The requested data store was not found.
* @throws AccessDeniedException
* Access is denied. Your account is not authorized to perform this operation.
* @throws ThrottlingException
* The user has exceeded their maximum number of allowed calls to the given API.
* @throws InternalServerException
* Unknown error occurs in the service.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.ListFHIRImportJobs
* @see AWS
* API Documentation
*/
default ListFHIRImportJobsIterable listFHIRImportJobsPaginator(
Consumer listFhirImportJobsRequest) throws ValidationException,
ResourceNotFoundException, AccessDeniedException, ThrottlingException, InternalServerException, AwsServiceException,
SdkClientException, HealthLakeException {
return listFHIRImportJobsPaginator(ListFhirImportJobsRequest.builder().applyMutation(listFhirImportJobsRequest).build());
}
/**
*
* Returns a list of all existing tags associated with a data store.
*
*
* @param listTagsForResourceRequest
* @return Result of the ListTagsForResource operation returned by the service.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ResourceNotFoundException
* The requested data store was not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.ListTagsForResource
* @see AWS API Documentation
*/
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
throws ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, HealthLakeException {
throw new UnsupportedOperationException();
}
/**
*
* Returns a list of all existing tags associated with a data store.
*
*
*
* This is a convenience which creates an instance of the {@link ListTagsForResourceRequest.Builder} avoiding the
* need to create one manually via {@link ListTagsForResourceRequest#builder()}
*
*
* @param listTagsForResourceRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.healthlake.model.ListTagsForResourceRequest.Builder} to create a
* request.
* @return Result of the ListTagsForResource operation returned by the service.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ResourceNotFoundException
* The requested data store was not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.ListTagsForResource
* @see AWS API Documentation
*/
default ListTagsForResourceResponse listTagsForResource(
Consumer listTagsForResourceRequest) throws ValidationException,
ResourceNotFoundException, AwsServiceException, SdkClientException, HealthLakeException {
return listTagsForResource(ListTagsForResourceRequest.builder().applyMutation(listTagsForResourceRequest).build());
}
/**
*
* Begins a FHIR export job.
*
*
* @param startFhirExportJobRequest
* @return Result of the StartFHIRExportJob operation returned by the service.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ThrottlingException
* The user has exceeded their maximum number of allowed calls to the given API.
* @throws AccessDeniedException
* Access is denied. Your account is not authorized to perform this operation.
* @throws ResourceNotFoundException
* The requested data store was not found.
* @throws InternalServerException
* Unknown error occurs in the service.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.StartFHIRExportJob
* @see AWS
* API Documentation
*/
default StartFhirExportJobResponse startFHIRExportJob(StartFhirExportJobRequest startFhirExportJobRequest)
throws ValidationException, ThrottlingException, AccessDeniedException, ResourceNotFoundException,
InternalServerException, AwsServiceException, SdkClientException, HealthLakeException {
throw new UnsupportedOperationException();
}
/**
*
* Begins a FHIR export job.
*
*
*
* This is a convenience which creates an instance of the {@link StartFhirExportJobRequest.Builder} avoiding the
* need to create one manually via {@link StartFhirExportJobRequest#builder()}
*
*
* @param startFhirExportJobRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.healthlake.model.StartFhirExportJobRequest.Builder} to create a
* request.
* @return Result of the StartFHIRExportJob operation returned by the service.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ThrottlingException
* The user has exceeded their maximum number of allowed calls to the given API.
* @throws AccessDeniedException
* Access is denied. Your account is not authorized to perform this operation.
* @throws ResourceNotFoundException
* The requested data store was not found.
* @throws InternalServerException
* Unknown error occurs in the service.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.StartFHIRExportJob
* @see AWS
* API Documentation
*/
default StartFhirExportJobResponse startFHIRExportJob(Consumer startFhirExportJobRequest)
throws ValidationException, ThrottlingException, AccessDeniedException, ResourceNotFoundException,
InternalServerException, AwsServiceException, SdkClientException, HealthLakeException {
return startFHIRExportJob(StartFhirExportJobRequest.builder().applyMutation(startFhirExportJobRequest).build());
}
/**
*
* Begins a FHIR Import job.
*
*
* @param startFhirImportJobRequest
* @return Result of the StartFHIRImportJob operation returned by the service.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ThrottlingException
* The user has exceeded their maximum number of allowed calls to the given API.
* @throws AccessDeniedException
* Access is denied. Your account is not authorized to perform this operation.
* @throws ResourceNotFoundException
* The requested data store was not found.
* @throws InternalServerException
* Unknown error occurs in the service.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.StartFHIRImportJob
* @see AWS
* API Documentation
*/
default StartFhirImportJobResponse startFHIRImportJob(StartFhirImportJobRequest startFhirImportJobRequest)
throws ValidationException, ThrottlingException, AccessDeniedException, ResourceNotFoundException,
InternalServerException, AwsServiceException, SdkClientException, HealthLakeException {
throw new UnsupportedOperationException();
}
/**
*
* Begins a FHIR Import job.
*
*
*
* This is a convenience which creates an instance of the {@link StartFhirImportJobRequest.Builder} avoiding the
* need to create one manually via {@link StartFhirImportJobRequest#builder()}
*
*
* @param startFhirImportJobRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.healthlake.model.StartFhirImportJobRequest.Builder} to create a
* request.
* @return Result of the StartFHIRImportJob operation returned by the service.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ThrottlingException
* The user has exceeded their maximum number of allowed calls to the given API.
* @throws AccessDeniedException
* Access is denied. Your account is not authorized to perform this operation.
* @throws ResourceNotFoundException
* The requested data store was not found.
* @throws InternalServerException
* Unknown error occurs in the service.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.StartFHIRImportJob
* @see AWS
* API Documentation
*/
default StartFhirImportJobResponse startFHIRImportJob(Consumer startFhirImportJobRequest)
throws ValidationException, ThrottlingException, AccessDeniedException, ResourceNotFoundException,
InternalServerException, AwsServiceException, SdkClientException, HealthLakeException {
return startFHIRImportJob(StartFhirImportJobRequest.builder().applyMutation(startFhirImportJobRequest).build());
}
/**
*
* Adds a user specified key and value tag to a data store.
*
*
* @param tagResourceRequest
* @return Result of the TagResource operation returned by the service.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ResourceNotFoundException
* The requested data store was not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.TagResource
* @see AWS API
* Documentation
*/
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ValidationException,
ResourceNotFoundException, AwsServiceException, SdkClientException, HealthLakeException {
throw new UnsupportedOperationException();
}
/**
*
* Adds a user specified key and value tag to a data store.
*
*
*
* This is a convenience which creates an instance of the {@link TagResourceRequest.Builder} avoiding the need to
* create one manually via {@link TagResourceRequest#builder()}
*
*
* @param tagResourceRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.healthlake.model.TagResourceRequest.Builder} to create a request.
* @return Result of the TagResource operation returned by the service.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ResourceNotFoundException
* The requested data store was not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.TagResource
* @see AWS API
* Documentation
*/
default TagResourceResponse tagResource(Consumer tagResourceRequest) throws ValidationException,
ResourceNotFoundException, AwsServiceException, SdkClientException, HealthLakeException {
return tagResource(TagResourceRequest.builder().applyMutation(tagResourceRequest).build());
}
/**
*
* Removes tags from a data store.
*
*
* @param untagResourceRequest
* @return Result of the UntagResource operation returned by the service.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ResourceNotFoundException
* The requested data store was not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.UntagResource
* @see AWS API
* Documentation
*/
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ValidationException,
ResourceNotFoundException, AwsServiceException, SdkClientException, HealthLakeException {
throw new UnsupportedOperationException();
}
/**
*
* Removes tags from a data store.
*
*
*
* This is a convenience which creates an instance of the {@link UntagResourceRequest.Builder} avoiding the need to
* create one manually via {@link UntagResourceRequest#builder()}
*
*
* @param untagResourceRequest
* A {@link Consumer} that will call methods on
* {@link software.amazon.awssdk.services.healthlake.model.UntagResourceRequest.Builder} to create a request.
* @return Result of the UntagResource operation returned by the service.
* @throws ValidationException
* The user input parameter was invalid.
* @throws ResourceNotFoundException
* The requested data store was not found.
* @throws SdkException
* Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
* catch all scenarios.
* @throws SdkClientException
* If any client side error occurs such as an IO related failure, failure to get credentials, etc.
* @throws HealthLakeException
* Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
* @sample HealthLakeClient.UntagResource
* @see AWS API
* Documentation
*/
default UntagResourceResponse untagResource(Consumer untagResourceRequest)
throws ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, HealthLakeException {
return untagResource(UntagResourceRequest.builder().applyMutation(untagResourceRequest).build());
}
/**
* Create a {@link HealthLakeClient} with the region loaded from the
* {@link software.amazon.awssdk.regions.providers.DefaultAwsRegionProviderChain} and credentials loaded from the
* {@link software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider}.
*/
static HealthLakeClient create() {
return builder().build();
}
/**
* Create a builder that can be used to configure and create a {@link HealthLakeClient}.
*/
static HealthLakeClientBuilder builder() {
return new DefaultHealthLakeClientBuilder();
}
static ServiceMetadata serviceMetadata() {
return ServiceMetadata.of(SERVICE_METADATA_ID);
}
@Override
default HealthLakeServiceClientConfiguration serviceClientConfiguration() {
throw new UnsupportedOperationException();
}
}