Class OcbAgentSvcClient
- java.lang.Object
-
- com.oracle.bmc.http.internal.BaseSyncClient
-
- com.oracle.bmc.cloudbridge.OcbAgentSvcClient
-
- All Implemented Interfaces:
OcbAgentSvc,AutoCloseable
@Generated(value="OracleSDKGenerator", comments="API Version: 20220509") public class OcbAgentSvcClient extends BaseSyncClient implements OcbAgentSvc
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOcbAgentSvcClient.BuilderBuilder class for this client.
-
Field Summary
Fields 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 OcbAgentSvc.
-
Constructor Summary
Constructors Constructor Description OcbAgentSvcClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)Deprecated.Use thebuilderinstead.OcbAgentSvcClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)Deprecated.Use thebuilderinstead.OcbAgentSvcClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)Deprecated.Use thebuilderinstead.OcbAgentSvcClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)Deprecated.Use thebuilderinstead.OcbAgentSvcClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)Deprecated.Use thebuilderinstead.OcbAgentSvcClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)Deprecated.Use thebuilderinstead.OcbAgentSvcClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)Deprecated.Use thebuilderinstead.OcbAgentSvcClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)Deprecated.Use thebuilderinstead.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AddAgentDependencyResponseaddAgentDependency(AddAgentDependencyRequest request)Add a dependency to the environment.static OcbAgentSvcClient.Builderbuilder()Create a builder for this client.ChangeAgentCompartmentResponsechangeAgentCompartment(ChangeAgentCompartmentRequest request)Moves an Agent resource from one compartment identifier to another.ChangeAgentDependencyCompartmentResponsechangeAgentDependencyCompartment(ChangeAgentDependencyCompartmentRequest request)Moves a AgentDependency resource from one compartment identifier to another.ChangeEnvironmentCompartmentResponsechangeEnvironmentCompartment(ChangeEnvironmentCompartmentRequest request)Moves a source environment resource from one compartment identifier to another.voidclose()CreateAgentResponsecreateAgent(CreateAgentRequest request)Creates an Agent.CreateAgentDependencyResponsecreateAgentDependency(CreateAgentDependencyRequest request)Creates an AgentDependency.CreateEnvironmentResponsecreateEnvironment(CreateEnvironmentRequest request)Creates a source environment.DeleteAgentResponsedeleteAgent(DeleteAgentRequest request)Deletes an Agent resource identified by an identifier.DeleteAgentDependencyResponsedeleteAgentDependency(DeleteAgentDependencyRequest request)Deletes the AgentDependency resource based on an identifier.DeleteEnvironmentResponsedeleteEnvironment(DeleteEnvironmentRequest request)Deletes a the source environment resource identified by an identifier.GetAgentResponsegetAgent(GetAgentRequest request)Gets an Agent by identifier.GetAgentDependencyResponsegetAgentDependency(GetAgentDependencyRequest request)Gets an AgentDependency by identifier.StringgetClientCommonLibraryVersion()protected ClientConfiguratorgetDefaultConfigurator()StringgetEndpoint()GetEnvironmentResponsegetEnvironment(GetEnvironmentRequest request)Gets a source environment by identifier.Optional<String>getMinimumClientCommonLibraryVersionFromClient()OcbAgentSvcPaginatorsgetPaginators()Gets the pre-configured paginators available for list operations in this service which may return multiple pages of data.GetPluginResponsegetPlugin(GetPluginRequest request)Gets a plugin by identifier.OcbAgentSvcWaitersgetWaiters()Gets the pre-configured waiters available for resources for this service.ListAgentDependenciesResponselistAgentDependencies(ListAgentDependenciesRequest request)Returns a list of AgentDependencies such as AgentDependencyCollection.ListAgentsResponselistAgents(ListAgentsRequest request)Returns a list of Agents.ListApplianceImagesResponselistApplianceImages(ListApplianceImagesRequest request)Returns a list of Appliance Images.ListEnvironmentsResponselistEnvironments(ListEnvironmentsRequest request)Returns a list of source environments.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.RemoveAgentDependencyResponseremoveAgentDependency(RemoveAgentDependencyRequest request)Adds a dependency to the source environment.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’).UpdateAgentResponseupdateAgent(UpdateAgentRequest request)Updates the Agent.UpdateAgentDependencyResponseupdateAgentDependency(UpdateAgentDependencyRequest request)Updates the AgentDependency.voidupdateBaseEndpoint(String endpoint)This method should be used for parameterized endpoint templates only.UpdateEnvironmentResponseupdateEnvironment(UpdateEnvironmentRequest request)Updates the source environment.UpdatePluginResponseupdatePlugin(UpdatePluginRequest request)Updates the plugin.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.BaseSyncClient
clientCall
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.AutoCloseable
close
-
Methods inherited from interface com.oracle.bmc.cloudbridge.OcbAgentSvc
getEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
-
-
-
-
Constructor Detail
-
OcbAgentSvcClient
@Deprecated public OcbAgentSvcClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeOcbAgentSvcClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
-
OcbAgentSvcClient
@Deprecated public OcbAgentSvcClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeOcbAgentSvcClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configuration
-
OcbAgentSvcClient
@Deprecated public OcbAgentSvcClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeOcbAgentSvcClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
-
OcbAgentSvcClient
@Deprecated public OcbAgentSvcClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeOcbAgentSvcClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactory
-
OcbAgentSvcClient
@Deprecated public OcbAgentSvcClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeOcbAgentSvcClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfigurators
-
OcbAgentSvcClient
@Deprecated public OcbAgentSvcClient(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 (seeOcbAgentSvcClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfiguratorsendpoint-ClientBuilderBase.endpoint(java.lang.String)
-
OcbAgentSvcClient
@Deprecated public OcbAgentSvcClient(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 (seeOcbAgentSvcClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfiguratorsendpoint-ClientBuilderBase.endpoint(java.lang.String)signingStrategyRequestSignerFactories-ClientBuilderBase.signingStrategyRequestSignerFactories
-
OcbAgentSvcClient
@Deprecated public OcbAgentSvcClient(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 (seeOcbAgentSvcClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfiguratorsendpoint-ClientBuilderBase.endpoint(java.lang.String)signingStrategyRequestSignerFactories-ClientBuilderBase.signingStrategyRequestSignerFactoriesexecutorService-OcbAgentSvcClient.Builder.executorService
-
-
Method Detail
-
builder
public static OcbAgentSvcClient.Builder builder()
Create a builder for this client.- Returns:
- builder
-
setRegion
public void setRegion(Region region)
Description copied from interface:OcbAgentSvcSets 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 interfaceOcbAgentSvc- Parameters:
region- The region of the service.
-
setRegion
public void setRegion(String regionId)
Description copied from interface:OcbAgentSvcSets 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 interfaceOcbAgentSvc- Parameters:
regionId- The public region ID.
-
addAgentDependency
public AddAgentDependencyResponse addAgentDependency(AddAgentDependencyRequest request)
Description copied from interface:OcbAgentSvcAdd a dependency to the environment.When provided, If-Match is checked against ETag values of the resource.
- Specified by:
addAgentDependencyin interfaceOcbAgentSvc- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
changeAgentCompartment
public ChangeAgentCompartmentResponse changeAgentCompartment(ChangeAgentCompartmentRequest request)
Description copied from interface:OcbAgentSvcMoves an Agent resource from one compartment identifier to another.When provided, If-Match is checked against ETag values of the resource.
- Specified by:
changeAgentCompartmentin interfaceOcbAgentSvc- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
changeAgentDependencyCompartment
public ChangeAgentDependencyCompartmentResponse changeAgentDependencyCompartment(ChangeAgentDependencyCompartmentRequest request)
Description copied from interface:OcbAgentSvcMoves a AgentDependency resource from one compartment identifier to another.When provided, If-Match is checked against ETag values of the resource.
- Specified by:
changeAgentDependencyCompartmentin interfaceOcbAgentSvc- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
changeEnvironmentCompartment
public ChangeEnvironmentCompartmentResponse changeEnvironmentCompartment(ChangeEnvironmentCompartmentRequest request)
Description copied from interface:OcbAgentSvcMoves a source environment resource from one compartment identifier to another.When provided, If-Match is checked against ETag values of the resource.
- Specified by:
changeEnvironmentCompartmentin interfaceOcbAgentSvc- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createAgent
public CreateAgentResponse createAgent(CreateAgentRequest request)
Description copied from interface:OcbAgentSvcCreates an Agent.- Specified by:
createAgentin interfaceOcbAgentSvc- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createAgentDependency
public CreateAgentDependencyResponse createAgentDependency(CreateAgentDependencyRequest request)
Description copied from interface:OcbAgentSvcCreates an AgentDependency.- Specified by:
createAgentDependencyin interfaceOcbAgentSvc- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createEnvironment
public CreateEnvironmentResponse createEnvironment(CreateEnvironmentRequest request)
Description copied from interface:OcbAgentSvcCreates a source environment.- Specified by:
createEnvironmentin interfaceOcbAgentSvc- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteAgent
public DeleteAgentResponse deleteAgent(DeleteAgentRequest request)
Description copied from interface:OcbAgentSvcDeletes an Agent resource identified by an identifier.- Specified by:
deleteAgentin interfaceOcbAgentSvc- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteAgentDependency
public DeleteAgentDependencyResponse deleteAgentDependency(DeleteAgentDependencyRequest request)
Description copied from interface:OcbAgentSvcDeletes the AgentDependency resource based on an identifier.- Specified by:
deleteAgentDependencyin interfaceOcbAgentSvc- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteEnvironment
public DeleteEnvironmentResponse deleteEnvironment(DeleteEnvironmentRequest request)
Description copied from interface:OcbAgentSvcDeletes a the source environment resource identified by an identifier.- Specified by:
deleteEnvironmentin interfaceOcbAgentSvc- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getAgent
public GetAgentResponse getAgent(GetAgentRequest request)
Description copied from interface:OcbAgentSvcGets an Agent by identifier.- Specified by:
getAgentin interfaceOcbAgentSvc- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getAgentDependency
public GetAgentDependencyResponse getAgentDependency(GetAgentDependencyRequest request)
Description copied from interface:OcbAgentSvcGets an AgentDependency by identifier.- Specified by:
getAgentDependencyin interfaceOcbAgentSvc- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getEnvironment
public GetEnvironmentResponse getEnvironment(GetEnvironmentRequest request)
Description copied from interface:OcbAgentSvcGets a source environment by identifier.- Specified by:
getEnvironmentin interfaceOcbAgentSvc- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getPlugin
public GetPluginResponse getPlugin(GetPluginRequest request)
Description copied from interface:OcbAgentSvcGets a plugin by identifier.- Specified by:
getPluginin interfaceOcbAgentSvc- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listAgentDependencies
public ListAgentDependenciesResponse listAgentDependencies(ListAgentDependenciesRequest request)
Description copied from interface:OcbAgentSvcReturns a list of AgentDependencies such as AgentDependencyCollection.- Specified by:
listAgentDependenciesin interfaceOcbAgentSvc- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listAgents
public ListAgentsResponse listAgents(ListAgentsRequest request)
Description copied from interface:OcbAgentSvcReturns a list of Agents.- Specified by:
listAgentsin interfaceOcbAgentSvc- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listApplianceImages
public ListApplianceImagesResponse listApplianceImages(ListApplianceImagesRequest request)
Description copied from interface:OcbAgentSvcReturns a list of Appliance Images.- Specified by:
listApplianceImagesin interfaceOcbAgentSvc- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listEnvironments
public ListEnvironmentsResponse listEnvironments(ListEnvironmentsRequest request)
Description copied from interface:OcbAgentSvcReturns a list of source environments.- Specified by:
listEnvironmentsin interfaceOcbAgentSvc- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
removeAgentDependency
public RemoveAgentDependencyResponse removeAgentDependency(RemoveAgentDependencyRequest request)
Description copied from interface:OcbAgentSvcAdds a dependency to the source environment.When provided, If-Match is checked against ETag values of the resource.
- Specified by:
removeAgentDependencyin interfaceOcbAgentSvc- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateAgent
public UpdateAgentResponse updateAgent(UpdateAgentRequest request)
Description copied from interface:OcbAgentSvcUpdates the Agent.- Specified by:
updateAgentin interfaceOcbAgentSvc- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateAgentDependency
public UpdateAgentDependencyResponse updateAgentDependency(UpdateAgentDependencyRequest request)
Description copied from interface:OcbAgentSvcUpdates the AgentDependency.- Specified by:
updateAgentDependencyin interfaceOcbAgentSvc- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateEnvironment
public UpdateEnvironmentResponse updateEnvironment(UpdateEnvironmentRequest request)
Description copied from interface:OcbAgentSvcUpdates the source environment.- Specified by:
updateEnvironmentin interfaceOcbAgentSvc- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updatePlugin
public UpdatePluginResponse updatePlugin(UpdatePluginRequest request)
Description copied from interface:OcbAgentSvcUpdates the plugin.- Specified by:
updatePluginin interfaceOcbAgentSvc- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getWaiters
public OcbAgentSvcWaiters getWaiters()
Description copied from interface:OcbAgentSvcGets the pre-configured waiters available for resources for this service.- Specified by:
getWaitersin interfaceOcbAgentSvc- Returns:
- The service waiters.
-
getPaginators
public OcbAgentSvcPaginators getPaginators()
Description copied from interface:OcbAgentSvcGets 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 interfaceOcbAgentSvc- Returns:
- The service paginators.
-
getDefaultConfigurator
protected ClientConfigurator getDefaultConfigurator()
-
useRealmSpecificEndpointTemplate
public 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
-
populateServiceParametersInEndpoint
public 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 userequiredParametersMap- Map of parameter name as key and value set in request path or query parameter as value
-
updateBaseEndpoint
public 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
-
setEndpoint
public final void setEndpoint(String endpoint)
-
getEndpoint
public final String getEndpoint()
-
refreshClient
public final void refreshClient()
Rebuild the backingHttpClient.This will call
ClientConfigurators again, and can be used to e.g. refresh the SSL certificate.
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable
-
getClientCommonLibraryVersion
public String getClientCommonLibraryVersion()
-
-