Interface LicenseManagerLinuxSubscriptionsClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
With License Manager, you can discover and track your commercial Linux subscriptions on running 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 TypeMethodDescriptionbuilder()Create a builder that can be used to configure and create aLicenseManagerLinuxSubscriptionsClient.create()Create aLicenseManagerLinuxSubscriptionsClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.deregisterSubscriptionProvider(Consumer<DeregisterSubscriptionProviderRequest.Builder> deregisterSubscriptionProviderRequest) Remove a third-party subscription provider from the Bring Your Own License (BYOL) subscriptions registered to your account.deregisterSubscriptionProvider(DeregisterSubscriptionProviderRequest deregisterSubscriptionProviderRequest) Remove a third-party subscription provider from the Bring Your Own License (BYOL) subscriptions registered to your account.getRegisteredSubscriptionProvider(Consumer<GetRegisteredSubscriptionProviderRequest.Builder> getRegisteredSubscriptionProviderRequest) Get details for a Bring Your Own License (BYOL) subscription that's registered to your account.getRegisteredSubscriptionProvider(GetRegisteredSubscriptionProviderRequest getRegisteredSubscriptionProviderRequest) Get details for a Bring Your Own License (BYOL) subscription that's registered to your account.default GetServiceSettingsResponsegetServiceSettings(Consumer<GetServiceSettingsRequest.Builder> getServiceSettingsRequest) Lists the Linux subscriptions service settings for your account.default GetServiceSettingsResponsegetServiceSettings(GetServiceSettingsRequest getServiceSettingsRequest) Lists the Linux subscriptions service settings for your account.listLinuxSubscriptionInstances(Consumer<ListLinuxSubscriptionInstancesRequest.Builder> listLinuxSubscriptionInstancesRequest) Lists the running Amazon EC2 instances that were discovered with commercial Linux subscriptions.listLinuxSubscriptionInstances(ListLinuxSubscriptionInstancesRequest listLinuxSubscriptionInstancesRequest) Lists the running Amazon EC2 instances that were discovered with commercial Linux subscriptions.listLinuxSubscriptionInstancesPaginator(Consumer<ListLinuxSubscriptionInstancesRequest.Builder> listLinuxSubscriptionInstancesRequest) listLinuxSubscriptionInstancesPaginator(ListLinuxSubscriptionInstancesRequest listLinuxSubscriptionInstancesRequest) default ListLinuxSubscriptionsResponselistLinuxSubscriptions(Consumer<ListLinuxSubscriptionsRequest.Builder> listLinuxSubscriptionsRequest) Lists the Linux subscriptions that have been discovered.default ListLinuxSubscriptionsResponselistLinuxSubscriptions(ListLinuxSubscriptionsRequest listLinuxSubscriptionsRequest) Lists the Linux subscriptions that have been discovered.default ListLinuxSubscriptionsIterablelistLinuxSubscriptionsPaginator(Consumer<ListLinuxSubscriptionsRequest.Builder> listLinuxSubscriptionsRequest) This is a variant oflistLinuxSubscriptions(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionsRequest)operation.default ListLinuxSubscriptionsIterablelistLinuxSubscriptionsPaginator(ListLinuxSubscriptionsRequest listLinuxSubscriptionsRequest) This is a variant oflistLinuxSubscriptions(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionsRequest)operation.listRegisteredSubscriptionProviders(Consumer<ListRegisteredSubscriptionProvidersRequest.Builder> listRegisteredSubscriptionProvidersRequest) List Bring Your Own License (BYOL) subscription registration resources for your account.listRegisteredSubscriptionProviders(ListRegisteredSubscriptionProvidersRequest listRegisteredSubscriptionProvidersRequest) List Bring Your Own License (BYOL) subscription registration resources for your account.listRegisteredSubscriptionProvidersPaginator(Consumer<ListRegisteredSubscriptionProvidersRequest.Builder> listRegisteredSubscriptionProvidersRequest) listRegisteredSubscriptionProvidersPaginator(ListRegisteredSubscriptionProvidersRequest listRegisteredSubscriptionProvidersRequest) default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) List the metadata tags that are assigned to the specified Amazon Web Services resource.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) List the metadata tags that are assigned to the specified Amazon Web Services resource.registerSubscriptionProvider(Consumer<RegisterSubscriptionProviderRequest.Builder> registerSubscriptionProviderRequest) Register the supported third-party subscription provider for your Bring Your Own License (BYOL) subscription.registerSubscriptionProvider(RegisterSubscriptionProviderRequest registerSubscriptionProviderRequest) Register the supported third-party subscription provider for your Bring Your Own License (BYOL) subscription.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Add metadata tags to the specified Amazon Web Services resource.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Add metadata tags to the specified Amazon Web Services resource.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Remove one or more metadata tag from the specified Amazon Web Services resource.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Remove one or more metadata tag from the specified Amazon Web Services resource.default UpdateServiceSettingsResponseupdateServiceSettings(Consumer<UpdateServiceSettingsRequest.Builder> updateServiceSettingsRequest) Updates the service settings for Linux subscriptions.default UpdateServiceSettingsResponseupdateServiceSettings(UpdateServiceSettingsRequest updateServiceSettingsRequest) Updates the service settings for Linux subscriptions.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
-
deregisterSubscriptionProvider
default DeregisterSubscriptionProviderResponse deregisterSubscriptionProvider(DeregisterSubscriptionProviderRequest deregisterSubscriptionProviderRequest) throws InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, LicenseManagerLinuxSubscriptionsException Remove a third-party subscription provider from the Bring Your Own License (BYOL) subscriptions registered to your account.
- Parameters:
deregisterSubscriptionProviderRequest-- Returns:
- Result of the DeregisterSubscriptionProvider operation returned by the service.
- See Also:
-
deregisterSubscriptionProvider
default DeregisterSubscriptionProviderResponse deregisterSubscriptionProvider(Consumer<DeregisterSubscriptionProviderRequest.Builder> deregisterSubscriptionProviderRequest) throws InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, LicenseManagerLinuxSubscriptionsException Remove a third-party subscription provider from the Bring Your Own License (BYOL) subscriptions registered to your account.
This is a convenience which creates an instance of the
DeregisterSubscriptionProviderRequest.Builderavoiding the need to create one manually viaDeregisterSubscriptionProviderRequest.builder()- Parameters:
deregisterSubscriptionProviderRequest- AConsumerthat will call methods onDeregisterSubscriptionProviderRequest.Builderto create a request.- Returns:
- Result of the DeregisterSubscriptionProvider operation returned by the service.
- See Also:
-
getRegisteredSubscriptionProvider
default GetRegisteredSubscriptionProviderResponse getRegisteredSubscriptionProvider(GetRegisteredSubscriptionProviderRequest getRegisteredSubscriptionProviderRequest) throws InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, LicenseManagerLinuxSubscriptionsException Get details for a Bring Your Own License (BYOL) subscription that's registered to your account.
- Parameters:
getRegisteredSubscriptionProviderRequest-- Returns:
- Result of the GetRegisteredSubscriptionProvider operation returned by the service.
- See Also:
-
getRegisteredSubscriptionProvider
default GetRegisteredSubscriptionProviderResponse getRegisteredSubscriptionProvider(Consumer<GetRegisteredSubscriptionProviderRequest.Builder> getRegisteredSubscriptionProviderRequest) throws InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, LicenseManagerLinuxSubscriptionsException Get details for a Bring Your Own License (BYOL) subscription that's registered to your account.
This is a convenience which creates an instance of the
GetRegisteredSubscriptionProviderRequest.Builderavoiding the need to create one manually viaGetRegisteredSubscriptionProviderRequest.builder()- Parameters:
getRegisteredSubscriptionProviderRequest- AConsumerthat will call methods onGetRegisteredSubscriptionProviderRequest.Builderto create a request.- Returns:
- Result of the GetRegisteredSubscriptionProvider operation returned by the service.
- See Also:
-
getServiceSettings
default GetServiceSettingsResponse getServiceSettings(GetServiceSettingsRequest getServiceSettingsRequest) throws InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, LicenseManagerLinuxSubscriptionsException Lists the Linux subscriptions service settings for your account.
- Parameters:
getServiceSettingsRequest-- Returns:
- Result of the GetServiceSettings operation returned by the service.
- See Also:
-
getServiceSettings
default GetServiceSettingsResponse getServiceSettings(Consumer<GetServiceSettingsRequest.Builder> getServiceSettingsRequest) throws InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, LicenseManagerLinuxSubscriptionsException Lists the Linux subscriptions service settings for your account.
This is a convenience which creates an instance of the
GetServiceSettingsRequest.Builderavoiding the need to create one manually viaGetServiceSettingsRequest.builder()- Parameters:
getServiceSettingsRequest- AConsumerthat will call methods onGetServiceSettingsRequest.Builderto create a request.- Returns:
- Result of the GetServiceSettings operation returned by the service.
- See Also:
-
listLinuxSubscriptionInstances
default ListLinuxSubscriptionInstancesResponse listLinuxSubscriptionInstances(ListLinuxSubscriptionInstancesRequest listLinuxSubscriptionInstancesRequest) throws InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, LicenseManagerLinuxSubscriptionsException Lists the running Amazon EC2 instances that were discovered with commercial Linux subscriptions.
- Parameters:
listLinuxSubscriptionInstancesRequest- NextToken length limit is half of ddb accepted limit. Increase this limit if parameters in request increases.- Returns:
- Result of the ListLinuxSubscriptionInstances operation returned by the service.
- See Also:
-
listLinuxSubscriptionInstances
default ListLinuxSubscriptionInstancesResponse listLinuxSubscriptionInstances(Consumer<ListLinuxSubscriptionInstancesRequest.Builder> listLinuxSubscriptionInstancesRequest) throws InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, LicenseManagerLinuxSubscriptionsException Lists the running Amazon EC2 instances that were discovered with commercial Linux subscriptions.
This is a convenience which creates an instance of the
ListLinuxSubscriptionInstancesRequest.Builderavoiding the need to create one manually viaListLinuxSubscriptionInstancesRequest.builder()- Parameters:
listLinuxSubscriptionInstancesRequest- AConsumerthat will call methods onListLinuxSubscriptionInstancesRequest.Builderto create a request. NextToken length limit is half of ddb accepted limit. Increase this limit if parameters in request increases.- Returns:
- Result of the ListLinuxSubscriptionInstances operation returned by the service.
- See Also:
-
listLinuxSubscriptionInstancesPaginator
default ListLinuxSubscriptionInstancesIterable listLinuxSubscriptionInstancesPaginator(ListLinuxSubscriptionInstancesRequest listLinuxSubscriptionInstancesRequest) throws InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, LicenseManagerLinuxSubscriptionsException This is a variant of
listLinuxSubscriptionInstances(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionInstancesRequest)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.licensemanagerlinuxsubscriptions.paginators.ListLinuxSubscriptionInstancesIterable responses = client.listLinuxSubscriptionInstancesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListLinuxSubscriptionInstancesIterable responses = client .listLinuxSubscriptionInstancesPaginator(request); for (software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionInstancesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListLinuxSubscriptionInstancesIterable responses = client.listLinuxSubscriptionInstancesPaginator(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
listLinuxSubscriptionInstances(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionInstancesRequest)operation.- Parameters:
listLinuxSubscriptionInstancesRequest- NextToken length limit is half of ddb accepted limit. Increase this limit if parameters in request increases.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listLinuxSubscriptionInstancesPaginator
default ListLinuxSubscriptionInstancesIterable listLinuxSubscriptionInstancesPaginator(Consumer<ListLinuxSubscriptionInstancesRequest.Builder> listLinuxSubscriptionInstancesRequest) throws InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, LicenseManagerLinuxSubscriptionsException This is a variant of
listLinuxSubscriptionInstances(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionInstancesRequest)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.licensemanagerlinuxsubscriptions.paginators.ListLinuxSubscriptionInstancesIterable responses = client.listLinuxSubscriptionInstancesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListLinuxSubscriptionInstancesIterable responses = client .listLinuxSubscriptionInstancesPaginator(request); for (software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionInstancesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListLinuxSubscriptionInstancesIterable responses = client.listLinuxSubscriptionInstancesPaginator(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
listLinuxSubscriptionInstances(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionInstancesRequest)operation.
This is a convenience which creates an instance of the
ListLinuxSubscriptionInstancesRequest.Builderavoiding the need to create one manually viaListLinuxSubscriptionInstancesRequest.builder()- Parameters:
listLinuxSubscriptionInstancesRequest- AConsumerthat will call methods onListLinuxSubscriptionInstancesRequest.Builderto create a request. NextToken length limit is half of ddb accepted limit. Increase this limit if parameters in request increases.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listLinuxSubscriptions
default ListLinuxSubscriptionsResponse listLinuxSubscriptions(ListLinuxSubscriptionsRequest listLinuxSubscriptionsRequest) throws InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, LicenseManagerLinuxSubscriptionsException Lists the Linux subscriptions that have been discovered. If you have linked your organization, the returned results will include data aggregated across your accounts in Organizations.
- Parameters:
listLinuxSubscriptionsRequest- NextToken length limit is half of ddb accepted limit. Increase this limit if parameters in request increases.- Returns:
- Result of the ListLinuxSubscriptions operation returned by the service.
- See Also:
-
listLinuxSubscriptions
default ListLinuxSubscriptionsResponse listLinuxSubscriptions(Consumer<ListLinuxSubscriptionsRequest.Builder> listLinuxSubscriptionsRequest) throws InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, LicenseManagerLinuxSubscriptionsException Lists the Linux subscriptions that have been discovered. If you have linked your organization, the returned results will include data aggregated across your accounts in Organizations.
This is a convenience which creates an instance of the
ListLinuxSubscriptionsRequest.Builderavoiding the need to create one manually viaListLinuxSubscriptionsRequest.builder()- Parameters:
listLinuxSubscriptionsRequest- AConsumerthat will call methods onListLinuxSubscriptionsRequest.Builderto create a request. NextToken length limit is half of ddb accepted limit. Increase this limit if parameters in request increases.- Returns:
- Result of the ListLinuxSubscriptions operation returned by the service.
- See Also:
-
listLinuxSubscriptionsPaginator
default ListLinuxSubscriptionsIterable listLinuxSubscriptionsPaginator(ListLinuxSubscriptionsRequest listLinuxSubscriptionsRequest) throws InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, LicenseManagerLinuxSubscriptionsException This is a variant of
listLinuxSubscriptions(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionsRequest)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.licensemanagerlinuxsubscriptions.paginators.ListLinuxSubscriptionsIterable responses = client.listLinuxSubscriptionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListLinuxSubscriptionsIterable responses = client .listLinuxSubscriptionsPaginator(request); for (software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListLinuxSubscriptionsIterable responses = client.listLinuxSubscriptionsPaginator(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
listLinuxSubscriptions(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionsRequest)operation.- Parameters:
listLinuxSubscriptionsRequest- NextToken length limit is half of ddb accepted limit. Increase this limit if parameters in request increases.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listLinuxSubscriptionsPaginator
default ListLinuxSubscriptionsIterable listLinuxSubscriptionsPaginator(Consumer<ListLinuxSubscriptionsRequest.Builder> listLinuxSubscriptionsRequest) throws InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, LicenseManagerLinuxSubscriptionsException This is a variant of
listLinuxSubscriptions(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionsRequest)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.licensemanagerlinuxsubscriptions.paginators.ListLinuxSubscriptionsIterable responses = client.listLinuxSubscriptionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListLinuxSubscriptionsIterable responses = client .listLinuxSubscriptionsPaginator(request); for (software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListLinuxSubscriptionsIterable responses = client.listLinuxSubscriptionsPaginator(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
listLinuxSubscriptions(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionsRequest)operation.
This is a convenience which creates an instance of the
ListLinuxSubscriptionsRequest.Builderavoiding the need to create one manually viaListLinuxSubscriptionsRequest.builder()- Parameters:
listLinuxSubscriptionsRequest- AConsumerthat will call methods onListLinuxSubscriptionsRequest.Builderto create a request. NextToken length limit is half of ddb accepted limit. Increase this limit if parameters in request increases.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listRegisteredSubscriptionProviders
default ListRegisteredSubscriptionProvidersResponse listRegisteredSubscriptionProviders(ListRegisteredSubscriptionProvidersRequest listRegisteredSubscriptionProvidersRequest) throws InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, LicenseManagerLinuxSubscriptionsException List Bring Your Own License (BYOL) subscription registration resources for your account.
- Parameters:
listRegisteredSubscriptionProvidersRequest-- Returns:
- Result of the ListRegisteredSubscriptionProviders operation returned by the service.
- See Also:
-
listRegisteredSubscriptionProviders
default ListRegisteredSubscriptionProvidersResponse listRegisteredSubscriptionProviders(Consumer<ListRegisteredSubscriptionProvidersRequest.Builder> listRegisteredSubscriptionProvidersRequest) throws InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, LicenseManagerLinuxSubscriptionsException List Bring Your Own License (BYOL) subscription registration resources for your account.
This is a convenience which creates an instance of the
ListRegisteredSubscriptionProvidersRequest.Builderavoiding the need to create one manually viaListRegisteredSubscriptionProvidersRequest.builder()- Parameters:
listRegisteredSubscriptionProvidersRequest- AConsumerthat will call methods onListRegisteredSubscriptionProvidersRequest.Builderto create a request.- Returns:
- Result of the ListRegisteredSubscriptionProviders operation returned by the service.
- See Also:
-
listRegisteredSubscriptionProvidersPaginator
default ListRegisteredSubscriptionProvidersIterable listRegisteredSubscriptionProvidersPaginator(ListRegisteredSubscriptionProvidersRequest listRegisteredSubscriptionProvidersRequest) throws InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, LicenseManagerLinuxSubscriptionsException This is a variant of
listRegisteredSubscriptionProviders(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListRegisteredSubscriptionProvidersRequest)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.licensemanagerlinuxsubscriptions.paginators.ListRegisteredSubscriptionProvidersIterable responses = client.listRegisteredSubscriptionProvidersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListRegisteredSubscriptionProvidersIterable responses = client .listRegisteredSubscriptionProvidersPaginator(request); for (software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListRegisteredSubscriptionProvidersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListRegisteredSubscriptionProvidersIterable responses = client.listRegisteredSubscriptionProvidersPaginator(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
listRegisteredSubscriptionProviders(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListRegisteredSubscriptionProvidersRequest)operation.- Parameters:
listRegisteredSubscriptionProvidersRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listRegisteredSubscriptionProvidersPaginator
default ListRegisteredSubscriptionProvidersIterable listRegisteredSubscriptionProvidersPaginator(Consumer<ListRegisteredSubscriptionProvidersRequest.Builder> listRegisteredSubscriptionProvidersRequest) throws InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, LicenseManagerLinuxSubscriptionsException This is a variant of
listRegisteredSubscriptionProviders(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListRegisteredSubscriptionProvidersRequest)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.licensemanagerlinuxsubscriptions.paginators.ListRegisteredSubscriptionProvidersIterable responses = client.listRegisteredSubscriptionProvidersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListRegisteredSubscriptionProvidersIterable responses = client .listRegisteredSubscriptionProvidersPaginator(request); for (software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListRegisteredSubscriptionProvidersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.licensemanagerlinuxsubscriptions.paginators.ListRegisteredSubscriptionProvidersIterable responses = client.listRegisteredSubscriptionProvidersPaginator(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
listRegisteredSubscriptionProviders(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListRegisteredSubscriptionProvidersRequest)operation.
This is a convenience which creates an instance of the
ListRegisteredSubscriptionProvidersRequest.Builderavoiding the need to create one manually viaListRegisteredSubscriptionProvidersRequest.builder()- Parameters:
listRegisteredSubscriptionProvidersRequest- AConsumerthat will call methods onListRegisteredSubscriptionProvidersRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, LicenseManagerLinuxSubscriptionsException List the metadata tags that are assigned to the specified Amazon Web Services resource.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, LicenseManagerLinuxSubscriptionsException List the metadata tags that are assigned to the specified Amazon Web Services resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
registerSubscriptionProvider
default RegisterSubscriptionProviderResponse registerSubscriptionProvider(RegisterSubscriptionProviderRequest registerSubscriptionProviderRequest) throws InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, LicenseManagerLinuxSubscriptionsException Register the supported third-party subscription provider for your Bring Your Own License (BYOL) subscription.
- Parameters:
registerSubscriptionProviderRequest-- Returns:
- Result of the RegisterSubscriptionProvider operation returned by the service.
- See Also:
-
registerSubscriptionProvider
default RegisterSubscriptionProviderResponse registerSubscriptionProvider(Consumer<RegisterSubscriptionProviderRequest.Builder> registerSubscriptionProviderRequest) throws InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, LicenseManagerLinuxSubscriptionsException Register the supported third-party subscription provider for your Bring Your Own License (BYOL) subscription.
This is a convenience which creates an instance of the
RegisterSubscriptionProviderRequest.Builderavoiding the need to create one manually viaRegisterSubscriptionProviderRequest.builder()- Parameters:
registerSubscriptionProviderRequest- AConsumerthat will call methods onRegisterSubscriptionProviderRequest.Builderto create a request.- Returns:
- Result of the RegisterSubscriptionProvider operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, LicenseManagerLinuxSubscriptionsException Add metadata tags to the specified Amazon Web Services resource.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws InternalServerException, ResourceNotFoundException, ValidationException, AwsServiceException, SdkClientException, LicenseManagerLinuxSubscriptionsException Add metadata tags to the specified Amazon Web Services resource.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, LicenseManagerLinuxSubscriptionsException Remove one or more metadata tag from the specified Amazon Web Services resource.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws InternalServerException, ResourceNotFoundException, AwsServiceException, SdkClientException, LicenseManagerLinuxSubscriptionsException Remove one or more metadata tag from the specified Amazon Web Services resource.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
updateServiceSettings
default UpdateServiceSettingsResponse updateServiceSettings(UpdateServiceSettingsRequest updateServiceSettingsRequest) throws InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, LicenseManagerLinuxSubscriptionsException Updates the service settings for Linux subscriptions.
- Parameters:
updateServiceSettingsRequest-- Returns:
- Result of the UpdateServiceSettings operation returned by the service.
- See Also:
-
updateServiceSettings
default UpdateServiceSettingsResponse updateServiceSettings(Consumer<UpdateServiceSettingsRequest.Builder> updateServiceSettingsRequest) throws InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, LicenseManagerLinuxSubscriptionsException Updates the service settings for Linux subscriptions.
This is a convenience which creates an instance of the
UpdateServiceSettingsRequest.Builderavoiding the need to create one manually viaUpdateServiceSettingsRequest.builder()- Parameters:
updateServiceSettingsRequest- AConsumerthat will call methods onUpdateServiceSettingsRequest.Builderto create a request.- Returns:
- Result of the UpdateServiceSettings operation returned by the service.
- See Also:
-
create
Create aLicenseManagerLinuxSubscriptionsClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aLicenseManagerLinuxSubscriptionsClient. -
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
-