Class Endpoint.EndpointBuilder

java.lang.Object
org.springframework.cloud.servicebroker.model.binding.Endpoint.EndpointBuilder
Enclosing class:
Endpoint

public static final class Endpoint.EndpointBuilder extends Object
Provides a fluid API for constructing an Endpoint.
  • Constructor Details

    • EndpointBuilder

      public EndpointBuilder()
  • Method Details

    • host

      public Endpoint.EndpointBuilder host(String host)
      Set the host name.

      This value will set the host field in the body of the response to the platform.

      Parameters:
      host - the host name
      Returns:
      the builder
    • ports

      public Endpoint.EndpointBuilder ports(List<String> ports)
      Set the list of ports.

      This value will set the ports field in the body of the response to the platform.

      Parameters:
      ports - the ports
      Returns:
      the builder
    • ports

      public Endpoint.EndpointBuilder ports(String... ports)
      Set the list of ports.

      This value will set the ports field in the body of the response to the platform.

      Parameters:
      ports - the ports
      Returns:
      the builder
    • protocol

      public Endpoint.EndpointBuilder protocol(Endpoint.Protocol protocol)
      Set the network protocol.

      This value will set the protocol field in the body of the response to the platform.

      Parameters:
      protocol - the protocol
      Returns:
      the builder
    • build

      public Endpoint build()
      Construct an Endpoint from the provided values.
      Returns:
      the newly constructed Endpoint