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
Modifier 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
.default GetServiceSettingsResponse
getServiceSettings
(Consumer<GetServiceSettingsRequest.Builder> getServiceSettingsRequest) Lists the Linux subscriptions service settings.default GetServiceSettingsResponse
getServiceSettings
(GetServiceSettingsRequest getServiceSettingsRequest) Lists the Linux subscriptions service settings.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.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadata
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
-
getServiceSettings
default GetServiceSettingsResponse getServiceSettings(GetServiceSettingsRequest getServiceSettingsRequest) throws InternalServerException, ThrottlingException, ValidationException, AwsServiceException, SdkClientException, LicenseManagerLinuxSubscriptionsException Lists the Linux subscriptions service settings.
- 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.
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:
-
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
-