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 String
Value 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 aLicenseManagerLinuxSubscriptionsClient
with the region loaded from theDefaultAwsRegionProviderChain
and 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 GetServiceSettingsResponse
getServiceSettings
(Consumer<GetServiceSettingsRequest.Builder> getServiceSettingsRequest) Lists the Linux subscriptions service settings for your account.default GetServiceSettingsResponse
getServiceSettings
(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 ListLinuxSubscriptionsResponse
listLinuxSubscriptions
(Consumer<ListLinuxSubscriptionsRequest.Builder> listLinuxSubscriptionsRequest) Lists the Linux subscriptions that have been discovered.default ListLinuxSubscriptionsResponse
listLinuxSubscriptions
(ListLinuxSubscriptionsRequest listLinuxSubscriptionsRequest) Lists the Linux subscriptions that have been discovered.default ListLinuxSubscriptionsIterable
listLinuxSubscriptionsPaginator
(Consumer<ListLinuxSubscriptionsRequest.Builder> listLinuxSubscriptionsRequest) This is a variant oflistLinuxSubscriptions(software.amazon.awssdk.services.licensemanagerlinuxsubscriptions.model.ListLinuxSubscriptionsRequest)
operation.default ListLinuxSubscriptionsIterable
listLinuxSubscriptionsPaginator
(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 ListTagsForResourceResponse
listTagsForResource
(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) List the metadata tags that are assigned to the specified Amazon Web Services resource.default ListTagsForResourceResponse
listTagsForResource
(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 ServiceMetadata
default TagResourceResponse
tagResource
(Consumer<TagResourceRequest.Builder> tagResourceRequest) Add metadata tags to the specified Amazon Web Services resource.default TagResourceResponse
tagResource
(TagResourceRequest tagResourceRequest) Add metadata tags to the specified Amazon Web Services resource.default UntagResourceResponse
untagResource
(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Remove one or more metadata tag from the specified Amazon Web Services resource.default UntagResourceResponse
untagResource
(UntagResourceRequest untagResourceRequest) Remove one or more metadata tag from the specified Amazon Web Services resource.default UpdateServiceSettingsResponse
updateServiceSettings
(Consumer<UpdateServiceSettingsRequest.Builder> updateServiceSettingsRequest) Updates the service settings for Linux subscriptions.default UpdateServiceSettingsResponse
updateServiceSettings
(UpdateServiceSettingsRequest updateServiceSettingsRequest) Updates the service settings for Linux subscriptions.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods 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.Builder
avoiding the need to create one manually viaDeregisterSubscriptionProviderRequest.builder()
- Parameters:
deregisterSubscriptionProviderRequest
- AConsumer
that will call methods onDeregisterSubscriptionProviderRequest.Builder
to 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.Builder
avoiding the need to create one manually viaGetRegisteredSubscriptionProviderRequest.builder()
- Parameters:
getRegisteredSubscriptionProviderRequest
- AConsumer
that will call methods onGetRegisteredSubscriptionProviderRequest.Builder
to 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.Builder
avoiding the need to create one manually viaGetServiceSettingsRequest.builder()
- Parameters:
getServiceSettingsRequest
- AConsumer
that will call methods onGetServiceSettingsRequest.Builder
to 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.Builder
avoiding the need to create one manually viaListLinuxSubscriptionInstancesRequest.builder()
- Parameters:
listLinuxSubscriptionInstancesRequest
- AConsumer
that will call methods onListLinuxSubscriptionInstancesRequest.Builder
to 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 Streamsoftware.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 Streamsoftware.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.Builder
avoiding the need to create one manually viaListLinuxSubscriptionInstancesRequest.builder()
- Parameters:
listLinuxSubscriptionInstancesRequest
- AConsumer
that will call methods onListLinuxSubscriptionInstancesRequest.Builder
to 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.Builder
avoiding the need to create one manually viaListLinuxSubscriptionsRequest.builder()
- Parameters:
listLinuxSubscriptionsRequest
- AConsumer
that will call methods onListLinuxSubscriptionsRequest.Builder
to 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 Streamsoftware.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 Streamsoftware.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.Builder
avoiding the need to create one manually viaListLinuxSubscriptionsRequest.builder()
- Parameters:
listLinuxSubscriptionsRequest
- AConsumer
that will call methods onListLinuxSubscriptionsRequest.Builder
to 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.Builder
avoiding the need to create one manually viaListRegisteredSubscriptionProvidersRequest.builder()
- Parameters:
listRegisteredSubscriptionProvidersRequest
- AConsumer
that will call methods onListRegisteredSubscriptionProvidersRequest.Builder
to 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 Streamsoftware.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 Streamsoftware.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.Builder
avoiding the need to create one manually viaListRegisteredSubscriptionProvidersRequest.builder()
- Parameters:
listRegisteredSubscriptionProvidersRequest
- AConsumer
that will call methods onListRegisteredSubscriptionProvidersRequest.Builder
to 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.Builder
avoiding the need to create one manually viaListTagsForResourceRequest.builder()
- Parameters:
listTagsForResourceRequest
- AConsumer
that will call methods onListTagsForResourceRequest.Builder
to 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.Builder
avoiding the need to create one manually viaRegisterSubscriptionProviderRequest.builder()
- Parameters:
registerSubscriptionProviderRequest
- AConsumer
that will call methods onRegisterSubscriptionProviderRequest.Builder
to 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.Builder
avoiding the need to create one manually viaTagResourceRequest.builder()
- Parameters:
tagResourceRequest
- AConsumer
that will call methods onTagResourceRequest.Builder
to 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.Builder
avoiding the need to create one manually viaUntagResourceRequest.builder()
- Parameters:
untagResourceRequest
- AConsumer
that will call methods onUntagResourceRequest.Builder
to 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.Builder
avoiding the need to create one manually viaUpdateServiceSettingsRequest.builder()
- Parameters:
updateServiceSettingsRequest
- AConsumer
that will call methods onUpdateServiceSettingsRequest.Builder
to create a request.- Returns:
- Result of the UpdateServiceSettings operation returned by the service.
- See Also:
-
create
Create aLicenseManagerLinuxSubscriptionsClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aLicenseManagerLinuxSubscriptionsClient
. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-