Class Endpoint.EndpointBuilder
java.lang.Object
org.springframework.cloud.servicebroker.model.binding.Endpoint.EndpointBuilder
- Enclosing class:
- Endpoint
Provides a fluid API for constructing an
Endpoint
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Construct anEndpoint
from the provided values.Set the host name.Set the list of ports.Set the list of ports.protocol
(Endpoint.Protocol protocol) Set the network protocol.
-
Constructor Details
-
EndpointBuilder
public EndpointBuilder()
-
-
Method Details
-
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
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
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
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
Construct anEndpoint
from the provided values.- Returns:
- the newly constructed
Endpoint
-