Package kubevirt.io

Class V1Port


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

      Constructors 
      Constructor Description
      V1Port()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String getName()
      If specified, this must be an IANA_SVC_NAME and unique within the pod.
      java.lang.Integer getPort()
      Number of port to expose for the virtual machine.
      java.lang.String getProtocol()
      Protocol for port.
      int hashCode()  
      V1Port name​(java.lang.String name)  
      V1Port port​(java.lang.Integer port)  
      V1Port protocol​(java.lang.String protocol)  
      void setName​(java.lang.String name)  
      void setPort​(java.lang.Integer port)  
      void setProtocol​(java.lang.String protocol)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • V1Port

        public V1Port()
    • Method Detail

      • name

        public V1Port name​(java.lang.String name)
      • getName

        public java.lang.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​(java.lang.String name)
      • port

        public V1Port port​(java.lang.Integer port)
      • getPort

        public java.lang.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​(java.lang.Integer port)
      • protocol

        public V1Port protocol​(java.lang.String protocol)
      • getProtocol

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

        public void setProtocol​(java.lang.String protocol)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object