Package kubevirt.io

Class V1Port

java.lang.Object
kubevirt.io.V1Port

@Generated(value="io.swagger.codegen.languages.JavaClientCodegen", date="2019-11-10T14:44:51.030+02:00") public class V1Port extends Object
Port repesents a port to expose from the virtual machine. Default protocol TCP. The port field is mandatory
  • Field Details

  • Constructor Details

    • V1Port

      public V1Port()
  • Method Details

    • name

      public V1Port name(String name)
    • getName

      public String getName()
      If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. +optional
      Returns:
      name
    • setName

      public void setName(String name)
    • port

      public V1Port port(Integer port)
    • getPort

      public Integer getPort()
      Number of port to expose for the virtual machine. This must be a valid port number, 0 < x < 65536.
      Returns:
      port
    • setPort

      public void setPort(Integer port)
    • protocol

      public V1Port protocol(String protocol)
    • getProtocol

      public String getProtocol()
      Protocol for port. Must be UDP or TCP. Defaults to \"TCP\". +optional
      Returns:
      protocol
    • setProtocol

      public void setProtocol(String protocol)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toIndentedString

      private String toIndentedString(Object o)
      Convert the given object to string with each line indented by 4 spaces (except the first line).