@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface FinspaceDataAsyncClient extends SdkClient
builder()
method.
The FinSpace APIs let you take actions inside the FinSpace.
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_METADATA_ID
Value for looking up the service's metadata from the
ServiceMetadataProvider. |
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
static FinspaceDataAsyncClientBuilder |
builder()
Create a builder that can be used to configure and create a
FinspaceDataAsyncClient. |
static FinspaceDataAsyncClient |
create()
Create a
FinspaceDataAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default CompletableFuture<CreateChangesetResponse> |
createChangeset(Consumer<CreateChangesetRequest.Builder> createChangesetRequest)
Creates a new Changeset in a FinSpace Dataset.
|
default CompletableFuture<CreateChangesetResponse> |
createChangeset(CreateChangesetRequest createChangesetRequest)
Creates a new Changeset in a FinSpace Dataset.
|
default CompletableFuture<CreateDatasetResponse> |
createDataset(Consumer<CreateDatasetRequest.Builder> createDatasetRequest)
Creates a new FinSpace Dataset.
|
default CompletableFuture<CreateDatasetResponse> |
createDataset(CreateDatasetRequest createDatasetRequest)
Creates a new FinSpace Dataset.
|
default CompletableFuture<CreateDataViewResponse> |
createDataView(Consumer<CreateDataViewRequest.Builder> createDataViewRequest)
Creates a Dataview for a Dataset.
|
default CompletableFuture<CreateDataViewResponse> |
createDataView(CreateDataViewRequest createDataViewRequest)
Creates a Dataview for a Dataset.
|
default CompletableFuture<DeleteDatasetResponse> |
deleteDataset(Consumer<DeleteDatasetRequest.Builder> deleteDatasetRequest)
Deletes a FinSpace Dataset.
|
default CompletableFuture<DeleteDatasetResponse> |
deleteDataset(DeleteDatasetRequest deleteDatasetRequest)
Deletes a FinSpace Dataset.
|
default CompletableFuture<GetChangesetResponse> |
getChangeset(Consumer<GetChangesetRequest.Builder> getChangesetRequest)
Get information about a Changeset.
|
default CompletableFuture<GetChangesetResponse> |
getChangeset(GetChangesetRequest getChangesetRequest)
Get information about a Changeset.
|
default CompletableFuture<GetDatasetResponse> |
getDataset(Consumer<GetDatasetRequest.Builder> getDatasetRequest)
Returns information about a Dataset.
|
default CompletableFuture<GetDatasetResponse> |
getDataset(GetDatasetRequest getDatasetRequest)
Returns information about a Dataset.
|
default CompletableFuture<GetDataViewResponse> |
getDataView(Consumer<GetDataViewRequest.Builder> getDataViewRequest)
Gets information about a Dataview.
|
default CompletableFuture<GetDataViewResponse> |
getDataView(GetDataViewRequest getDataViewRequest)
Gets information about a Dataview.
|
default CompletableFuture<GetProgrammaticAccessCredentialsResponse> |
getProgrammaticAccessCredentials(Consumer<GetProgrammaticAccessCredentialsRequest.Builder> getProgrammaticAccessCredentialsRequest)
Request programmatic credentials to use with FinSpace SDK.
|
default CompletableFuture<GetProgrammaticAccessCredentialsResponse> |
getProgrammaticAccessCredentials(GetProgrammaticAccessCredentialsRequest getProgrammaticAccessCredentialsRequest)
Request programmatic credentials to use with FinSpace SDK.
|
default CompletableFuture<GetWorkingLocationResponse> |
getWorkingLocation(Consumer<GetWorkingLocationRequest.Builder> getWorkingLocationRequest)
A temporary Amazon S3 location, where you can copy your files from a source location to stage or use as a scratch
space in FinSpace notebook.
|
default CompletableFuture<GetWorkingLocationResponse> |
getWorkingLocation(GetWorkingLocationRequest getWorkingLocationRequest)
A temporary Amazon S3 location, where you can copy your files from a source location to stage or use as a scratch
space in FinSpace notebook.
|
default CompletableFuture<ListChangesetsResponse> |
listChangesets(Consumer<ListChangesetsRequest.Builder> listChangesetsRequest)
Lists the FinSpace Changesets for a Dataset.
|
default CompletableFuture<ListChangesetsResponse> |
listChangesets(ListChangesetsRequest listChangesetsRequest)
Lists the FinSpace Changesets for a Dataset.
|
default ListChangesetsPublisher |
listChangesetsPaginator(Consumer<ListChangesetsRequest.Builder> listChangesetsRequest)
Lists the FinSpace Changesets for a Dataset.
|
default ListChangesetsPublisher |
listChangesetsPaginator(ListChangesetsRequest listChangesetsRequest)
Lists the FinSpace Changesets for a Dataset.
|
default CompletableFuture<ListDatasetsResponse> |
listDatasets(Consumer<ListDatasetsRequest.Builder> listDatasetsRequest)
Lists all of the active Datasets that a user has access to.
|
default CompletableFuture<ListDatasetsResponse> |
listDatasets(ListDatasetsRequest listDatasetsRequest)
Lists all of the active Datasets that a user has access to.
|
default ListDatasetsPublisher |
listDatasetsPaginator(Consumer<ListDatasetsRequest.Builder> listDatasetsRequest)
Lists all of the active Datasets that a user has access to.
|
default ListDatasetsPublisher |
listDatasetsPaginator(ListDatasetsRequest listDatasetsRequest)
Lists all of the active Datasets that a user has access to.
|
default CompletableFuture<ListDataViewsResponse> |
listDataViews(Consumer<ListDataViewsRequest.Builder> listDataViewsRequest)
Lists all available Dataviews for a Dataset.
|
default CompletableFuture<ListDataViewsResponse> |
listDataViews(ListDataViewsRequest listDataViewsRequest)
Lists all available Dataviews for a Dataset.
|
default ListDataViewsPublisher |
listDataViewsPaginator(Consumer<ListDataViewsRequest.Builder> listDataViewsRequest)
Lists all available Dataviews for a Dataset.
|
default ListDataViewsPublisher |
listDataViewsPaginator(ListDataViewsRequest listDataViewsRequest)
Lists all available Dataviews for a Dataset.
|
default CompletableFuture<UpdateChangesetResponse> |
updateChangeset(Consumer<UpdateChangesetRequest.Builder> updateChangesetRequest)
Updates a FinSpace Changeset.
|
default CompletableFuture<UpdateChangesetResponse> |
updateChangeset(UpdateChangesetRequest updateChangesetRequest)
Updates a FinSpace Changeset.
|
default CompletableFuture<UpdateDatasetResponse> |
updateDataset(Consumer<UpdateDatasetRequest.Builder> updateDatasetRequest)
Updates a FinSpace Dataset.
|
default CompletableFuture<UpdateDatasetResponse> |
updateDataset(UpdateDatasetRequest updateDatasetRequest)
Updates a FinSpace Dataset.
|
serviceNameclosestatic final String SERVICE_NAME
static final String SERVICE_METADATA_ID
ServiceMetadataProvider.static FinspaceDataAsyncClient create()
FinspaceDataAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static FinspaceDataAsyncClientBuilder builder()
FinspaceDataAsyncClient.default CompletableFuture<CreateChangesetResponse> createChangeset(CreateChangesetRequest createChangesetRequest)
Creates a new Changeset in a FinSpace Dataset.
createChangesetRequest - The request for a CreateChangeset operation.default CompletableFuture<CreateChangesetResponse> createChangeset(Consumer<CreateChangesetRequest.Builder> createChangesetRequest)
Creates a new Changeset in a FinSpace Dataset.
This is a convenience which creates an instance of the CreateChangesetRequest.Builder avoiding the need
to create one manually via CreateChangesetRequest.builder()
createChangesetRequest - A Consumer that will call methods on CreateChangesetRequest.Builder to create a request.
The request for a CreateChangeset operation.default CompletableFuture<CreateDataViewResponse> createDataView(CreateDataViewRequest createDataViewRequest)
Creates a Dataview for a Dataset.
createDataViewRequest - Request for creating a data view.default CompletableFuture<CreateDataViewResponse> createDataView(Consumer<CreateDataViewRequest.Builder> createDataViewRequest)
Creates a Dataview for a Dataset.
This is a convenience which creates an instance of the CreateDataViewRequest.Builder avoiding the need to
create one manually via CreateDataViewRequest.builder()
createDataViewRequest - A Consumer that will call methods on CreateDataViewRequest.Builder to create a request.
Request for creating a data view.default CompletableFuture<CreateDatasetResponse> createDataset(CreateDatasetRequest createDatasetRequest)
Creates a new FinSpace Dataset.
createDatasetRequest - The request for a CreateDataset operationdefault CompletableFuture<CreateDatasetResponse> createDataset(Consumer<CreateDatasetRequest.Builder> createDatasetRequest)
Creates a new FinSpace Dataset.
This is a convenience which creates an instance of the CreateDatasetRequest.Builder avoiding the need to
create one manually via CreateDatasetRequest.builder()
createDatasetRequest - A Consumer that will call methods on CreateDatasetRequest.Builder to create a request. The
request for a CreateDataset operationdefault CompletableFuture<DeleteDatasetResponse> deleteDataset(DeleteDatasetRequest deleteDatasetRequest)
Deletes a FinSpace Dataset.
deleteDatasetRequest - The request for a DeleteDataset operation.default CompletableFuture<DeleteDatasetResponse> deleteDataset(Consumer<DeleteDatasetRequest.Builder> deleteDatasetRequest)
Deletes a FinSpace Dataset.
This is a convenience which creates an instance of the DeleteDatasetRequest.Builder avoiding the need to
create one manually via DeleteDatasetRequest.builder()
deleteDatasetRequest - A Consumer that will call methods on DeleteDatasetRequest.Builder to create a request. The
request for a DeleteDataset operation.default CompletableFuture<GetChangesetResponse> getChangeset(GetChangesetRequest getChangesetRequest)
Get information about a Changeset.
getChangesetRequest - Request to describe a changeset.default CompletableFuture<GetChangesetResponse> getChangeset(Consumer<GetChangesetRequest.Builder> getChangesetRequest)
Get information about a Changeset.
This is a convenience which creates an instance of the GetChangesetRequest.Builder avoiding the need to
create one manually via GetChangesetRequest.builder()
getChangesetRequest - A Consumer that will call methods on GetChangesetRequest.Builder to create a request.
Request to describe a changeset.default CompletableFuture<GetDataViewResponse> getDataView(GetDataViewRequest getDataViewRequest)
Gets information about a Dataview.
getDataViewRequest - Request for retrieving a data view detail. Grouped / accessible within a dataset by its dataset id.default CompletableFuture<GetDataViewResponse> getDataView(Consumer<GetDataViewRequest.Builder> getDataViewRequest)
Gets information about a Dataview.
This is a convenience which creates an instance of the GetDataViewRequest.Builder avoiding the need to
create one manually via GetDataViewRequest.builder()
getDataViewRequest - A Consumer that will call methods on GetDataViewRequest.Builder to create a request.
Request for retrieving a data view detail. Grouped / accessible within a dataset by its dataset id.default CompletableFuture<GetDatasetResponse> getDataset(GetDatasetRequest getDatasetRequest)
Returns information about a Dataset.
getDatasetRequest - Request for the GetDataset operation.default CompletableFuture<GetDatasetResponse> getDataset(Consumer<GetDatasetRequest.Builder> getDatasetRequest)
Returns information about a Dataset.
This is a convenience which creates an instance of the GetDatasetRequest.Builder avoiding the need to
create one manually via GetDatasetRequest.builder()
getDatasetRequest - A Consumer that will call methods on GetDatasetRequest.Builder to create a request.
Request for the GetDataset operation.default CompletableFuture<GetProgrammaticAccessCredentialsResponse> getProgrammaticAccessCredentials(GetProgrammaticAccessCredentialsRequest getProgrammaticAccessCredentialsRequest)
Request programmatic credentials to use with FinSpace SDK.
getProgrammaticAccessCredentialsRequest - Request for GetProgrammaticAccessCredentials operationdefault CompletableFuture<GetProgrammaticAccessCredentialsResponse> getProgrammaticAccessCredentials(Consumer<GetProgrammaticAccessCredentialsRequest.Builder> getProgrammaticAccessCredentialsRequest)
Request programmatic credentials to use with FinSpace SDK.
This is a convenience which creates an instance of the GetProgrammaticAccessCredentialsRequest.Builder
avoiding the need to create one manually via GetProgrammaticAccessCredentialsRequest.builder()
getProgrammaticAccessCredentialsRequest - A Consumer that will call methods on GetProgrammaticAccessCredentialsRequest.Builder to
create a request. Request for GetProgrammaticAccessCredentials operationdefault CompletableFuture<GetWorkingLocationResponse> getWorkingLocation(GetWorkingLocationRequest getWorkingLocationRequest)
A temporary Amazon S3 location, where you can copy your files from a source location to stage or use as a scratch space in FinSpace notebook.
getWorkingLocationRequest - default CompletableFuture<GetWorkingLocationResponse> getWorkingLocation(Consumer<GetWorkingLocationRequest.Builder> getWorkingLocationRequest)
A temporary Amazon S3 location, where you can copy your files from a source location to stage or use as a scratch space in FinSpace notebook.
This is a convenience which creates an instance of the GetWorkingLocationRequest.Builder avoiding the
need to create one manually via GetWorkingLocationRequest.builder()
getWorkingLocationRequest - A Consumer that will call methods on GetWorkingLocationRequest.Builder to create a
request.default CompletableFuture<ListChangesetsResponse> listChangesets(ListChangesetsRequest listChangesetsRequest)
Lists the FinSpace Changesets for a Dataset.
listChangesetsRequest - Request to ListChangesetsRequest. It exposes minimal query filters.default CompletableFuture<ListChangesetsResponse> listChangesets(Consumer<ListChangesetsRequest.Builder> listChangesetsRequest)
Lists the FinSpace Changesets for a Dataset.
This is a convenience which creates an instance of the ListChangesetsRequest.Builder avoiding the need to
create one manually via ListChangesetsRequest.builder()
listChangesetsRequest - A Consumer that will call methods on ListChangesetsRequest.Builder to create a request.
Request to ListChangesetsRequest. It exposes minimal query filters.default ListChangesetsPublisher listChangesetsPaginator(ListChangesetsRequest listChangesetsRequest)
Lists the FinSpace Changesets for a Dataset.
This is a variant of
listChangesets(software.amazon.awssdk.services.finspacedata.model.ListChangesetsRequest) operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.finspacedata.paginators.ListChangesetsPublisher publisher = client.listChangesetsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.finspacedata.paginators.ListChangesetsPublisher publisher = client.listChangesetsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.finspacedata.model.ListChangesetsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.finspacedata.model.ListChangesetsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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
listChangesets(software.amazon.awssdk.services.finspacedata.model.ListChangesetsRequest) operation.
listChangesetsRequest - Request to ListChangesetsRequest. It exposes minimal query filters.default ListChangesetsPublisher listChangesetsPaginator(Consumer<ListChangesetsRequest.Builder> listChangesetsRequest)
Lists the FinSpace Changesets for a Dataset.
This is a variant of
listChangesets(software.amazon.awssdk.services.finspacedata.model.ListChangesetsRequest) operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.finspacedata.paginators.ListChangesetsPublisher publisher = client.listChangesetsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.finspacedata.paginators.ListChangesetsPublisher publisher = client.listChangesetsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.finspacedata.model.ListChangesetsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.finspacedata.model.ListChangesetsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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
listChangesets(software.amazon.awssdk.services.finspacedata.model.ListChangesetsRequest) operation.
This is a convenience which creates an instance of the ListChangesetsRequest.Builder avoiding the need to
create one manually via ListChangesetsRequest.builder()
listChangesetsRequest - A Consumer that will call methods on ListChangesetsRequest.Builder to create a request.
Request to ListChangesetsRequest. It exposes minimal query filters.default CompletableFuture<ListDataViewsResponse> listDataViews(ListDataViewsRequest listDataViewsRequest)
Lists all available Dataviews for a Dataset.
listDataViewsRequest - Request for a list data views.default CompletableFuture<ListDataViewsResponse> listDataViews(Consumer<ListDataViewsRequest.Builder> listDataViewsRequest)
Lists all available Dataviews for a Dataset.
This is a convenience which creates an instance of the ListDataViewsRequest.Builder avoiding the need to
create one manually via ListDataViewsRequest.builder()
listDataViewsRequest - A Consumer that will call methods on ListDataViewsRequest.Builder to create a request.
Request for a list data views.default ListDataViewsPublisher listDataViewsPaginator(ListDataViewsRequest listDataViewsRequest)
Lists all available Dataviews for a Dataset.
This is a variant of
listDataViews(software.amazon.awssdk.services.finspacedata.model.ListDataViewsRequest) operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.finspacedata.paginators.ListDataViewsPublisher publisher = client.listDataViewsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.finspacedata.paginators.ListDataViewsPublisher publisher = client.listDataViewsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.finspacedata.model.ListDataViewsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.finspacedata.model.ListDataViewsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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
listDataViews(software.amazon.awssdk.services.finspacedata.model.ListDataViewsRequest) operation.
listDataViewsRequest - Request for a list data views.default ListDataViewsPublisher listDataViewsPaginator(Consumer<ListDataViewsRequest.Builder> listDataViewsRequest)
Lists all available Dataviews for a Dataset.
This is a variant of
listDataViews(software.amazon.awssdk.services.finspacedata.model.ListDataViewsRequest) operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.finspacedata.paginators.ListDataViewsPublisher publisher = client.listDataViewsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.finspacedata.paginators.ListDataViewsPublisher publisher = client.listDataViewsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.finspacedata.model.ListDataViewsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.finspacedata.model.ListDataViewsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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
listDataViews(software.amazon.awssdk.services.finspacedata.model.ListDataViewsRequest) operation.
This is a convenience which creates an instance of the ListDataViewsRequest.Builder avoiding the need to
create one manually via ListDataViewsRequest.builder()
listDataViewsRequest - A Consumer that will call methods on ListDataViewsRequest.Builder to create a request.
Request for a list data views.default CompletableFuture<ListDatasetsResponse> listDatasets(ListDatasetsRequest listDatasetsRequest)
Lists all of the active Datasets that a user has access to.
listDatasetsRequest - Request for the ListDatasets operation.default CompletableFuture<ListDatasetsResponse> listDatasets(Consumer<ListDatasetsRequest.Builder> listDatasetsRequest)
Lists all of the active Datasets that a user has access to.
This is a convenience which creates an instance of the ListDatasetsRequest.Builder avoiding the need to
create one manually via ListDatasetsRequest.builder()
listDatasetsRequest - A Consumer that will call methods on ListDatasetsRequest.Builder to create a request.
Request for the ListDatasets operation.default ListDatasetsPublisher listDatasetsPaginator(ListDatasetsRequest listDatasetsRequest)
Lists all of the active Datasets that a user has access to.
This is a variant of
listDatasets(software.amazon.awssdk.services.finspacedata.model.ListDatasetsRequest) operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.finspacedata.paginators.ListDatasetsPublisher publisher = client.listDatasetsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.finspacedata.paginators.ListDatasetsPublisher publisher = client.listDatasetsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.finspacedata.model.ListDatasetsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.finspacedata.model.ListDatasetsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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
listDatasets(software.amazon.awssdk.services.finspacedata.model.ListDatasetsRequest) operation.
listDatasetsRequest - Request for the ListDatasets operation.default ListDatasetsPublisher listDatasetsPaginator(Consumer<ListDatasetsRequest.Builder> listDatasetsRequest)
Lists all of the active Datasets that a user has access to.
This is a variant of
listDatasets(software.amazon.awssdk.services.finspacedata.model.ListDatasetsRequest) operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.finspacedata.paginators.ListDatasetsPublisher publisher = client.listDatasetsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.finspacedata.paginators.ListDatasetsPublisher publisher = client.listDatasetsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.finspacedata.model.ListDatasetsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.finspacedata.model.ListDatasetsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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
listDatasets(software.amazon.awssdk.services.finspacedata.model.ListDatasetsRequest) operation.
This is a convenience which creates an instance of the ListDatasetsRequest.Builder avoiding the need to
create one manually via ListDatasetsRequest.builder()
listDatasetsRequest - A Consumer that will call methods on ListDatasetsRequest.Builder to create a request.
Request for the ListDatasets operation.default CompletableFuture<UpdateChangesetResponse> updateChangeset(UpdateChangesetRequest updateChangesetRequest)
Updates a FinSpace Changeset.
updateChangesetRequest - Request to update an existing changeset.default CompletableFuture<UpdateChangesetResponse> updateChangeset(Consumer<UpdateChangesetRequest.Builder> updateChangesetRequest)
Updates a FinSpace Changeset.
This is a convenience which creates an instance of the UpdateChangesetRequest.Builder avoiding the need
to create one manually via UpdateChangesetRequest.builder()
updateChangesetRequest - A Consumer that will call methods on UpdateChangesetRequest.Builder to create a request.
Request to update an existing changeset.default CompletableFuture<UpdateDatasetResponse> updateDataset(UpdateDatasetRequest updateDatasetRequest)
Updates a FinSpace Dataset.
updateDatasetRequest - The request for an UpdateDataset operationdefault CompletableFuture<UpdateDatasetResponse> updateDataset(Consumer<UpdateDatasetRequest.Builder> updateDatasetRequest)
Updates a FinSpace Dataset.
This is a convenience which creates an instance of the UpdateDatasetRequest.Builder avoiding the need to
create one manually via UpdateDatasetRequest.builder()
updateDatasetRequest - A Consumer that will call methods on UpdateDatasetRequest.Builder to create a request. The
request for an UpdateDataset operationCopyright © 2021. All rights reserved.