java.lang.Object
com.microsoft.azure.management.containerinstance.Port

public class Port extends Object
The port exposed on the container group.
  • Constructor Details

    • Port

      public Port()
  • Method Details

    • protocol

      public ContainerGroupNetworkProtocol protocol()
      Get the protocol associated with the port. Possible values include: 'TCP', 'UDP'.
      Returns:
      the protocol value
    • withProtocol

      public Port withProtocol(ContainerGroupNetworkProtocol protocol)
      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

      public Port withPort(int port)
      Set the port number.
      Parameters:
      port - the port value to set
      Returns:
      the Port object itself.