Class Port
java.lang.Object
com.microsoft.azure.management.containerinstance.Port
The port exposed on the container group.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
port()
Get the port number.protocol()
Get the protocol associated with the port.withPort
(int port) Set the port number.withProtocol
(ContainerGroupNetworkProtocol protocol) Set the protocol associated with the port.
-
Constructor Details
-
Port
public Port()
-
-
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 Port object itself.
-
port
public int port()Get the port number.- Returns:
- the port value
-
withPort
Set the port number.- Parameters:
port
- the port value to set- Returns:
- the Port object itself.
-