public class ContainerPort extends Object
Constructor and Description |
---|
ContainerPort() |
Modifier and Type | Method and Description |
---|---|
int |
port()
Get the port number exposed within the container group.
|
ContainerNetworkProtocol |
protocol()
Get the protocol associated with the port.
|
ContainerPort |
withPort(int port)
Set the port number exposed within the container group.
|
ContainerPort |
withProtocol(ContainerNetworkProtocol protocol)
Set the protocol associated with the port.
|
public ContainerNetworkProtocol protocol()
public ContainerPort withProtocol(ContainerNetworkProtocol protocol)
protocol
- the protocol value to setpublic int port()
public ContainerPort withPort(int port)
port
- the port value to setCopyright © 2019. All rights reserved.