public class Endpoint extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Endpoint.EndpointBuilder
Provides a fluid API for constructing an
Endpoint |
static class |
Endpoint.Protocol
Values designating the network protocol
|
| Constructor and Description |
|---|
Endpoint()
Construct a new
Endpoint |
Endpoint(String host,
List<String> ports,
Endpoint.Protocol protocol)
Construct a new
Endpoint |
| Modifier and Type | Method and Description |
|---|---|
static Endpoint.EndpointBuilder |
builder()
Create a builder that provides a fluent API for constructing a VolumeMount.
|
boolean |
equals(Object o) |
String |
getHost()
Get the host
|
List<String> |
getPorts()
Get the list of ports
|
Endpoint.Protocol |
getProtocol()
Get the network protocol
|
int |
hashCode() |
String |
toString() |
public Endpoint()
Endpointpublic Endpoint(String host, List<String> ports, Endpoint.Protocol protocol)
Endpointhost - the hostports - the list of portsprotocol - the network protocolpublic String getHost()
public Endpoint.Protocol getProtocol()
public static Endpoint.EndpointBuilder builder()