Class ListenerDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • defaultBackendSetName

        public ListenerDetails.Builder defaultBackendSetName​(String defaultBackendSetName)
        The name of the associated backend set.

        Example: example_backend_set

        Parameters:
        defaultBackendSetName - the value to set
        Returns:
        this builder
      • port

        public ListenerDetails.Builder port​(Integer port)
        The communication port for the listener.

        Example: 80

        Parameters:
        port - the value to set
        Returns:
        this builder
      • protocol

        public ListenerDetails.Builder protocol​(String protocol)
        The protocol on which the listener accepts connection requests.

        The supported protocols are HTTP, HTTP2, TCP, and GRPC. You can also use the listProtocols operation to get a list of valid protocols.

        Example: HTTP

        Parameters:
        protocol - the value to set
        Returns:
        this builder
      • hostnameNames

        public ListenerDetails.Builder hostnameNames​(List<String> hostnameNames)
        An array of hostname resource names.
        Parameters:
        hostnameNames - the value to set
        Returns:
        this builder
      • pathRouteSetName

        public ListenerDetails.Builder pathRouteSetName​(String pathRouteSetName)
        Deprecated.

        Please use routingPolicies instead.

        The name of the set of path-based routing rules, PathRouteSet, applied to this listener's traffic.

        Example: example_path_route_set

        Parameters:
        pathRouteSetName - the value to set
        Returns:
        this builder
      • routingPolicyName

        public ListenerDetails.Builder routingPolicyName​(String routingPolicyName)
        The name of the routing policy applied to this listener’s traffic.

        Example: example_routing_policy

        Parameters:
        routingPolicyName - the value to set
        Returns:
        this builder
      • ruleSetNames

        public ListenerDetails.Builder ruleSetNames​(List<String> ruleSetNames)
        The names of the RuleSet to apply to the listener.

        Example: ["example_rule_set"]

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