Package com.cloudera.cdp.client
Class CdpClientBuilder<T extends CdpClientBuilder<T>>
java.lang.Object
com.cloudera.cdp.client.CdpClientBuilder<T>
- Direct Known Subclasses:
AuditClientBuilder
,CloudprivatelinksClientBuilder
,ComputeClientBuilder
,ConsumptionClientBuilder
,DatacatalogClientBuilder
,DatahubClientBuilder
,DatalakeClientBuilder
,DeClientBuilder
,DfClientBuilder
,DfworkloadClientBuilder
,DrscpClientBuilder
,DwClientBuilder
,EnvironmentsClientBuilder
,IamClientBuilder
,ImagecatalogClientBuilder
,MlClientBuilder
,OpdbClientBuilder
,ReplicationmanagerClientBuilder
The base class of all client builders. This should not be referenced
directly.
-
Constructor Summary
ModifierConstructorDescriptionprotected
CdpClientBuilder
(String serviceName, boolean cdpEndpointFormat) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal CdpClientConfiguration
Gets the current CdpClientConfiguration.Gets the current CdpCredentialsProvider.Gets the CDP service endpoint.protected abstract T
self()
Gets the builder.withCdpRegion
(CdpRegion cdpRegion) Sets the CdpRegion for multi region control plane.withClientConfiguration
(CdpClientConfiguration cdpClientConfiguration) Sets the CdpClientConfiguration.withCredentials
(CdpCredentialsProvider cdpCredentialsProvider) Sets the CdpCredentialsProvider.withEndPoint
(String cdpEndPoint) Sets the CDP service endpoint.
-
Constructor Details
-
CdpClientBuilder
Constructor.- Parameters:
serviceName
- the service namecdpEndpointFormat
- whether this service uses the CDP endpoint format
-
-
Method Details
-
getCdpCredentials
Gets the current CdpCredentialsProvider.- Returns:
- the current value of the CdpCredentialsProvider
-
withCredentials
Sets the CdpCredentialsProvider.- Parameters:
cdpCredentialsProvider
- the new value for the CdpCredentialsProvider- Returns:
- T the current builder object
-
withEndPoint
Sets the CDP service endpoint.- Parameters:
cdpEndPoint
- the new value for the CDP service endpoint- Returns:
- T the current builder object
-
getCdpEndPoint
Gets the CDP service endpoint.- Returns:
- String - A string with the fully formed CDP service endpoint
-
withClientConfiguration
Sets the CdpClientConfiguration.- Parameters:
cdpClientConfiguration
- the new value for the CdpClientConfiguration- Returns:
- T the current builder object
-
getCdpClientConfiguration
Gets the current CdpClientConfiguration.- Returns:
- the current value of the CdpClientConfiguration
-
withCdpRegion
Sets the CdpRegion for multi region control plane.- Parameters:
cdpRegion
- the new value for cdpRegion- Returns:
- T the current builder object
-
self
Gets the builder.- Returns:
- the builder
-