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

public class ContainerPort extends Object
The port exposed on the container instance.
  • Constructor Details

    • ContainerPort

      public ContainerPort()
  • Method Details

    • protocol

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

      public ContainerPort withProtocol(ContainerNetworkProtocol protocol)
      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

      public ContainerPort withPort(int port)
      Set the port number exposed within the container group.
      Parameters:
      port - the port value to set
      Returns:
      the ContainerPort object itself.