Class LoadBalancer.Builder

    • Field Detail

      • port

        protected int port
      • id

        protected int id
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • port

        public LoadBalancer.Builder port​(int port)
        Required. The port number of the service (on the new servers) to use for this particular load balancer. In most cases, this port number is 80. NOTE that when using RackConnectV3, instead of a cloud load balancer, leave this parameter empty.
        Parameters:
        port - The port of this LoadBalancer.
        Returns:
        The builder object.
        See Also:
        LoadBalancer.getPort()
      • id

        public LoadBalancer.Builder id​(int id)
        Required. The ID of the cloud load balancer, or RackConnectV3 load balancer pool, to which new servers are added. For cloud load balancers set the ID as an integer, for RackConnectV3 set the UUID as a string. NOTE that when using RackConnectV3, this value is supplied to you by Rackspace Support after they configure your load balancer pool.
        Parameters:
        id - The id of this LoadBalancer.
        Returns:
        The builder object.
        See Also:
        LoadBalancer.getId()
      • build

        public LoadBalancer build()
        Returns:
        A new LoadBalancer object.