Class LicenseManagerClient
- java.lang.Object
- 
- com.oracle.bmc.http.internal.BaseSyncClient
- 
- com.oracle.bmc.licensemanager.LicenseManagerClient
 
 
- 
- All Implemented Interfaces:
- LicenseManager,- AutoCloseable
 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20220430") public class LicenseManagerClient extends BaseSyncClient implements LicenseManager
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classLicenseManagerClient.BuilderBuilder class for this client.
 - 
Field SummaryFields Modifier and Type Field Description StringclientCommonLibraryVersionCompatible SDK version, provided by the codegen.Optional<String>minimumClientCommonLibraryVersionFromClientMinimum compatible SDK version, maybe provided by the codegen.static ServiceSERVICEService instance for LicenseManager.
 - 
Constructor SummaryConstructors Constructor Description LicenseManagerClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)Deprecated.Use thebuilderinstead.LicenseManagerClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)Deprecated.Use thebuilderinstead.LicenseManagerClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)Deprecated.Use thebuilderinstead.LicenseManagerClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)Deprecated.Use thebuilderinstead.LicenseManagerClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)Deprecated.Use thebuilderinstead.LicenseManagerClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)Deprecated.Use thebuilderinstead.LicenseManagerClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)Deprecated.Use thebuilderinstead.LicenseManagerClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)Deprecated.Use thebuilderinstead.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LicenseManagerClient.Builderbuilder()Create a builder for this client.BulkUploadLicenseRecordsResponsebulkUploadLicenseRecords(BulkUploadLicenseRecordsRequest request)Bulk upload the product licenses and license records for a given compartment.voidclose()CreateLicenseRecordResponsecreateLicenseRecord(CreateLicenseRecordRequest request)Creates a new license record for the given product license ID.CreateProductLicenseResponsecreateProductLicense(CreateProductLicenseRequest request)Creates a new product license.DeleteLicenseRecordResponsedeleteLicenseRecord(DeleteLicenseRecordRequest request)Removes a license record.DeleteProductLicenseResponsedeleteProductLicense(DeleteProductLicenseRequest request)Removes a product license.GetBulkUploadTemplateResponsegetBulkUploadTemplate(GetBulkUploadTemplateRequest request)Provides the bulk upload file template.StringgetClientCommonLibraryVersion()GetConfigurationResponsegetConfiguration(GetConfigurationRequest request)Retrieves configuration for a compartment.protected ClientConfiguratorgetDefaultConfigurator()StringgetEndpoint()GetLicenseMetricResponsegetLicenseMetric(GetLicenseMetricRequest request)Retrieves the license metrics for a given compartment.GetLicenseRecordResponsegetLicenseRecord(GetLicenseRecordRequest request)Retrieves license record details by the license record ID in a given compartment.Optional<String>getMinimumClientCommonLibraryVersionFromClient()LicenseManagerPaginatorsgetPaginators()Gets the pre-configured paginators available for list operations in this service which may return multiple pages of data.GetProductLicenseResponsegetProductLicense(GetProductLicenseRequest request)Retrieves product license details by product license ID in a given compartment.LicenseManagerWaitersgetWaiters()Gets the pre-configured waiters available for resources for this service.ListLicenseRecordsResponselistLicenseRecords(ListLicenseRecordsRequest request)Retrieves all license records for a given product license ID.ListProductLicenseConsumersResponselistProductLicenseConsumers(ListProductLicenseConsumersRequest request)Retrieves the product license consumers for a particular product license ID.ListProductLicensesResponselistProductLicenses(ListProductLicensesRequest request)Retrieves all the product licenses from a given compartment.ListTopUtilizedProductLicensesResponselistTopUtilizedProductLicenses(ListTopUtilizedProductLicensesRequest request)Retrieves the top utilized product licenses for a given compartment.ListTopUtilizedResourcesResponselistTopUtilizedResources(ListTopUtilizedResourcesRequest request)Retrieves the top utilized resources for a given compartment.voidpopulateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)Populate the parameters in the endpoint with its corresponding value and update the base endpoint.voidrefreshClient()Rebuild the backingHttpClient.voidsetEndpoint(String endpoint)voidsetRegion(Region region)Sets the region to call (ex, Region.US_PHOENIX_1).voidsetRegion(String regionId)Sets the region to call (ex, ‘us-phoenix-1’).voidupdateBaseEndpoint(String endpoint)This method should be used for parameterized endpoint templates only.UpdateConfigurationResponseupdateConfiguration(UpdateConfigurationRequest request)Updates the configuration for the compartment.UpdateLicenseRecordResponseupdateLicenseRecord(UpdateLicenseRecordRequest request)Updates license record entity details.UpdateProductLicenseResponseupdateProductLicense(UpdateProductLicenseRequest request)Updates the list of images for a product license.voiduseRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)This method should be used to enable or disable the use of realm-specific endpoint template.- 
Methods inherited from class com.oracle.bmc.http.internal.BaseSyncClientclientCall
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface java.lang.AutoCloseableclose
 - 
