Interface LicenseManagerUserSubscriptionsClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptiondefault AssociateUserResponseassociateUser(Consumer<AssociateUserRequest.Builder> associateUserRequest) Associates the user to an EC2 instance to utilize user-based subscriptions.default AssociateUserResponseassociateUser(AssociateUserRequest associateUserRequest) Associates the user to an EC2 instance to utilize user-based subscriptions.builder()Create a builder that can be used to configure and create aLicenseManagerUserSubscriptionsClient.create()Create aLicenseManagerUserSubscriptionsClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.deregisterIdentityProvider(Consumer<DeregisterIdentityProviderRequest.Builder> deregisterIdentityProviderRequest) Deregisters the identity provider from providing user-based subscriptions.deregisterIdentityProvider(DeregisterIdentityProviderRequest deregisterIdentityProviderRequest) Deregisters the identity provider from providing user-based subscriptions.default DisassociateUserResponsedisassociateUser(Consumer<DisassociateUserRequest.Builder> disassociateUserRequest) Disassociates the user from an EC2 instance providing user-based subscriptions.default DisassociateUserResponsedisassociateUser(DisassociateUserRequest disassociateUserRequest) Disassociates the user from an EC2 instance providing user-based subscriptions.default ListIdentityProvidersResponselistIdentityProviders(Consumer<ListIdentityProvidersRequest.Builder> listIdentityProvidersRequest) Lists the identity providers for user-based subscriptions.default ListIdentityProvidersResponselistIdentityProviders(ListIdentityProvidersRequest listIdentityProvidersRequest) Lists the identity providers for user-based subscriptions.default ListIdentityProvidersIterablelistIdentityProvidersPaginator(Consumer<ListIdentityProvidersRequest.Builder> listIdentityProvidersRequest) Lists the identity providers for user-based subscriptions.default ListIdentityProvidersIterablelistIdentityProvidersPaginator(ListIdentityProvidersRequest listIdentityProvidersRequest) Lists the identity providers for user-based subscriptions.default ListInstancesResponselistInstances(Consumer<ListInstancesRequest.Builder> listInstancesRequest) Lists the EC2 instances providing user-based subscriptions.default ListInstancesResponselistInstances(ListInstancesRequest listInstancesRequest) Lists the EC2 instances providing user-based subscriptions.default ListInstancesIterablelistInstancesPaginator(Consumer<ListInstancesRequest.Builder> listInstancesRequest) Lists the EC2 instances providing user-based subscriptions.default ListInstancesIterablelistInstancesPaginator(ListInstancesRequest listInstancesRequest) Lists the EC2 instances providing user-based subscriptions.default ListProductSubscriptionsResponselistProductSubscriptions(Consumer<ListProductSubscriptionsRequest.Builder> listProductSubscriptionsRequest) Lists the user-based subscription products available from an identity provider.default ListProductSubscriptionsResponselistProductSubscriptions(ListProductSubscriptionsRequest listProductSubscriptionsRequest) Lists the user-based subscription products available from an identity provider.default ListProductSubscriptionsIterablelistProductSubscriptionsPaginator(Consumer<ListProductSubscriptionsRequest.Builder> listProductSubscriptionsRequest) Lists the user-based subscription products available from an identity provider.default ListProductSubscriptionsIterablelistProductSubscriptionsPaginator(ListProductSubscriptionsRequest listProductSubscriptionsRequest) Lists the user-based subscription products available from an identity provider.default ListUserAssociationsResponselistUserAssociations(Consumer<ListUserAssociationsRequest.Builder> listUserAssociationsRequest) Lists user associations for an identity provider.default ListUserAssociationsResponselistUserAssociations(ListUserAssociationsRequest listUserAssociationsRequest) Lists user associations for an identity provider.default ListUserAssociationsIterablelistUserAssociationsPaginator(Consumer<ListUserAssociationsRequest.Builder> listUserAssociationsRequest) Lists user associations for an identity provider.default ListUserAssociationsIterablelistUserAssociationsPaginator(ListUserAssociationsRequest listUserAssociationsRequest) Lists user associations for an identity provider.default RegisterIdentityProviderResponseregisterIdentityProvider(Consumer<RegisterIdentityProviderRequest.Builder> registerIdentityProviderRequest) Registers an identity provider for user-based subscriptions.default RegisterIdentityProviderResponseregisterIdentityProvider(RegisterIdentityProviderRequest registerIdentityProviderRequest) Registers an identity provider for user-based subscriptions.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault StartProductSubscriptionResponsestartProductSubscription(Consumer<StartProductSubscriptionRequest.Builder> startProductSubscriptionRequest) Starts a product subscription for a user with the specified identity provider.default StartProductSubscriptionResponsestartProductSubscription(StartProductSubscriptionRequest startProductSubscriptionRequest) Starts a product subscription for a user with the specified identity provider.default StopProductSubscriptionResponsestopProductSubscription(Consumer<StopProductSubscriptionRequest.Builder> stopProductSubscriptionRequest) Stops a product subscription for a user with the specified identity provider.default StopProductSubscriptionResponsestopProductSubscription(StopProductSubscriptionRequest stopProductSubscriptionRequest) Stops a product subscription for a user with the specified identity provider.updateIdentityProviderSettings(Consumer<UpdateIdentityProviderSettingsRequest.Builder> updateIdentityProviderSettingsRequest) Updates additional product configuration settings for the registered identity provider.updateIdentityProviderSettings(UpdateIdentityProviderSettingsRequest updateIdentityProviderSettingsRequest) Updates additional product configuration settings for the registered identity provider.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
Method Details
-
associateUser
default AssociateUserResponse associateUser(AssociateUserRequest associateUserRequest) throws ServiceQuotaExceededException, ConflictException, ValidationException, ThrottlingException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, LicenseManagerUserSubscriptionsException 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.
- Parameters:
associateUserRequest-- Returns:
- Result of the AssociateUser operation returned by the service.
- See Also:
-
associateUser
default AssociateUserResponse associateUser(Consumer<AssociateUserRequest.Builder> associateUserRequest) throws ServiceQuotaExceededException, ConflictException, ValidationException, ThrottlingException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, LicenseManagerUserSubscriptionsException 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.Builderavoiding the need to create one manually viaAssociateUserRequest.builder()- Parameters:
associateUserRequest- AConsumerthat will call methods onAssociateUserRequest.Builderto create a request.- Returns:
- Result of the AssociateUser operation returned by the service.
- See Also:
-
deregisterIdentityProvider
default DeregisterIdentityProviderResponse deregisterIdentityProvider(DeregisterIdentityProviderRequest deregisterIdentityProviderRequest) throws ServiceQuotaExceededException, ConflictException, ValidationException, ThrottlingException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, LicenseManagerUserSubscriptionsException Deregisters the identity provider from providing user-based subscriptions.
- Parameters:
deregisterIdentityProviderRequest-- Returns:
- Result of the DeregisterIdentityProvider operation returned by the service.
- See Also:
-
deregisterIdentityProvider
default DeregisterIdentityProviderResponse deregisterIdentityProvider(Consumer<DeregisterIdentityProviderRequest.Builder> deregisterIdentityProviderRequest) throws ServiceQuotaExceededException, ConflictException, ValidationException, ThrottlingException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, LicenseManagerUserSubscriptionsException Deregisters the identity provider from providing user-based subscriptions.
This is a convenience which creates an instance of the
DeregisterIdentityProviderRequest.Builderavoiding the need to create one manually viaDeregisterIdentityProviderRequest.builder()- Parameters:
deregisterIdentityProviderRequest- AConsumerthat will call methods onDeregisterIdentityProviderRequest.Builderto create a request.- Returns:
- Result of the DeregisterIdentityProvider operation returned by the service.
- See Also:
-
disassociateUser
default DisassociateUserResponse disassociateUser(DisassociateUserRequest disassociateUserRequest) throws ServiceQuotaExceededException, ConflictException, ValidationException, ThrottlingException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, LicenseManagerUserSubscriptionsException Disassociates the user from an EC2 instance providing user-based subscriptions.
- Parameters:
disassociateUserRequest-- Returns:
- Result of the DisassociateUser operation returned by the service.
- See Also:
-
disassociateUser
default DisassociateUserResponse disassociateUser(Consumer<DisassociateUserRequest.Builder> disassociateUserRequest) throws ServiceQuotaExceededException, ConflictException, ValidationException, ThrottlingException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, LicenseManagerUserSubscriptionsException Disassociates the user from an EC2 instance providing user-based subscriptions.
This is a convenience which creates an instance of the
DisassociateUserRequest.Builderavoiding the need to create one manually viaDisassociateUserRequest.builder()- Parameters:
disassociateUserRequest- AConsumerthat will call methods onDisassociateUserRequest.Builderto create a request.- Returns:
- Result of the DisassociateUser operation returned by the service.
- See Also:
-
listIdentityProviders
default ListIdentityProvidersResponse listIdentityProviders(ListIdentityProvidersRequest listIdentityProvidersRequest) throws ServiceQuotaExceededException, ConflictException, ValidationException, ThrottlingException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, LicenseManagerUserSubscriptionsException Lists the identity providers for user-based subscriptions.
- Parameters:
listIdentityProvidersRequest-- Returns:
- Result of the ListIdentityProviders operation returned by the service.
- See Also:
-
listIdentityProviders
default ListIdentityProvidersResponse listIdentityProviders(Consumer<ListIdentityProvidersRequest.Builder> listIdentityProvidersRequest) throws ServiceQuotaExceededException, ConflictException, ValidationException, ThrottlingException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, LicenseManagerUserSubscriptionsException Lists the identity providers for user-based subscriptions.
This is a convenience which creates an instance of the
ListIdentityProvidersRequest.Builderavoiding the need to create one manually viaListIdentityProvidersRequest.builder()- Parameters:
listIdentityProvidersRequest- AConsumerthat will call methods onListIdentityProvidersRequest.Builderto create a request.- Returns:
- Result of the ListIdentityProviders operation returned by the service.
- See Also:
-
listIdentityProvidersPaginator
default ListIdentityProvidersIterable listIdentityProvidersPaginator(ListIdentityProvidersRequest listIdentityProvidersRequest) throws ServiceQuotaExceededException, ConflictException, ValidationException, ThrottlingException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, LicenseManagerUserSubscriptionsException 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 iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListIdentityProvidersIterable responses = client.listIdentityProvidersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListIdentityProvidersIterable responses = client .listIdentityProvidersPaginator(request); for (software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListIdentityProvidersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListIdentityProvidersIterable responses = client.listIdentityProvidersPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listIdentityProviders(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListIdentityProvidersRequest)operation.- Parameters:
listIdentityProvidersRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listIdentityProvidersPaginator
default ListIdentityProvidersIterable listIdentityProvidersPaginator(Consumer<ListIdentityProvidersRequest.Builder> listIdentityProvidersRequest) throws ServiceQuotaExceededException, ConflictException, ValidationException, ThrottlingException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, LicenseManagerUserSubscriptionsException 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 iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListIdentityProvidersIterable responses = client.listIdentityProvidersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListIdentityProvidersIterable responses = client .listIdentityProvidersPaginator(request); for (software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListIdentityProvidersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListIdentityProvidersIterable responses = client.listIdentityProvidersPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listIdentityProviders(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListIdentityProvidersRequest)operation.This is a convenience which creates an instance of the
ListIdentityProvidersRequest.Builderavoiding the need to create one manually viaListIdentityProvidersRequest.builder()- Parameters:
listIdentityProvidersRequest- AConsumerthat will call methods onListIdentityProvidersRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listInstances
default ListInstancesResponse listInstances(ListInstancesRequest listInstancesRequest) throws ServiceQuotaExceededException, ConflictException, ValidationException, ThrottlingException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, LicenseManagerUserSubscriptionsException Lists the EC2 instances providing user-based subscriptions.
- Parameters:
listInstancesRequest-- Returns:
- Result of the ListInstances operation returned by the service.
- See Also:
-
listInstances
default ListInstancesResponse listInstances(Consumer<ListInstancesRequest.Builder> listInstancesRequest) throws ServiceQuotaExceededException, ConflictException, ValidationException, ThrottlingException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, LicenseManagerUserSubscriptionsException Lists the EC2 instances providing user-based subscriptions.
This is a convenience which creates an instance of the
ListInstancesRequest.Builderavoiding the need to create one manually viaListInstancesRequest.builder()- Parameters:
listInstancesRequest- AConsumerthat will call methods onListInstancesRequest.Builderto create a request.- Returns:
- Result of the ListInstances operation returned by the service.
- See Also:
-
listInstancesPaginator
default ListInstancesIterable listInstancesPaginator(ListInstancesRequest listInstancesRequest) throws ServiceQuotaExceededException, ConflictException, ValidationException, ThrottlingException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, LicenseManagerUserSubscriptionsException 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 iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListInstancesIterable responses = client.listInstancesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListInstancesIterable responses = client .listInstancesPaginator(request); for (software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListInstancesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListInstancesIterable responses = client.listInstancesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listInstances(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListInstancesRequest)operation.- Parameters:
listInstancesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listInstancesPaginator
default ListInstancesIterable listInstancesPaginator(Consumer<ListInstancesRequest.Builder> listInstancesRequest) throws ServiceQuotaExceededException, ConflictException, ValidationException, ThrottlingException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, LicenseManagerUserSubscriptionsException 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 iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListInstancesIterable responses = client.listInstancesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListInstancesIterable responses = client .listInstancesPaginator(request); for (software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListInstancesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListInstancesIterable responses = client.listInstancesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listInstances(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListInstancesRequest)operation.This is a convenience which creates an instance of the
ListInstancesRequest.Builderavoiding the need to create one manually viaListInstancesRequest.builder()- Parameters:
listInstancesRequest- AConsumerthat will call methods onListInstancesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listProductSubscriptions
default ListProductSubscriptionsResponse listProductSubscriptions(ListProductSubscriptionsRequest listProductSubscriptionsRequest) throws ServiceQuotaExceededException, ConflictException, ValidationException, ThrottlingException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, LicenseManagerUserSubscriptionsException Lists the user-based subscription products available from an identity provider.
- Parameters:
listProductSubscriptionsRequest-- Returns:
- Result of the ListProductSubscriptions operation returned by the service.
- See Also:
-
listProductSubscriptions
default ListProductSubscriptionsResponse listProductSubscriptions(Consumer<ListProductSubscriptionsRequest.Builder> listProductSubscriptionsRequest) throws ServiceQuotaExceededException, ConflictException, ValidationException, ThrottlingException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, LicenseManagerUserSubscriptionsException Lists the user-based subscription products available from an identity provider.
This is a convenience which creates an instance of the
ListProductSubscriptionsRequest.Builderavoiding the need to create one manually viaListProductSubscriptionsRequest.builder()- Parameters:
listProductSubscriptionsRequest- AConsumerthat will call methods onListProductSubscriptionsRequest.Builderto create a request.- Returns:
- Result of the ListProductSubscriptions operation returned by the service.
- See Also:
-
listProductSubscriptionsPaginator
default ListProductSubscriptionsIterable listProductSubscriptionsPaginator(ListProductSubscriptionsRequest listProductSubscriptionsRequest) throws ServiceQuotaExceededException, ConflictException, ValidationException, ThrottlingException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, LicenseManagerUserSubscriptionsException 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 iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListProductSubscriptionsIterable responses = client.listProductSubscriptionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListProductSubscriptionsIterable responses = client .listProductSubscriptionsPaginator(request); for (software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListProductSubscriptionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListProductSubscriptionsIterable responses = client.listProductSubscriptionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listProductSubscriptions(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListProductSubscriptionsRequest)operation.- Parameters:
listProductSubscriptionsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listProductSubscriptionsPaginator
default ListProductSubscriptionsIterable listProductSubscriptionsPaginator(Consumer<ListProductSubscriptionsRequest.Builder> listProductSubscriptionsRequest) throws ServiceQuotaExceededException, ConflictException, ValidationException, ThrottlingException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, LicenseManagerUserSubscriptionsException 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 iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListProductSubscriptionsIterable responses = client.listProductSubscriptionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListProductSubscriptionsIterable responses = client .listProductSubscriptionsPaginator(request); for (software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListProductSubscriptionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListProductSubscriptionsIterable responses = client.listProductSubscriptionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listProductSubscriptions(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListProductSubscriptionsRequest)operation.This is a convenience which creates an instance of the
ListProductSubscriptionsRequest.Builderavoiding the need to create one manually viaListProductSubscriptionsRequest.builder()- Parameters:
listProductSubscriptionsRequest- AConsumerthat will call methods onListProductSubscriptionsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listUserAssociations
default ListUserAssociationsResponse listUserAssociations(ListUserAssociationsRequest listUserAssociationsRequest) throws ServiceQuotaExceededException, ConflictException, ValidationException, ThrottlingException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, LicenseManagerUserSubscriptionsException Lists user associations for an identity provider.
- Parameters:
listUserAssociationsRequest-- Returns:
- Result of the ListUserAssociations operation returned by the service.
- See Also:
-
listUserAssociations
default ListUserAssociationsResponse listUserAssociations(Consumer<ListUserAssociationsRequest.Builder> listUserAssociationsRequest) throws ServiceQuotaExceededException, ConflictException, ValidationException, ThrottlingException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, LicenseManagerUserSubscriptionsException Lists user associations for an identity provider.
This is a convenience which creates an instance of the
ListUserAssociationsRequest.Builderavoiding the need to create one manually viaListUserAssociationsRequest.builder()- Parameters:
listUserAssociationsRequest- AConsumerthat will call methods onListUserAssociationsRequest.Builderto create a request.- Returns:
- Result of the ListUserAssociations operation returned by the service.
- See Also:
-
listUserAssociationsPaginator
default ListUserAssociationsIterable listUserAssociationsPaginator(ListUserAssociationsRequest listUserAssociationsRequest) throws ServiceQuotaExceededException, ConflictException, ValidationException, ThrottlingException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, LicenseManagerUserSubscriptionsException 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 iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListUserAssociationsIterable responses = client.listUserAssociationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListUserAssociationsIterable responses = client .listUserAssociationsPaginator(request); for (software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListUserAssociationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListUserAssociationsIterable responses = client.listUserAssociationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listUserAssociations(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListUserAssociationsRequest)operation.- Parameters:
listUserAssociationsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listUserAssociationsPaginator
default ListUserAssociationsIterable listUserAssociationsPaginator(Consumer<ListUserAssociationsRequest.Builder> listUserAssociationsRequest) throws ServiceQuotaExceededException, ConflictException, ValidationException, ThrottlingException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, LicenseManagerUserSubscriptionsException 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 iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListUserAssociationsIterable responses = client.listUserAssociationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListUserAssociationsIterable responses = client .listUserAssociationsPaginator(request); for (software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListUserAssociationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.licensemanagerusersubscriptions.paginators.ListUserAssociationsIterable responses = client.listUserAssociationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listUserAssociations(software.amazon.awssdk.services.licensemanagerusersubscriptions.model.ListUserAssociationsRequest)operation.This is a convenience which creates an instance of the
ListUserAssociationsRequest.Builderavoiding the need to create one manually viaListUserAssociationsRequest.builder()- Parameters:
listUserAssociationsRequest- AConsumerthat will call methods onListUserAssociationsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
registerIdentityProvider
default RegisterIdentityProviderResponse registerIdentityProvider(RegisterIdentityProviderRequest registerIdentityProviderRequest) throws ServiceQuotaExceededException, ConflictException, ValidationException, ThrottlingException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, LicenseManagerUserSubscriptionsException Registers an identity provider for user-based subscriptions.
- Parameters:
registerIdentityProviderRequest-- Returns:
- Result of the RegisterIdentityProvider operation returned by the service.
- See Also:
-
registerIdentityProvider
default RegisterIdentityProviderResponse registerIdentityProvider(Consumer<RegisterIdentityProviderRequest.Builder> registerIdentityProviderRequest) throws ServiceQuotaExceededException, ConflictException, ValidationException, ThrottlingException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, LicenseManagerUserSubscriptionsException Registers an identity provider for user-based subscriptions.
This is a convenience which creates an instance of the
RegisterIdentityProviderRequest.Builderavoiding the need to create one manually viaRegisterIdentityProviderRequest.builder()- Parameters:
registerIdentityProviderRequest- AConsumerthat will call methods onRegisterIdentityProviderRequest.Builderto create a request.- Returns:
- Result of the RegisterIdentityProvider operation returned by the service.
- See Also:
-
startProductSubscription
default StartProductSubscriptionResponse startProductSubscription(StartProductSubscriptionRequest startProductSubscriptionRequest) throws ServiceQuotaExceededException, ConflictException, ValidationException, ThrottlingException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, LicenseManagerUserSubscriptionsException 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.
- Parameters:
startProductSubscriptionRequest-- Returns:
- Result of the StartProductSubscription operation returned by the service.
- See Also:
-
startProductSubscription
default StartProductSubscriptionResponse startProductSubscription(Consumer<StartProductSubscriptionRequest.Builder> startProductSubscriptionRequest) throws ServiceQuotaExceededException, ConflictException, ValidationException, ThrottlingException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, LicenseManagerUserSubscriptionsException 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.Builderavoiding the need to create one manually viaStartProductSubscriptionRequest.builder()- Parameters:
startProductSubscriptionRequest- AConsumerthat will call methods onStartProductSubscriptionRequest.Builderto create a request.- Returns:
- Result of the StartProductSubscription operation returned by the service.
- See Also:
-
stopProductSubscription
default StopProductSubscriptionResponse stopProductSubscription(StopProductSubscriptionRequest stopProductSubscriptionRequest) throws ServiceQuotaExceededException, ConflictException, ValidationException, ThrottlingException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, LicenseManagerUserSubscriptionsException Stops a product subscription for a user with the specified identity provider.
- Parameters:
stopProductSubscriptionRequest-- Returns:
- Result of the StopProductSubscription operation returned by the service.
- See Also:
-
stopProductSubscription
default StopProductSubscriptionResponse stopProductSubscription(Consumer<StopProductSubscriptionRequest.Builder> stopProductSubscriptionRequest) throws ServiceQuotaExceededException, ConflictException, ValidationException, ThrottlingException, InternalServerException, ResourceNotFoundException, AccessDeniedException, AwsServiceException, SdkClientException, LicenseManagerUserSubscriptionsException Stops a product subscription for a user with the specified identity provider.
This is a convenience which creates an instance of the
StopProductSubscriptionRequest.Builderavoiding the need to create one manually viaStopProductSubscriptionRequest.builder()- Parameters:
stopProductSubscriptionRequest- AConsumerthat will call methods onStopProductSubscriptionRequest.Builderto create a request.- Returns:
- Result of the StopProductSubscription operation returned by the service.
- See Also:
-
updateIdentityProviderSettings
default UpdateIdentityProviderSettingsResponse updateIdentityProviderSettings(UpdateIdentityProviderSettingsRequest updateIdentityProviderSettingsRequest) throws ValidationException, ThrottlingException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, LicenseManagerUserSubscriptionsException Updates additional product configuration settings for the registered identity provider.
- Parameters:
updateIdentityProviderSettingsRequest-- Returns:
- Result of the UpdateIdentityProviderSettings operation returned by the service.
- See Also:
-
updateIdentityProviderSettings
default UpdateIdentityProviderSettingsResponse updateIdentityProviderSettings(Consumer<UpdateIdentityProviderSettingsRequest.Builder> updateIdentityProviderSettingsRequest) throws ValidationException, ThrottlingException, InternalServerException, AccessDeniedException, AwsServiceException, SdkClientException, LicenseManagerUserSubscriptionsException Updates additional product configuration settings for the registered identity provider.
This is a convenience which creates an instance of the
UpdateIdentityProviderSettingsRequest.Builderavoiding the need to create one manually viaUpdateIdentityProviderSettingsRequest.builder()- Parameters:
updateIdentityProviderSettingsRequest- AConsumerthat will call methods onUpdateIdentityProviderSettingsRequest.Builderto create a request.- Returns:
- Result of the UpdateIdentityProviderSettings operation returned by the service.
- See Also:
-
create
Create aLicenseManagerUserSubscriptionsClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aLicenseManagerUserSubscriptionsClient. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-