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