Class BackendSet.Builder

  • Enclosing class:
    BackendSet

    public static class BackendSet.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • name

        public BackendSet.Builder name​(String name)
        A friendly name for the backend set.

        It must be unique and it cannot be changed.

        Valid backend set names include only alphanumeric characters, dashes, and underscores. Backend set names cannot contain spaces. Avoid entering confidential information.

        Example: example_backend_set

        Parameters:
        name - the value to set
        Returns:
        this builder
      • policy

        public BackendSet.Builder policy​(String policy)
        The load balancer policy for the backend set.

        To get a list of available policies, use the listPolicies operation.

        Example: LEAST_CONNECTIONS

        Parameters:
        policy - the value to set
        Returns:
        this builder
      • backendMaxConnections

        public BackendSet.Builder backendMaxConnections​(Integer backendMaxConnections)
        The maximum number of simultaneous connections the load balancer can make to any backend in the backend set unless the backend has its own maxConnections setting.

        If this is not set then the number of simultaneous connections the load balancer can make to any backend in the backend set unless the backend has its own maxConnections setting is unlimited.

        Example: 300

        Parameters:
        backendMaxConnections - the value to set
        Returns:
        this builder