Interface VirtualNodeSpec.Builder

    • Method Detail

      • backendDefaults

        VirtualNodeSpec.Builder backendDefaults​(BackendDefaults backendDefaults)

        A reference to an object that represents the defaults for backends.

        Parameters:
        backendDefaults - A reference to an object that represents the defaults for backends.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • backends

        VirtualNodeSpec.Builder backends​(Collection<Backend> backends)

        The backends that the virtual node is expected to send outbound traffic to.

        Parameters:
        backends - The backends that the virtual node is expected to send outbound traffic to.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • backends

        VirtualNodeSpec.Builder backends​(Backend... backends)

        The backends that the virtual node is expected to send outbound traffic to.

        Parameters:
        backends - The backends that the virtual node is expected to send outbound traffic to.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • backends

        VirtualNodeSpec.Builder backends​(Consumer<Backend.Builder>... backends)

        The backends that the virtual node is expected to send outbound traffic to.

        This is a convenience method that creates an instance of the Backend.Builder avoiding the need to create one manually via Backend.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #backends(List).

        Parameters:
        backends - a consumer that will call methods on Backend.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #backends(java.util.Collection)
      • listeners

        VirtualNodeSpec.Builder listeners​(Collection<Listener> listeners)

        The listener that the virtual node is expected to receive inbound traffic from. You can specify one listener.

        Parameters:
        listeners - The listener that the virtual node is expected to receive inbound traffic from. You can specify one listener.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • listeners

        VirtualNodeSpec.Builder listeners​(Listener... listeners)

        The listener that the virtual node is expected to receive inbound traffic from. You can specify one listener.

        Parameters:
        listeners - The listener that the virtual node is expected to receive inbound traffic from. You can specify one listener.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • listeners

        VirtualNodeSpec.Builder listeners​(Consumer<Listener.Builder>... listeners)

        The listener that the virtual node is expected to receive inbound traffic from. You can specify one listener.

        This is a convenience method that creates an instance of the Listener.Builder avoiding the need to create one manually via Listener.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #listeners(List).

        Parameters:
        listeners - a consumer that will call methods on Listener.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #listeners(java.util.Collection)
      • logging

        VirtualNodeSpec.Builder logging​(Logging logging)

        The inbound and outbound access logging information for the virtual node.

        Parameters:
        logging - The inbound and outbound access logging information for the virtual node.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • serviceDiscovery

        VirtualNodeSpec.Builder serviceDiscovery​(ServiceDiscovery serviceDiscovery)

        The service discovery information for the virtual node. If your virtual node does not expect ingress traffic, you can omit this parameter. If you specify a listener, then you must specify service discovery information.

        Parameters:
        serviceDiscovery - The service discovery information for the virtual node. If your virtual node does not expect ingress traffic, you can omit this parameter. If you specify a listener, then you must specify service discovery information.
        Returns:
        Returns a reference to this object so that method calls can be chained together.