Package api.equinix.javasdk.core.client
Class ClientBase
java.lang.Object
api.equinix.javasdk.core.client.ClientBase
- Direct Known Subclasses:
AgreementClientImpl,CoreClientImpl,PageableBase,PricingClientImpl
ClientBase class.
- Version:
- $Id: $Id
- Author:
- ianjones
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classFluent builder for constructingEquinixRequestinstances. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedClientBase(Config configClient, String functionalArea, String requestParent) Constructor for ClientBase. -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> EquinixRequest<T> buildRequest(String serviceEndpoint, RequestType requestType) protected <T> EquinixRequest<T> buildRequest(String serviceEndpoint, RequestType requestType, com.fasterxml.jackson.core.type.TypeReference<?> typeRef) protected <T> EquinixRequest<T> buildRequest(String serviceEndpoint, RequestType requestType, Map<String, String> pathParams, Map<String, List<String>> queryParams) protected <T> EquinixRequest<T> buildRequest(String serviceEndpoint, RequestType requestType, Map<String, String> pathParams, Map<String, List<String>> queryParams, com.fasterxml.jackson.core.type.TypeReference<?> typeRef) protected <T> EquinixRequest<T> buildRequestWithPathParams(String serviceEndpoint, RequestType requestType, Map<String, String> pathParams) protected <T> EquinixRequest<T> buildRequestWithPathParams(String serviceEndpoint, RequestType requestType, Map<String, String> pathParams, com.fasterxml.jackson.core.type.TypeReference<?> typeRef) protected <T> EquinixRequest<T> buildRequestWithQueryParams(String serviceEndpoint, RequestType requestType, Map<String, List<String>> queryParams) protected <T> EquinixRequest<T> buildRequestWithQueryParams(String serviceEndpoint, RequestType requestType, Map<String, List<String>> queryParams, com.fasterxml.jackson.core.type.TypeReference<?> typeRef) protected ConfigGetter for the fieldconfigClient.protected <T> EquinixResponse<T> invoke(EquinixRequest<T> equinixRequest) invoke.protected ClientBase.EquinixRequestBuildernewRequest(String serviceEndpoint) Creates a fluent request builder for the given service endpoint.
-
Constructor Details
-
ClientBase
-
-
Method Details
-
getConfigClient
-
invoke
invoke.
- Type Parameters:
T- a T object.- Parameters:
equinixRequest- aEquinixRequestobject.- Returns:
- a
EquinixResponseobject.
-
newRequest
Creates a fluent request builder for the given service endpoint.EquinixRequest<Connection> request = this.newRequest("GetConnection") .withType(RequestType.SINGLE) .withPathParams(Map.of("uuid", uuid)) .withTypeRef(ConnectionJson.getSingleTypeRef()) .build();- Parameters:
serviceEndpoint- the service endpoint name from the apiParams JSON- Returns:
- a new
ClientBase.EquinixRequestBuilder
-
buildRequestWithPathParams
protected <T> EquinixRequest<T> buildRequestWithPathParams(String serviceEndpoint, RequestType requestType, Map<String, String> pathParams) -
buildRequestWithQueryParams
protected <T> EquinixRequest<T> buildRequestWithQueryParams(String serviceEndpoint, RequestType requestType, Map<String, List<String>> queryParams) -
buildRequest
protected <T> EquinixRequest<T> buildRequest(String serviceEndpoint, RequestType requestType, Map<String, String> pathParams, Map<String, List<String>> queryParams) -
buildRequest
protected <T> EquinixRequest<T> buildRequest(String serviceEndpoint, RequestType requestType, com.fasterxml.jackson.core.type.TypeReference<?> typeRef) -
buildRequest
-
buildRequestWithPathParams
protected <T> EquinixRequest<T> buildRequestWithPathParams(String serviceEndpoint, RequestType requestType, Map<String, String> pathParams, com.fasterxml.jackson.core.type.TypeReference<?> typeRef) -
buildRequestWithQueryParams
protected <T> EquinixRequest<T> buildRequestWithQueryParams(String serviceEndpoint, RequestType requestType, Map<String, List<String>> queryParams, com.fasterxml.jackson.core.type.TypeReference<?> typeRef) -
buildRequest
protected <T> EquinixRequest<T> buildRequest(String serviceEndpoint, RequestType requestType, Map<String, String> pathParams, Map<String, List<String>> queryParams, com.fasterxml.jackson.core.type.TypeReference<?> typeRef)
-