Methods inherited from interface com.oracle.bmc.licensemanager.LicenseManagergetEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
 
- 
 
- 
- 
- 
Constructor Detail- 
LicenseManagerClient@Deprecated public LicenseManagerClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- LicenseManagerClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
 
 - 
LicenseManagerClient@Deprecated public LicenseManagerClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- LicenseManagerClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
 
 - 
LicenseManagerClient@Deprecated public LicenseManagerClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- LicenseManagerClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
- clientConfigurator-- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
 
 - 
LicenseManagerClient@Deprecated public LicenseManagerClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- LicenseManagerClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
- clientConfigurator-- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
- defaultRequestSignerFactory-- ClientBuilderBase.requestSignerFactory
 
 - 
LicenseManagerClient@Deprecated public LicenseManagerClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- LicenseManagerClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
- clientConfigurator-- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
- defaultRequestSignerFactory-- ClientBuilderBase.requestSignerFactory
- additionalClientConfigurators-- ClientBuilderBase.additionalClientConfigurators
 
 - 
LicenseManagerClient@Deprecated public LicenseManagerClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- LicenseManagerClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
- clientConfigurator-- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
- defaultRequestSignerFactory-- ClientBuilderBase.requestSignerFactory
- additionalClientConfigurators-- ClientBuilderBase.additionalClientConfigurators
- endpoint-- ClientBuilderBase.endpoint(java.lang.String)
 
 - 
LicenseManagerClient@Deprecated public LicenseManagerClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- LicenseManagerClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
- clientConfigurator-- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
- defaultRequestSignerFactory-- ClientBuilderBase.requestSignerFactory
- additionalClientConfigurators-- ClientBuilderBase.additionalClientConfigurators
- endpoint-- ClientBuilderBase.endpoint(java.lang.String)
- signingStrategyRequestSignerFactories-- ClientBuilderBase.signingStrategyRequestSignerFactories
 
 - 
LicenseManagerClient@Deprecated public LicenseManagerClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- LicenseManagerClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
- clientConfigurator-- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
- defaultRequestSignerFactory-- ClientBuilderBase.requestSignerFactory
- additionalClientConfigurators-- ClientBuilderBase.additionalClientConfigurators
- endpoint-- ClientBuilderBase.endpoint(java.lang.String)
- signingStrategyRequestSignerFactories-- ClientBuilderBase.signingStrategyRequestSignerFactories
- executorService-- LicenseManagerClient.Builder.executorService
 
 
- 
 - 
Method Detail- 
builderpublic static LicenseManagerClient.Builder builder() Create a builder for this client.- Returns:
- builder
 
 - 
setRegionpublic void setRegion(Region region) Description copied from interface:LicenseManagerSets the region to call (ex, Region.US_PHOENIX_1).Note, this will call setEndpointafter resolving the endpoint. If the service is not available in this Region, however, an IllegalArgumentException will be raised.- Specified by:
- setRegionin interface- LicenseManager
- Parameters:
- region- The region of the service.
 
 - 
