@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface SchemasAsyncClient extends SdkClient
builder() method.
Amazon EventBridge Schema Registry
| 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 |
serviceNameclosestatic final String SERVICE_NAME
static final String SERVICE_METADATA_ID
ServiceMetadataProvider.static SchemasAsyncClient create()
SchemasAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static SchemasAsyncClientBuilder builder()
SchemasAsyncClient.default CompletableFuture<CreateDiscovererResponse> createDiscoverer(CreateDiscovererRequest createDiscovererRequest)
Creates a discoverer.
createDiscovererRequest - default CompletableFuture<CreateDiscovererResponse> createDiscoverer(Consumer<CreateDiscovererRequest.Builder> createDiscovererRequest)
Creates a discoverer.
This is a convenience which creates an instance of the CreateDiscovererRequest.Builder avoiding the need
to create one manually via CreateDiscovererRequest.builder()
createDiscovererRequest - A Consumer that will call methods on CreateDiscovererRequest.Builder to create a request.default CompletableFuture<CreateRegistryResponse> createRegistry(CreateRegistryRequest createRegistryRequest)
Creates a registry.
createRegistryRequest - default CompletableFuture<CreateRegistryResponse> createRegistry(Consumer<CreateRegistryRequest.Builder> createRegistryRequest)
Creates a registry.
This is a convenience which creates an instance of the CreateRegistryRequest.Builder avoiding the need to
create one manually via CreateRegistryRequest.builder()
createRegistryRequest - A Consumer that will call methods on CreateRegistryRequest.Builder to create a request.default CompletableFuture<CreateSchemaResponse> createSchema(CreateSchemaRequest createSchemaRequest)
Creates a schema definition.
Inactive schemas will be deleted after two years.
createSchemaRequest - default CompletableFuture<CreateSchemaResponse> createSchema(Consumer<CreateSchemaRequest.Builder> createSchemaRequest)
Creates a schema definition.
Inactive schemas will be deleted after two years.
This is a convenience which creates an instance of the CreateSchemaRequest.Builder avoiding the need to
create one manually via CreateSchemaRequest.builder()
createSchemaRequest - A Consumer that will call methods on CreateSchemaRequest.Builder to create a request.default CompletableFuture<DeleteDiscovererResponse> deleteDiscoverer(DeleteDiscovererRequest deleteDiscovererRequest)
Deletes a discoverer.
deleteDiscovererRequest - default CompletableFuture<DeleteDiscovererResponse> deleteDiscoverer(Consumer<DeleteDiscovererRequest.Builder> deleteDiscovererRequest)
Deletes a discoverer.
This is a convenience which creates an instance of the DeleteDiscovererRequest.Builder avoiding the need
to create one manually via DeleteDiscovererRequest.builder()
deleteDiscovererRequest - A Consumer that will call methods on DeleteDiscovererRequest.Builder to create a request.default CompletableFuture<DeleteRegistryResponse> deleteRegistry(DeleteRegistryRequest deleteRegistryRequest)
Deletes a Registry.
deleteRegistryRequest - default CompletableFuture<DeleteRegistryResponse> deleteRegistry(Consumer<DeleteRegistryRequest.Builder> deleteRegistryRequest)
Deletes a Registry.
This is a convenience which creates an instance of the DeleteRegistryRequest.Builder avoiding the need to
create one manually via DeleteRegistryRequest.builder()
deleteRegistryRequest - A Consumer that will call methods on DeleteRegistryRequest.Builder to create a request.default CompletableFuture<DeleteResourcePolicyResponse> deleteResourcePolicy(DeleteResourcePolicyRequest deleteResourcePolicyRequest)
Delete the resource-based policy attached to the specified registry.
deleteResourcePolicyRequest - default CompletableFuture<DeleteResourcePolicyResponse> deleteResourcePolicy(Consumer<DeleteResourcePolicyRequest.Builder> deleteResourcePolicyRequest)
Delete the resource-based policy attached to the specified registry.
This is a convenience which creates an instance of the DeleteResourcePolicyRequest.Builder avoiding the
need to create one manually via DeleteResourcePolicyRequest.builder()
deleteResourcePolicyRequest - A Consumer that will call methods on DeleteResourcePolicyRequest.Builder to create a
request.default CompletableFuture<DeleteSchemaResponse> deleteSchema(DeleteSchemaRequest deleteSchemaRequest)
Delete a schema definition.
deleteSchemaRequest - default CompletableFuture<DeleteSchemaResponse> deleteSchema(Consumer<DeleteSchemaRequest.Builder> deleteSchemaRequest)
Delete a schema definition.
This is a convenience which creates an instance of the DeleteSchemaRequest.Builder avoiding the need to
create one manually via DeleteSchemaRequest.builder()
deleteSchemaRequest - A Consumer that will call methods on DeleteSchemaRequest.Builder to create a request.default CompletableFuture<DeleteSchemaVersionResponse> deleteSchemaVersion(DeleteSchemaVersionRequest deleteSchemaVersionRequest)
Delete the schema version definition
deleteSchemaVersionRequest - default CompletableFuture<DeleteSchemaVersionResponse> deleteSchemaVersion(Consumer<DeleteSchemaVersionRequest.Builder> deleteSchemaVersionRequest)
Delete the schema version definition
This is a convenience which creates an instance of the DeleteSchemaVersionRequest.Builder avoiding the
need to create one manually via DeleteSchemaVersionRequest.builder()
deleteSchemaVersionRequest - A Consumer that will call methods on DeleteSchemaVersionRequest.Builder to create a
request.default CompletableFuture<DescribeCodeBindingResponse> describeCodeBinding(DescribeCodeBindingRequest describeCodeBindingRequest)
Describe the code binding URI.
describeCodeBindingRequest - default CompletableFuture<DescribeCodeBindingResponse> describeCodeBinding(Consumer<DescribeCodeBindingRequest.Builder> describeCodeBindingRequest)
Describe the code binding URI.
This is a convenience which creates an instance of the DescribeCodeBindingRequest.Builder avoiding the
need to create one manually via DescribeCodeBindingRequest.builder()
describeCodeBindingRequest - A Consumer that will call methods on DescribeCodeBindingRequest.Builder to create a
request.default CompletableFuture<DescribeDiscovererResponse> describeDiscoverer(DescribeDiscovererRequest describeDiscovererRequest)
Describes the discoverer.
describeDiscovererRequest - default CompletableFuture<DescribeDiscovererResponse> describeDiscoverer(Consumer<DescribeDiscovererRequest.Builder> describeDiscovererRequest)
Describes the discoverer.
This is a convenience which creates an instance of the DescribeDiscovererRequest.Builder avoiding the
need to create one manually via DescribeDiscovererRequest.builder()
describeDiscovererRequest - A Consumer that will call methods on DescribeDiscovererRequest.Builder to create a
request.default CompletableFuture<DescribeRegistryResponse> describeRegistry(DescribeRegistryRequest describeRegistryRequest)
Describes the registry.
describeRegistryRequest - default CompletableFuture<DescribeRegistryResponse> describeRegistry(Consumer<DescribeRegistryRequest.Builder> describeRegistryRequest)
Describes the registry.
This is a convenience which creates an instance of the DescribeRegistryRequest.Builder avoiding the need
to create one manually via DescribeRegistryRequest.builder()
describeRegistryRequest - A Consumer that will call methods on DescribeRegistryRequest.Builder to create a request.default CompletableFuture<DescribeSchemaResponse> describeSchema(DescribeSchemaRequest describeSchemaRequest)
Retrieve the schema definition.
describeSchemaRequest - default CompletableFuture<DescribeSchemaResponse> describeSchema(Consumer<DescribeSchemaRequest.Builder> describeSchemaRequest)
Retrieve the schema definition.
This is a convenience which creates an instance of the DescribeSchemaRequest.Builder avoiding the need to
create one manually via DescribeSchemaRequest.builder()
describeSchemaRequest - A Consumer that will call methods on DescribeSchemaRequest.Builder to create a request.default CompletableFuture<ExportSchemaResponse> exportSchema(ExportSchemaRequest exportSchemaRequest)
exportSchemaRequest - default CompletableFuture<ExportSchemaResponse> exportSchema(Consumer<ExportSchemaRequest.Builder> exportSchemaRequest)
This is a convenience which creates an instance of the ExportSchemaRequest.Builder avoiding the need to
create one manually via ExportSchemaRequest.builder()
exportSchemaRequest - A Consumer that will call methods on ExportSchemaRequest.Builder to create a request.default CompletableFuture<GetCodeBindingSourceResponse> getCodeBindingSource(GetCodeBindingSourceRequest getCodeBindingSourceRequest)
Get the code binding source URI.
getCodeBindingSourceRequest - default CompletableFuture<GetCodeBindingSourceResponse> getCodeBindingSource(Consumer<GetCodeBindingSourceRequest.Builder> getCodeBindingSourceRequest)
Get the code binding source URI.
This is a convenience which creates an instance of the GetCodeBindingSourceRequest.Builder avoiding the
need to create one manually via GetCodeBindingSourceRequest.builder()
getCodeBindingSourceRequest - A Consumer that will call methods on GetCodeBindingSourceRequest.Builder to create a
request.default CompletableFuture<GetDiscoveredSchemaResponse> getDiscoveredSchema(GetDiscoveredSchemaRequest getDiscoveredSchemaRequest)
Get the discovered schema that was generated based on sampled events.
getDiscoveredSchemaRequest - default CompletableFuture<GetDiscoveredSchemaResponse> getDiscoveredSchema(Consumer<GetDiscoveredSchemaRequest.Builder> getDiscoveredSchemaRequest)
Get the discovered schema that was generated based on sampled events.
This is a convenience which creates an instance of the GetDiscoveredSchemaRequest.Builder avoiding the
need to create one manually via GetDiscoveredSchemaRequest.builder()
getDiscoveredSchemaRequest - A Consumer that will call methods on GetDiscoveredSchemaRequest.Builder to create a
request.default CompletableFuture<GetResourcePolicyResponse> getResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest)
Retrieves the resource-based policy attached to a given registry.
getResourcePolicyRequest - default CompletableFuture<GetResourcePolicyResponse> getResourcePolicy(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest)
Retrieves the resource-based policy attached to a given registry.
This is a convenience which creates an instance of the GetResourcePolicyRequest.Builder avoiding the need
to create one manually via GetResourcePolicyRequest.builder()
getResourcePolicyRequest - A Consumer that will call methods on GetResourcePolicyRequest.Builder to create a request.default CompletableFuture<ListDiscoverersResponse> listDiscoverers(ListDiscoverersRequest listDiscoverersRequest)
List the discoverers.
listDiscoverersRequest - default CompletableFuture<ListDiscoverersResponse> listDiscoverers(Consumer<ListDiscoverersRequest.Builder> listDiscoverersRequest)
List the discoverers.
This is a convenience which creates an instance of the ListDiscoverersRequest.Builder avoiding the need
to create one manually via ListDiscoverersRequest.builder()
listDiscoverersRequest - A Consumer that will call methods on ListDiscoverersRequest.Builder to create a request.default ListDiscoverersPublisher listDiscoverersPaginator(ListDiscoverersRequest listDiscoverersRequest)
List the discoverers.
This is a variant of
listDiscoverers(software.amazon.awssdk.services.schemas.model.ListDiscoverersRequest) 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.schemas.paginators.ListDiscoverersPublisher publisher = client.listDiscoverersPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.schemas.paginators.ListDiscoverersPublisher publisher = client.listDiscoverersPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.schemas.model.ListDiscoverersResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.schemas.model.ListDiscoverersResponse 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 Limit 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
listDiscoverers(software.amazon.awssdk.services.schemas.model.ListDiscoverersRequest) operation.
listDiscoverersRequest - default ListDiscoverersPublisher listDiscoverersPaginator(Consumer<ListDiscoverersRequest.Builder> listDiscoverersRequest)
List the discoverers.
This is a variant of
listDiscoverers(software.amazon.awssdk.services.schemas.model.ListDiscoverersRequest) 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.schemas.paginators.ListDiscoverersPublisher publisher = client.listDiscoverersPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.schemas.paginators.ListDiscoverersPublisher publisher = client.listDiscoverersPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.schemas.model.ListDiscoverersResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.schemas.model.ListDiscoverersResponse 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 Limit 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
listDiscoverers(software.amazon.awssdk.services.schemas.model.ListDiscoverersRequest) operation.
This is a convenience which creates an instance of the ListDiscoverersRequest.Builder avoiding the need
to create one manually via ListDiscoverersRequest.builder()
listDiscoverersRequest - A Consumer that will call methods on ListDiscoverersRequest.Builder to create a request.default CompletableFuture<ListRegistriesResponse> listRegistries(ListRegistriesRequest listRegistriesRequest)
List the registries.
listRegistriesRequest - default CompletableFuture<ListRegistriesResponse> listRegistries(Consumer<ListRegistriesRequest.Builder> listRegistriesRequest)
List the registries.
This is a convenience which creates an instance of the ListRegistriesRequest.Builder avoiding the need to
create one manually via ListRegistriesRequest.builder()
listRegistriesRequest - A Consumer that will call methods on ListRegistriesRequest.Builder to create a request.default ListRegistriesPublisher listRegistriesPaginator(ListRegistriesRequest listRegistriesRequest)
List the registries.
This is a variant of listRegistries(software.amazon.awssdk.services.schemas.model.ListRegistriesRequest)
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.schemas.paginators.ListRegistriesPublisher publisher = client.listRegistriesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.schemas.paginators.ListRegistriesPublisher publisher = client.listRegistriesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.schemas.model.ListRegistriesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.schemas.model.ListRegistriesResponse 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 Limit 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
listRegistries(software.amazon.awssdk.services.schemas.model.ListRegistriesRequest) operation.
listRegistriesRequest - default ListRegistriesPublisher listRegistriesPaginator(Consumer<ListRegistriesRequest.Builder> listRegistriesRequest)
List the registries.
This is a variant of listRegistries(software.amazon.awssdk.services.schemas.model.ListRegistriesRequest)
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.schemas.paginators.ListRegistriesPublisher publisher = client.listRegistriesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.schemas.paginators.ListRegistriesPublisher publisher = client.listRegistriesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.schemas.model.ListRegistriesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.schemas.model.ListRegistriesResponse 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 Limit 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
listRegistries(software.amazon.awssdk.services.schemas.model.ListRegistriesRequest) operation.
This is a convenience which creates an instance of the ListRegistriesRequest.Builder avoiding the need to
create one manually via ListRegistriesRequest.builder()
listRegistriesRequest - A Consumer that will call methods on ListRegistriesRequest.Builder to create a request.default CompletableFuture<ListSchemaVersionsResponse> listSchemaVersions(ListSchemaVersionsRequest listSchemaVersionsRequest)
Provides a list of the schema versions and related information.
listSchemaVersionsRequest - default CompletableFuture<ListSchemaVersionsResponse> listSchemaVersions(Consumer<ListSchemaVersionsRequest.Builder> listSchemaVersionsRequest)
Provides a list of the schema versions and related information.
This is a convenience which creates an instance of the ListSchemaVersionsRequest.Builder avoiding the
need to create one manually via ListSchemaVersionsRequest.builder()
listSchemaVersionsRequest - A Consumer that will call methods on ListSchemaVersionsRequest.Builder to create a
request.default ListSchemaVersionsPublisher listSchemaVersionsPaginator(ListSchemaVersionsRequest listSchemaVersionsRequest)
Provides a list of the schema versions and related information.
This is a variant of
listSchemaVersions(software.amazon.awssdk.services.schemas.model.ListSchemaVersionsRequest) 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.schemas.paginators.ListSchemaVersionsPublisher publisher = client.listSchemaVersionsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.schemas.paginators.ListSchemaVersionsPublisher publisher = client.listSchemaVersionsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.schemas.model.ListSchemaVersionsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.schemas.model.ListSchemaVersionsResponse 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 Limit 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
listSchemaVersions(software.amazon.awssdk.services.schemas.model.ListSchemaVersionsRequest)
operation.
listSchemaVersionsRequest - default ListSchemaVersionsPublisher listSchemaVersionsPaginator(Consumer<ListSchemaVersionsRequest.Builder> listSchemaVersionsRequest)
Provides a list of the schema versions and related information.
This is a variant of
listSchemaVersions(software.amazon.awssdk.services.schemas.model.ListSchemaVersionsRequest) 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.schemas.paginators.ListSchemaVersionsPublisher publisher = client.listSchemaVersionsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.schemas.paginators.ListSchemaVersionsPublisher publisher = client.listSchemaVersionsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.schemas.model.ListSchemaVersionsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.schemas.model.ListSchemaVersionsResponse 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 Limit 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
listSchemaVersions(software.amazon.awssdk.services.schemas.model.ListSchemaVersionsRequest)
operation.
This is a convenience which creates an instance of the ListSchemaVersionsRequest.Builder avoiding the
need to create one manually via ListSchemaVersionsRequest.builder()
listSchemaVersionsRequest - A Consumer that will call methods on ListSchemaVersionsRequest.Builder to create a
request.default CompletableFuture<ListSchemasResponse> listSchemas(ListSchemasRequest listSchemasRequest)
List the schemas.
listSchemasRequest - default CompletableFuture<ListSchemasResponse> listSchemas(Consumer<ListSchemasRequest.Builder> listSchemasRequest)
List the schemas.
This is a convenience which creates an instance of the ListSchemasRequest.Builder avoiding the need to
create one manually via ListSchemasRequest.builder()
listSchemasRequest - A Consumer that will call methods on ListSchemasRequest.Builder to create a request.default ListSchemasPublisher listSchemasPaginator(ListSchemasRequest listSchemasRequest)
List the schemas.
This is a variant of listSchemas(software.amazon.awssdk.services.schemas.model.ListSchemasRequest)
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.schemas.paginators.ListSchemasPublisher publisher = client.listSchemasPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.schemas.paginators.ListSchemasPublisher publisher = client.listSchemasPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.schemas.model.ListSchemasResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.schemas.model.ListSchemasResponse 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 Limit 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
listSchemas(software.amazon.awssdk.services.schemas.model.ListSchemasRequest) operation.
listSchemasRequest - default ListSchemasPublisher listSchemasPaginator(Consumer<ListSchemasRequest.Builder> listSchemasRequest)
List the schemas.
This is a variant of listSchemas(software.amazon.awssdk.services.schemas.model.ListSchemasRequest)
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.schemas.paginators.ListSchemasPublisher publisher = client.listSchemasPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.schemas.paginators.ListSchemasPublisher publisher = client.listSchemasPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.schemas.model.ListSchemasResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.schemas.model.ListSchemasResponse 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 Limit 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
listSchemas(software.amazon.awssdk.services.schemas.model.ListSchemasRequest) operation.
This is a convenience which creates an instance of the ListSchemasRequest.Builder avoiding the need to
create one manually via ListSchemasRequest.builder()
listSchemasRequest - A Consumer that will call methods on ListSchemasRequest.Builder to create a request.default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Get tags for resource.
listTagsForResourceRequest - default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)
Get tags for resource.
This is a convenience which creates an instance of the ListTagsForResourceRequest.Builder avoiding the
need to create one manually via ListTagsForResourceRequest.builder()
listTagsForResourceRequest - A Consumer that will call methods on ListTagsForResourceRequest.Builder to create a
request.default CompletableFuture<PutCodeBindingResponse> putCodeBinding(PutCodeBindingRequest putCodeBindingRequest)
Put code binding URI
putCodeBindingRequest - default CompletableFuture<PutCodeBindingResponse> putCodeBinding(Consumer<PutCodeBindingRequest.Builder> putCodeBindingRequest)
Put code binding URI
This is a convenience which creates an instance of the PutCodeBindingRequest.Builder avoiding the need to
create one manually via PutCodeBindingRequest.builder()
putCodeBindingRequest - A Consumer that will call methods on PutCodeBindingRequest.Builder to create a request.default CompletableFuture<PutResourcePolicyResponse> putResourcePolicy(PutResourcePolicyRequest putResourcePolicyRequest)
The name of the policy.
putResourcePolicyRequest - The name of the policy.default CompletableFuture<PutResourcePolicyResponse> putResourcePolicy(Consumer<PutResourcePolicyRequest.Builder> putResourcePolicyRequest)
The name of the policy.
This is a convenience which creates an instance of the PutResourcePolicyRequest.Builder avoiding the need
to create one manually via PutResourcePolicyRequest.builder()
putResourcePolicyRequest - A Consumer that will call methods on PutResourcePolicyRequest.Builder to create a request.
The name of the policy.default CompletableFuture<SearchSchemasResponse> searchSchemas(SearchSchemasRequest searchSchemasRequest)
Search the schemas
searchSchemasRequest - default CompletableFuture<SearchSchemasResponse> searchSchemas(Consumer<SearchSchemasRequest.Builder> searchSchemasRequest)
Search the schemas
This is a convenience which creates an instance of the SearchSchemasRequest.Builder avoiding the need to
create one manually via SearchSchemasRequest.builder()
searchSchemasRequest - A Consumer that will call methods on SearchSchemasRequest.Builder to create a request.default SearchSchemasPublisher searchSchemasPaginator(SearchSchemasRequest searchSchemasRequest)
Search the schemas
This is a variant of searchSchemas(software.amazon.awssdk.services.schemas.model.SearchSchemasRequest)
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.schemas.paginators.SearchSchemasPublisher publisher = client.searchSchemasPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.schemas.paginators.SearchSchemasPublisher publisher = client.searchSchemasPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.schemas.model.SearchSchemasResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.schemas.model.SearchSchemasResponse 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 Limit 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
searchSchemas(software.amazon.awssdk.services.schemas.model.SearchSchemasRequest) operation.
searchSchemasRequest - default SearchSchemasPublisher searchSchemasPaginator(Consumer<SearchSchemasRequest.Builder> searchSchemasRequest)
Search the schemas
This is a variant of searchSchemas(software.amazon.awssdk.services.schemas.model.SearchSchemasRequest)
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.schemas.paginators.SearchSchemasPublisher publisher = client.searchSchemasPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.schemas.paginators.SearchSchemasPublisher publisher = client.searchSchemasPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.schemas.model.SearchSchemasResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.schemas.model.SearchSchemasResponse 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 Limit 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
searchSchemas(software.amazon.awssdk.services.schemas.model.SearchSchemasRequest) operation.
This is a convenience which creates an instance of the SearchSchemasRequest.Builder avoiding the need to
create one manually via SearchSchemasRequest.builder()
searchSchemasRequest - A Consumer that will call methods on SearchSchemasRequest.Builder to create a request.default CompletableFuture<StartDiscovererResponse> startDiscoverer(StartDiscovererRequest startDiscovererRequest)
Starts the discoverer
startDiscovererRequest - default CompletableFuture<StartDiscovererResponse> startDiscoverer(Consumer<StartDiscovererRequest.Builder> startDiscovererRequest)
Starts the discoverer
This is a convenience which creates an instance of the StartDiscovererRequest.Builder avoiding the need
to create one manually via StartDiscovererRequest.builder()
startDiscovererRequest - A Consumer that will call methods on StartDiscovererRequest.Builder to create a request.default CompletableFuture<StopDiscovererResponse> stopDiscoverer(StopDiscovererRequest stopDiscovererRequest)
Stops the discoverer
stopDiscovererRequest - default CompletableFuture<StopDiscovererResponse> stopDiscoverer(Consumer<StopDiscovererRequest.Builder> stopDiscovererRequest)
Stops the discoverer
This is a convenience which creates an instance of the StopDiscovererRequest.Builder avoiding the need to
create one manually via StopDiscovererRequest.builder()
stopDiscovererRequest - A Consumer that will call methods on StopDiscovererRequest.Builder to create a request.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest)
Add tags to a resource.
tagResourceRequest - default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
Add tags to a resource.
This is a convenience which creates an instance of the TagResourceRequest.Builder avoiding the need to
create one manually via TagResourceRequest.builder()
tagResourceRequest - A Consumer that will call methods on TagResourceRequest.Builder to create a request.default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest)
Removes tags from a resource.
untagResourceRequest - default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Removes tags from a resource.
This is a convenience which creates an instance of the UntagResourceRequest.Builder avoiding the need to
create one manually via UntagResourceRequest.builder()
untagResourceRequest - A Consumer that will call methods on UntagResourceRequest.Builder to create a request.default CompletableFuture<UpdateDiscovererResponse> updateDiscoverer(UpdateDiscovererRequest updateDiscovererRequest)
Updates the discoverer
updateDiscovererRequest - default CompletableFuture<UpdateDiscovererResponse> updateDiscoverer(Consumer<UpdateDiscovererRequest.Builder> updateDiscovererRequest)
Updates the discoverer
This is a convenience which creates an instance of the UpdateDiscovererRequest.Builder avoiding the need
to create one manually via UpdateDiscovererRequest.builder()
updateDiscovererRequest - A Consumer that will call methods on UpdateDiscovererRequest.Builder to create a request.default CompletableFuture<UpdateRegistryResponse> updateRegistry(UpdateRegistryRequest updateRegistryRequest)
Updates a registry.
updateRegistryRequest - Updates the registry.default CompletableFuture<UpdateRegistryResponse> updateRegistry(Consumer<UpdateRegistryRequest.Builder> updateRegistryRequest)
Updates a registry.
This is a convenience which creates an instance of the UpdateRegistryRequest.Builder avoiding the need to
create one manually via UpdateRegistryRequest.builder()
updateRegistryRequest - A Consumer that will call methods on UpdateRegistryRequest.Builder to create a request.
Updates the registry.default CompletableFuture<UpdateSchemaResponse> updateSchema(UpdateSchemaRequest updateSchemaRequest)
Updates the schema definition
Inactive schemas will be deleted after two years.
updateSchemaRequest - default CompletableFuture<UpdateSchemaResponse> updateSchema(Consumer<UpdateSchemaRequest.Builder> updateSchemaRequest)
Updates the schema definition
Inactive schemas will be deleted after two years.
This is a convenience which creates an instance of the UpdateSchemaRequest.Builder avoiding the need to
create one manually via UpdateSchemaRequest.builder()
updateSchemaRequest - A Consumer that will call methods on UpdateSchemaRequest.Builder to create a request.default SchemasAsyncWaiter waiter()
SchemasAsyncWaiter using this client.
Waiters created via this method are managed by the SDK and resources will be released when the service client is closed.
SchemasAsyncWaiterCopyright © 2022. All rights reserved.