@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface LicenseManagerUserSubscriptionsAsyncClient extends SdkClient
builder() method.
With License Manager, you can create user-based subscriptions to utilize licensed software with a per user subscription fee on Amazon EC2 instances.
| 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 |
|---|---|
default CompletableFuture<AssociateUserResponse> |
associateUser(AssociateUserRequest associateUserRequest)
Associates the user to an EC2 instance to utilize user-based subscriptions.
|
default CompletableFuture<AssociateUserResponse> |
associateUser(Consumer<AssociateUserRequest.Builder> associateUserRequest)
Associates the user to an EC2 instance to utilize user-based subscriptions.
|
static LicenseManagerUserSubscriptionsAsyncClientBuilder |
builder()
Create a builder that can be used to configure and create a
LicenseManagerUserSubscriptionsAsyncClient. |
static LicenseManagerUserSubscriptionsAsyncClient |
create()
Create a
LicenseManagerUserSubscriptionsAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default CompletableFuture<DeregisterIdentityProviderResponse> |
deregisterIdentityProvider(Consumer<DeregisterIdentityProviderRequest.Builder> deregisterIdentityProviderRequest)
Deregisters the identity provider from providing user-based subscriptions.
|
default CompletableFuture<DeregisterIdentityProviderResponse> |
deregisterIdentityProvider(DeregisterIdentityProviderRequest deregisterIdentityProviderRequest)
Deregisters the identity provider from providing user-based subscriptions.
|
default CompletableFuture<DisassociateUserResponse> |
disassociateUser(Consumer<DisassociateUserRequest.Builder> disassociateUserRequest)
Disassociates the user from an EC2 instance providing user-based subscriptions.
|
default CompletableFuture<DisassociateUserResponse> |
disassociateUser(DisassociateUserRequest disassociateUserRequest)
Disassociates the user from an EC2 instance providing user-based subscriptions.
|
default CompletableFuture<ListIdentityProvidersResponse> |
listIdentityProviders(Consumer<ListIdentityProvidersRequest.Builder> listIdentityProvidersRequest)
Lists the identity providers for user-based subscriptions.
|
default CompletableFuture<ListIdentityProvidersResponse> |
listIdentityProviders(ListIdentityProvidersRequest listIdentityProvidersRequest)
Lists the identity providers for user-based subscriptions.
|
default ListIdentityProvidersPublisher |
listIdentityProvidersPaginator(Consumer<ListIdentityProvidersRequest.Builder> listIdentityProvidersRequest)
Lists the identity providers for user-based subscriptions.
|
default ListIdentityProvidersPublisher |
listIdentityProvidersPaginator(ListIdentityProvidersRequest listIdentityProvidersRequest)
Lists the identity providers for user-based subscriptions.
|
default CompletableFuture<ListInstancesResponse> |
listInstances(Consumer<ListInstancesRequest.Builder> listInstancesRequest)
Lists the EC2 instances providing user-based subscriptions.
|
default CompletableFuture<ListInstancesResponse> |
listInstances(ListInstancesRequest listInstancesRequest)
Lists the EC2 instances providing user-based subscriptions.
|
default ListInstancesPublisher |
listInstancesPaginator(Consumer<ListInstancesRequest.Builder> listInstancesRequest)
Lists the EC2 instances providing user-based subscriptions.
|
default ListInstancesPublisher |
listInstancesPaginator(ListInstancesRequest listInstancesRequest)
Lists the EC2 instances providing user-based subscriptions.
|
default CompletableFuture<ListProductSubscriptionsResponse> |
listProductSubscriptions(Consumer<ListProductSubscriptionsRequest.Builder> listProductSubscriptionsRequest)
Lists the user-based subscription products available from an identity provider.
|
default CompletableFuture<ListProductSubscriptionsResponse> |
listProductSubscriptions(ListProductSubscriptionsRequest listProductSubscriptionsRequest)
Lists the user-based subscription products available from an identity provider.
|
default ListProductSubscriptionsPublisher |
listProductSubscriptionsPaginator(Consumer<ListProductSubscriptionsRequest.Builder> listProductSubscriptionsRequest)
Lists the user-based subscription products available from an identity provider.
|
default ListProductSubscriptionsPublisher |
listProductSubscriptionsPaginator(ListProductSubscriptionsRequest listProductSubscriptionsRequest)
Lists the user-based subscription products available from an identity provider.
|
default CompletableFuture<ListUserAssociationsResponse> |
listUserAssociations(Consumer<ListUserAssociationsRequest.Builder> listUserAssociationsRequest)
Lists user associations for an identity provider.
|
default CompletableFuture<ListUserAssociationsResponse> |
listUserAssociations(ListUserAssociationsRequest listUserAssociationsRequest)
Lists user associations for an identity provider.
|
default ListUserAssociationsPublisher |
listUserAssociationsPaginator(Consumer<ListUserAssociationsRequest.Builder> listUserAssociationsRequest)
Lists user associations for an identity provider.
|
default ListUserAssociationsPublisher |
listUserAssociationsPaginator(ListUserAssociationsRequest listUserAssociationsRequest)
Lists user associations for an identity provider.
|
default CompletableFuture<RegisterIdentityProviderResponse> |
registerIdentityProvider(Consumer<RegisterIdentityProviderRequest.Builder> registerIdentityProviderRequest)
Registers an identity provider for user-based subscriptions.
|
default CompletableFuture<RegisterIdentityProviderResponse> |
registerIdentityProvider(RegisterIdentityProviderRequest registerIdentityProviderRequest)
Registers an identity provider for user-based subscriptions.
|
default CompletableFuture<StartProductSubscriptionResponse> |
startProductSubscription(Consumer<StartProductSubscriptionRequest.Builder> startProductSubscriptionRequest)
Starts a product subscription for a user with the specified identity provider.
|
default CompletableFuture<StartProductSubscriptionResponse> |
startProductSubscription(StartProductSubscriptionRequest startProductSubscriptionRequest)
Starts a product subscription for a user with the specified identity provider.
|
default CompletableFuture<StopProductSubscriptionResponse> |
stopProductSubscription(Consumer<StopProductSubscriptionRequest.Builder> stopProductSubscriptionRequest)
Stops a product subscription for a user with the specified identity provider.
|
default CompletableFuture<StopProductSubscriptionResponse> |
stopProductSubscription(StopProductSubscriptionRequest stopProductSubscriptionRequest)
Stops a product subscription for a user with the specified identity provider.
|
default CompletableFuture<UpdateIdentityProviderSettingsResponse> |
updateIdentityProviderSettings(Consumer<UpdateIdentityProviderSettingsRequest.Builder> updateIdentityProviderSettingsRequest)
Updates additional product configuration settings for the registered identity provider.
|
default CompletableFuture<UpdateIdentityProviderSettingsResponse> |
updateIdentityProviderSettings(UpdateIdentityProviderSettingsRequest updateIdentityProviderSettingsRequest)
Updates additional product configuration settings for the registered identity provider.
|
serviceNameclosestatic final String SERVICE_NAME
static final String SERVICE_METADATA_ID
ServiceMetadataProvider.default CompletableFuture<AssociateUserResponse> associateUser(AssociateUserRequest associateUserRequest)
Associates the user to an EC2 instance to utilize user-based subscriptions.
Your estimated bill for charges on the number of users and related costs will take 48 hours to appear for billing periods that haven't closed (marked as Pending billing status) in Amazon Web Services Billing. For more information, see Viewing your monthly charges in the Amazon Web Services Billing User Guide.
associateUserRequest - default CompletableFuture<AssociateUserResponse> associateUser(Consumer<AssociateUserRequest.Builder> associateUserRequest)
Associates the user to an EC2 instance to utilize user-based subscriptions.
Your estimated bill for charges on the number of users and related costs will take 48 hours to appear for billing periods that haven't closed (marked as Pending billing status) in Amazon Web Services Billing. For more information, see Viewing your monthly charges in the Amazon Web Services Billing User Guide.
This is a convenience which creates an instance of the AssociateUserRequest.Builder avoiding the need to
create one manually via AssociateUserRequest.builder()
associateUserRequest - A Consumer that will call methods on AssociateUserRequest.Builder to create a request.default CompletableFuture<DeregisterIdentityProviderResponse> deregisterIdentityProvider(DeregisterIdentityProviderRequest deregisterIdentityProviderRequest)
Deregisters the identity provider from providing user-based subscriptions.
deregisterIdentityProviderRequest - default CompletableFuture<DeregisterIdentityProviderResponse> deregisterIdentityProvider(Consumer<DeregisterIdentityProviderRequest.Builder> deregisterIdentityProviderRequest)
Deregisters the identity provider from providing user-based subscriptions.
This is a convenience which creates an instance of the DeregisterIdentityProviderRequest.Builder avoiding
the need to create one manually via DeregisterIdentityProviderRequest.builder()
deregisterIdentityProviderRequest - A Consumer that will call methods on DeregisterIdentityProviderRequest.Builder to create a
request.default CompletableFuture<DisassociateUserResponse> disassociateUser(DisassociateUserRequest disassociateUserRequest)
Disassociates the user from an EC2 instance providing user-based subscriptions.
disassociateUserRequest - default CompletableFuture<DisassociateUserResponse> disassociateUser(Consumer<DisassociateUserRequest.Builder> disassociateUserRequest)
Disassociates the user from an EC2 instance providing user-based subscriptions.
This is a convenience which creates an instance of the DisassociateUserRequest.Builder avoiding the need
to create one manually via DisassociateUserRequest.builder()
disassociateUserRequest - A Consumer that will call methods on DisassociateUserRequest.Builder to create a request.default CompletableFuture<ListIdentityProvidersResponse> listIdentityProviders(ListIdentityProvidersRequest listIdentityProvidersRequest)
Lists the identity providers for user-based subscriptions.
listIdentityProvidersRequest - default CompletableFuture<ListIdentityProvidersResponse> listIdentityProviders(Consumer<ListIdentityProvidersRequest.Builder> listIdentityProvidersRequest)
Lists the identity providers for user-based subscriptions.
This is a convenience which creates an instance of the ListIdentityProvidersRequest.Builder avoiding the
need to create one manually via ListIdentityProvidersRequest.builder()
listIdentityProvidersRequest - A Consumer that will call methods on ListIdentityProvidersRequest.Builder to create a
request.default ListIdentityProvidersPublisher listIdentityProvidersPaginator(ListIdentityProvidersRequest listIdentityProvidersRequest)
Lists the identity providers for user-based subscriptions.
This is a variant of
listIdentityProviders(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListIdentityProvidersRequest)
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.licensemanagerusersubscriptions.paginators.ListIdentityProvidersPublisher publisher = client.listIdentityProvidersPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListIdentityProvidersPublisher publisher = client.listIdentityProvidersPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListIdentityProvidersResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListIdentityProvidersResponse 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
listIdentityProviders(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListIdentityProvidersRequest)
operation.
listIdentityProvidersRequest - default ListIdentityProvidersPublisher listIdentityProvidersPaginator(Consumer<ListIdentityProvidersRequest.Builder> listIdentityProvidersRequest)
Lists the identity providers for user-based subscriptions.
This is a variant of
listIdentityProviders(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListIdentityProvidersRequest)
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.licensemanagerusersubscriptions.paginators.ListIdentityProvidersPublisher publisher = client.listIdentityProvidersPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListIdentityProvidersPublisher publisher = client.listIdentityProvidersPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListIdentityProvidersResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListIdentityProvidersResponse 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
listIdentityProviders(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListIdentityProvidersRequest)
operation.
This is a convenience which creates an instance of the ListIdentityProvidersRequest.Builder avoiding the
need to create one manually via ListIdentityProvidersRequest.builder()
listIdentityProvidersRequest - A Consumer that will call methods on ListIdentityProvidersRequest.Builder to create a
request.default CompletableFuture<ListInstancesResponse> listInstances(ListInstancesRequest listInstancesRequest)
Lists the EC2 instances providing user-based subscriptions.
listInstancesRequest - default CompletableFuture<ListInstancesResponse> listInstances(Consumer<ListInstancesRequest.Builder> listInstancesRequest)
Lists the EC2 instances providing user-based subscriptions.
This is a convenience which creates an instance of the ListInstancesRequest.Builder avoiding the need to
create one manually via ListInstancesRequest.builder()
listInstancesRequest - A Consumer that will call methods on ListInstancesRequest.Builder to create a request.default ListInstancesPublisher listInstancesPaginator(ListInstancesRequest listInstancesRequest)
Lists the EC2 instances providing user-based subscriptions.
This is a variant of
listInstances(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListInstancesRequest)
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.licensemanagerusersubscriptions.paginators.ListInstancesPublisher publisher = client.listInstancesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListInstancesPublisher publisher = client.listInstancesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListInstancesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListInstancesResponse 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
listInstances(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListInstancesRequest)
operation.
listInstancesRequest - default ListInstancesPublisher listInstancesPaginator(Consumer<ListInstancesRequest.Builder> listInstancesRequest)
Lists the EC2 instances providing user-based subscriptions.
This is a variant of
listInstances(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListInstancesRequest)
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.licensemanagerusersubscriptions.paginators.ListInstancesPublisher publisher = client.listInstancesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListInstancesPublisher publisher = client.listInstancesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListInstancesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListInstancesResponse 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
listInstances(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListInstancesRequest)
operation.
This is a convenience which creates an instance of the ListInstancesRequest.Builder avoiding the need to
create one manually via ListInstancesRequest.builder()
listInstancesRequest - A Consumer that will call methods on ListInstancesRequest.Builder to create a request.default CompletableFuture<ListProductSubscriptionsResponse> listProductSubscriptions(ListProductSubscriptionsRequest listProductSubscriptionsRequest)
Lists the user-based subscription products available from an identity provider.
listProductSubscriptionsRequest - default CompletableFuture<ListProductSubscriptionsResponse> listProductSubscriptions(Consumer<ListProductSubscriptionsRequest.Builder> listProductSubscriptionsRequest)
Lists the user-based subscription products available from an identity provider.
This is a convenience which creates an instance of the ListProductSubscriptionsRequest.Builder avoiding
the need to create one manually via ListProductSubscriptionsRequest.builder()
listProductSubscriptionsRequest - A Consumer that will call methods on ListProductSubscriptionsRequest.Builder to create a
request.default ListProductSubscriptionsPublisher listProductSubscriptionsPaginator(ListProductSubscriptionsRequest listProductSubscriptionsRequest)
Lists the user-based subscription products available from an identity provider.
This is a variant of
listProductSubscriptions(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListProductSubscriptionsRequest)
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.licensemanagerusersubscriptions.paginators.ListProductSubscriptionsPublisher publisher = client.listProductSubscriptionsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListProductSubscriptionsPublisher publisher = client.listProductSubscriptionsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListProductSubscriptionsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListProductSubscriptionsResponse 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
listProductSubscriptions(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListProductSubscriptionsRequest)
operation.
listProductSubscriptionsRequest - default ListProductSubscriptionsPublisher listProductSubscriptionsPaginator(Consumer<ListProductSubscriptionsRequest.Builder> listProductSubscriptionsRequest)
Lists the user-based subscription products available from an identity provider.
This is a variant of
listProductSubscriptions(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListProductSubscriptionsRequest)
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.licensemanagerusersubscriptions.paginators.ListProductSubscriptionsPublisher publisher = client.listProductSubscriptionsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListProductSubscriptionsPublisher publisher = client.listProductSubscriptionsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListProductSubscriptionsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListProductSubscriptionsResponse 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
listProductSubscriptions(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListProductSubscriptionsRequest)
operation.
This is a convenience which creates an instance of the ListProductSubscriptionsRequest.Builder avoiding
the need to create one manually via ListProductSubscriptionsRequest.builder()
listProductSubscriptionsRequest - A Consumer that will call methods on ListProductSubscriptionsRequest.Builder to create a
request.default CompletableFuture<ListUserAssociationsResponse> listUserAssociations(ListUserAssociationsRequest listUserAssociationsRequest)
Lists user associations for an identity provider.
listUserAssociationsRequest - default CompletableFuture<ListUserAssociationsResponse> listUserAssociations(Consumer<ListUserAssociationsRequest.Builder> listUserAssociationsRequest)
Lists user associations for an identity provider.
This is a convenience which creates an instance of the ListUserAssociationsRequest.Builder avoiding the
need to create one manually via ListUserAssociationsRequest.builder()
listUserAssociationsRequest - A Consumer that will call methods on ListUserAssociationsRequest.Builder to create a
request.default ListUserAssociationsPublisher listUserAssociationsPaginator(ListUserAssociationsRequest listUserAssociationsRequest)
Lists user associations for an identity provider.
This is a variant of
listUserAssociations(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListUserAssociationsRequest)
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.licensemanagerusersubscriptions.paginators.ListUserAssociationsPublisher publisher = client.listUserAssociationsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListUserAssociationsPublisher publisher = client.listUserAssociationsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListUserAssociationsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListUserAssociationsResponse 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
listUserAssociations(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListUserAssociationsRequest)
operation.
listUserAssociationsRequest - default ListUserAssociationsPublisher listUserAssociationsPaginator(Consumer<ListUserAssociationsRequest.Builder> listUserAssociationsRequest)
Lists user associations for an identity provider.
This is a variant of
listUserAssociations(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListUserAssociationsRequest)
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.licensemanagerusersubscriptions.paginators.ListUserAssociationsPublisher publisher = client.listUserAssociationsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListUserAssociationsPublisher publisher = client.listUserAssociationsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListUserAssociationsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListUserAssociationsResponse 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
listUserAssociations(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListUserAssociationsRequest)
operation.
This is a convenience which creates an instance of the ListUserAssociationsRequest.Builder avoiding the
need to create one manually via ListUserAssociationsRequest.builder()
listUserAssociationsRequest - A Consumer that will call methods on ListUserAssociationsRequest.Builder to create a
request.default CompletableFuture<RegisterIdentityProviderResponse> registerIdentityProvider(RegisterIdentityProviderRequest registerIdentityProviderRequest)
Registers an identity provider for user-based subscriptions.
registerIdentityProviderRequest - default CompletableFuture<RegisterIdentityProviderResponse> registerIdentityProvider(Consumer<RegisterIdentityProviderRequest.Builder> registerIdentityProviderRequest)
Registers an identity provider for user-based subscriptions.
This is a convenience which creates an instance of the RegisterIdentityProviderRequest.Builder avoiding
the need to create one manually via RegisterIdentityProviderRequest.builder()
registerIdentityProviderRequest - A Consumer that will call methods on RegisterIdentityProviderRequest.Builder to create a
request.default CompletableFuture<StartProductSubscriptionResponse> startProductSubscription(StartProductSubscriptionRequest startProductSubscriptionRequest)
Starts a product subscription for a user with the specified identity provider.
Your estimated bill for charges on the number of users and related costs will take 48 hours to appear for billing periods that haven't closed (marked as Pending billing status) in Amazon Web Services Billing. For more information, see Viewing your monthly charges in the Amazon Web Services Billing User Guide.
startProductSubscriptionRequest - default CompletableFuture<StartProductSubscriptionResponse> startProductSubscription(Consumer<StartProductSubscriptionRequest.Builder> startProductSubscriptionRequest)
Starts a product subscription for a user with the specified identity provider.
Your estimated bill for charges on the number of users and related costs will take 48 hours to appear for billing periods that haven't closed (marked as Pending billing status) in Amazon Web Services Billing. For more information, see Viewing your monthly charges in the Amazon Web Services Billing User Guide.
This is a convenience which creates an instance of the StartProductSubscriptionRequest.Builder avoiding
the need to create one manually via StartProductSubscriptionRequest.builder()
startProductSubscriptionRequest - A Consumer that will call methods on StartProductSubscriptionRequest.Builder to create a
request.default CompletableFuture<StopProductSubscriptionResponse> stopProductSubscription(StopProductSubscriptionRequest stopProductSubscriptionRequest)
Stops a product subscription for a user with the specified identity provider.
stopProductSubscriptionRequest - default CompletableFuture<StopProductSubscriptionResponse> stopProductSubscription(Consumer<StopProductSubscriptionRequest.Builder> stopProductSubscriptionRequest)
Stops a product subscription for a user with the specified identity provider.
This is a convenience which creates an instance of the StopProductSubscriptionRequest.Builder avoiding
the need to create one manually via StopProductSubscriptionRequest.builder()
stopProductSubscriptionRequest - A Consumer that will call methods on StopProductSubscriptionRequest.Builder to create a
request.default CompletableFuture<UpdateIdentityProviderSettingsResponse> updateIdentityProviderSettings(UpdateIdentityProviderSettingsRequest updateIdentityProviderSettingsRequest)
Updates additional product configuration settings for the registered identity provider.
updateIdentityProviderSettingsRequest - default CompletableFuture<UpdateIdentityProviderSettingsResponse> updateIdentityProviderSettings(Consumer<UpdateIdentityProviderSettingsRequest.Builder> updateIdentityProviderSettingsRequest)
Updates additional product configuration settings for the registered identity provider.
This is a convenience which creates an instance of the UpdateIdentityProviderSettingsRequest.Builder
avoiding the need to create one manually via UpdateIdentityProviderSettingsRequest.builder()
updateIdentityProviderSettingsRequest - A Consumer that will call methods on UpdateIdentityProviderSettingsRequest.Builder to
create a request.static LicenseManagerUserSubscriptionsAsyncClient create()
LicenseManagerUserSubscriptionsAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static LicenseManagerUserSubscriptionsAsyncClientBuilder builder()
LicenseManagerUserSubscriptionsAsyncClient.Copyright © 2023. All rights reserved.