Class CdpClientBuilder<T extends CdpClientBuilder<T>>

    • Constructor Detail

      • CdpClientBuilder

        protected CdpClientBuilder​(String serviceName,
                                   boolean cdpEndpointFormat)
        Constructor.
        Parameters:
        serviceName - the service name
        cdpEndpointFormat - 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