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

public abstract class CdpClientBuilder<T extends CdpClientBuilder<T>> extends Object
The base class of all client builders. This should not be referenced directly.
  • Constructor Details

    • CdpClientBuilder

      protected CdpClientBuilder(String serviceName, boolean cdpEndpointFormat)
      Constructor.
      Parameters:
      serviceName - the service name
      cdpEndpointFormat - whether this service uses the CDP endpoint format
  • Method Details

    • 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