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.default GetServiceSettingsResponsegetServiceSettings(Consumer<GetServiceSettingsRequest.Builder> getServiceSettingsRequest) Lists the Linux subscriptions service settings.default GetServiceSettingsResponsegetServiceSettings(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) Lists the running Amazon EC2 instances that were discovered with commercial Linux subscriptions.listLinuxSubscriptionInstancesPaginator(ListLinuxSubscriptionInstancesRequest listLinuxSubscriptionInstancesRequest) Lists the running Amazon EC2 instances that were discovered with commercial Linux subscriptions.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) Lists the Linux subscriptions that have been discovered.default ListLinuxSubscriptionsIterablelistLinuxSubscriptionsPaginator(ListLinuxSubscriptionsRequest listLinuxSubscriptionsRequest) Lists the Linux subscriptions that have been discovered.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault 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
-
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.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 Lists the running Amazon EC2 instances that were discovered with commercial Linux subscriptions.
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 Lists the running Amazon EC2 instances that were discovered with commercial Linux subscriptions.
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 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 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 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 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:
-
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
-