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