Class GlobalLoadBalancer


  • public class GlobalLoadBalancer
    extends com.ibm.cloud.sdk.core.service.BaseService
    Global Load Balancer.
    Version:
    v1
    • Constructor Detail

      • GlobalLoadBalancer

        public GlobalLoadBalancer​(String crn,
                                  String zoneIdentifier,
                                  String serviceName,
                                  com.ibm.cloud.sdk.core.security.Authenticator authenticator)
        Constructs an instance of the `GlobalLoadBalancer` client. The specified service name and authenticator are used to configure the client instance.
        Parameters:
        crn - Full CRN of the service instance.
        zoneIdentifier - zone identifier.
        serviceName - the service name to be used when configuring the client instance
        authenticator - the Authenticator instance to be configured for this client
    • Method Detail

      • newInstance

        public static GlobalLoadBalancer newInstance​(String crn,
                                                     String zoneIdentifier)
        Class method which constructs an instance of the `GlobalLoadBalancer` client. The default service name is used to configure the client instance.
        Parameters:
        crn - Full CRN of the service instance.
        zoneIdentifier - zone identifier.
        Returns:
        an instance of the `GlobalLoadBalancer` client using external configuration
      • newInstance

        public static GlobalLoadBalancer newInstance​(String crn,
                                                     String zoneIdentifier,
                                                     String serviceName)
        Class method which constructs an instance of the `GlobalLoadBalancer` client. The specified service name is used to configure the client instance.
        Parameters:
        crn - Full CRN of the service instance.
        zoneIdentifier - zone identifier.
        serviceName - the service name to be used when configuring the client instance
        Returns:
        an instance of the `GlobalLoadBalancer` client using external configuration
      • getCrn

        public String getCrn()
        Gets the crn. Full CRN of the service instance.
        Returns:
        the crn
      • setCrn

        public void setCrn​(String crn)
        Sets the crn.
        Parameters:
        crn - the new crn
      • getZoneIdentifier

        public String getZoneIdentifier()
        Gets the zoneIdentifier. zone identifier.
        Returns:
        the zoneIdentifier
      • setZoneIdentifier

        public void setZoneIdentifier​(String zoneIdentifier)
        Sets the zoneIdentifier.
        Parameters:
        zoneIdentifier - the new zoneIdentifier
      • listAllLoadBalancers

        public com.ibm.cloud.sdk.core.http.ServiceCall<ListLoadBalancersResp> listAllLoadBalancers()
        List all load balancers. List configured load balancers.
        Returns:
        a ServiceCall with a result of type ListLoadBalancersResp
      • createLoadBalancer

        public com.ibm.cloud.sdk.core.http.ServiceCall<LoadBalancersResp> createLoadBalancer​(CreateLoadBalancerOptions createLoadBalancerOptions)
        Create load balancer. Create a load balancer for a given zone. The zone should be active before placing an order of a load balancer.
        Parameters:
        createLoadBalancerOptions - the CreateLoadBalancerOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type LoadBalancersResp
      • createLoadBalancer

        public com.ibm.cloud.sdk.core.http.ServiceCall<LoadBalancersResp> createLoadBalancer()
        Create load balancer. Create a load balancer for a given zone. The zone should be active before placing an order of a load balancer.
        Returns:
        a ServiceCall with a result of type LoadBalancersResp