setRegionpublic void setRegion(String regionId) Description copied from interface:LicenseManagerSets the region to call (ex, ‘us-phoenix-1’).Note, this will first try to map the region ID to a known Region and call setRegion.If no known Region could be determined, it will create an endpoint based on the default endpoint format ( Region.formatDefaultRegionEndpoint(Service, String)and then callsetEndpoint.- Specified by:
- setRegionin interface- LicenseManager
- Parameters:
- regionId- The public region ID.
 
 - 
bulkUploadLicenseRecordspublic BulkUploadLicenseRecordsResponse bulkUploadLicenseRecords(BulkUploadLicenseRecordsRequest request) Description copied from interface:LicenseManagerBulk upload the product licenses and license records for a given compartment.- Specified by:
- bulkUploadLicenseRecordsin interface- LicenseManager
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
createLicenseRecordpublic CreateLicenseRecordResponse createLicenseRecord(CreateLicenseRecordRequest request) Description copied from interface:LicenseManagerCreates a new license record for the given product license ID.- Specified by:
- createLicenseRecordin interface- LicenseManager
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
createProductLicensepublic CreateProductLicenseResponse createProductLicense(CreateProductLicenseRequest request) Description copied from interface:LicenseManagerCreates a new product license.- Specified by:
- createProductLicensein interface- LicenseManager
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
deleteLicenseRecordpublic DeleteLicenseRecordResponse deleteLicenseRecord(DeleteLicenseRecordRequest request) Description copied from interface:LicenseManagerRemoves a license record.- Specified by:
- deleteLicenseRecordin interface- LicenseManager
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
deleteProductLicensepublic DeleteProductLicenseResponse deleteProductLicense(DeleteProductLicenseRequest request) Description copied from interface:LicenseManagerRemoves a product license.- Specified by:
- deleteProductLicensein interface- LicenseManager
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
getBulkUploadTemplatepublic GetBulkUploadTemplateResponse getBulkUploadTemplate(GetBulkUploadTemplateRequest request) Description copied from interface:LicenseManagerProvides the bulk upload file template.- Specified by:
- getBulkUploadTemplatein interface- LicenseManager
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
getConfigurationpublic GetConfigurationResponse getConfiguration(GetConfigurationRequest request) Description copied from interface:LicenseManagerRetrieves configuration for a compartment.- Specified by:
- getConfigurationin interface- LicenseManager
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
getLicenseMetricpublic GetLicenseMetricResponse getLicenseMetric(GetLicenseMetricRequest request) Description copied from interface:LicenseManagerRetrieves the license metrics for a given compartment.- Specified by:
- getLicenseMetricin interface- LicenseManager
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
getLicenseRecordpublic GetLicenseRecordResponse getLicenseRecord(GetLicenseRecordRequest request) Description copied from interface:LicenseManagerRetrieves license record details by the license record ID in a given compartment.- Specified by:
- getLicenseRecordin interface- LicenseManager
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
getProductLicensepublic GetProductLicenseResponse getProductLicense(GetProductLicenseRequest request) Description copied from interface:LicenseManagerRetrieves product license details by product license ID in a given compartment.- Specified by:
- getProductLicensein interface- LicenseManager
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
listLicenseRecordspublic ListLicenseRecordsResponse listLicenseRecords(ListLicenseRecordsRequest request) Description copied from interface:LicenseManagerRetrieves all license records for a given product license ID.- Specified by:
- listLicenseRecordsin interface- LicenseManager
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
listProductLicenseConsumerspublic ListProductLicenseConsumersResponse listProductLicenseConsumers(ListProductLicenseConsumersRequest request) Description copied from interface:LicenseManagerRetrieves the product license consumers for a particular product license ID.- Specified by:
- listProductLicenseConsumersin interface- LicenseManager
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
listProductLicensespublic ListProductLicensesResponse listProductLicenses(ListProductLicensesRequest request) Description copied from interface:LicenseManagerRetrieves all the product licenses from a given compartment.- Specified by:
- listProductLicensesin interface- LicenseManager
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
listTopUtilizedProductLicensespublic ListTopUtilizedProductLicensesResponse listTopUtilizedProductLicenses(ListTopUtilizedProductLicensesRequest request) Description copied from interface:LicenseManagerRetrieves the top utilized product licenses for a given compartment.- Specified by:
- listTopUtilizedProductLicensesin interface- LicenseManager
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
listTopUtilizedResourcespublic ListTopUtilizedResourcesResponse listTopUtilizedResources(ListTopUtilizedResourcesRequest request) Description copied from interface:LicenseManagerRetrieves the top utilized resources for a given compartment.- Specified by:
- listTopUtilizedResourcesin interface- LicenseManager
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
updateConfigurationpublic UpdateConfigurationResponse updateConfiguration(UpdateConfigurationRequest request) Description copied from interface:LicenseManagerUpdates the configuration for the compartment.- Specified by:
- updateConfigurationin interface- LicenseManager
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
updateLicenseRecordpublic UpdateLicenseRecordResponse updateLicenseRecord(UpdateLicenseRecordRequest request) Description copied from interface:LicenseManagerUpdates license record entity details.- Specified by:
- updateLicenseRecordin interface- LicenseManager
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
updateProductLicensepublic UpdateProductLicenseResponse updateProductLicense(UpdateProductLicenseRequest request) Description copied from interface:LicenseManagerUpdates the list of images for a product license.- Specified by:
- updateProductLicensein interface- LicenseManager
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
getWaiterspublic LicenseManagerWaiters getWaiters() Description copied from interface:LicenseManagerGets the pre-configured waiters available for resources for this service.- Specified by:
- getWaitersin interface- LicenseManager
- Returns:
- The service waiters.
 
 - 
getPaginatorspublic LicenseManagerPaginators getPaginators() Description copied from interface:LicenseManagerGets the pre-configured paginators available for list operations in this service which may return multiple pages of data.These paginators provide an Iterableinterface so that service responses, or resources/records, can be iterated through without having to manually deal with pagination and page tokens.- Specified by:
- getPaginatorsin interface- LicenseManager
- Returns:
- The service paginators.
 
 - 
getDefaultConfiguratorprotected ClientConfigurator getDefaultConfigurator() 
 - 
useRealmSpecificEndpointTemplatepublic void useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled) This method should be used to enable or disable the use of realm-specific endpoint template.The default value is null. To enable the use of endpoint template defined for the realm in use, set the flag to true To disable the use of endpoint template defined for the realm in use, set the flag to false - Parameters:
- useOfRealmSpecificEndpointTemplateEnabled- This flag can be set to true or false to enable or disable the use of realm-specific endpoint template respectively
 
 - 
populateServiceParametersInEndpointpublic final void populateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap) Populate the parameters in the endpoint with its corresponding value and update the base endpoint.The value will be populated iff the parameter in endpoint is a required request path parameter or a required request query parameter. If not, the parameter in the endpoint will be ignored and left blank. - Parameters:
- endpoint- The endpoint template in use
- requiredParametersMap- Map of parameter name as key and value set in request path or query parameter as value
 
 - 
updateBaseEndpointpublic final void updateBaseEndpoint(String endpoint) This method should be used for parameterized endpoint templates only.This does not include {region} and {secondLevelDomain} parameters. - Parameters:
- endpoint- The updated endpoint to use
 
 - 
setEndpointpublic final void setEndpoint(String endpoint) 
 - 
getEndpointpublic final String getEndpoint() 
 - 
refreshClientpublic final void refreshClient() Rebuild the backingHttpClient.This will call ClientConfigurators again, and can be used to e.g. refresh the SSL certificate.
 - 
closepublic final void close() - Specified by:
- closein interface- AutoCloseable
 
 - 
getClientCommonLibraryVersionpublic String getClientCommonLibraryVersion() 
 
- 
 
-