Class ContainerPort
java.lang.Object
com.microsoft.azure.management.containerinstance.ContainerPort
The port exposed on the container instance.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
port()
Get the port number exposed within the container group.protocol()
Get the protocol associated with the port.withPort
(int port) Set the port number exposed within the container group.withProtocol
(ContainerNetworkProtocol protocol) Set the protocol associated with the port.
-
Constructor Details
-
ContainerPort
public ContainerPort()
-
-
Method Details
-
protocol
Get the protocol associated with the port. Possible values include: 'TCP', 'UDP'.- Returns:
- the protocol value
-
withProtocol
Set the protocol associated with the port. Possible values include: 'TCP', 'UDP'.- Parameters:
protocol
- the protocol value to set- Returns:
- the ContainerPort object itself.
-
port
public int port()Get the port number exposed within the container group.- Returns:
- the port value
-
withPort
Set the port number exposed within the container group.- Parameters:
port
- the port value to set- Returns:
- the ContainerPort object itself.
-