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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()If specified, this must be an IANA_SVC_NAME and unique within the pod.getPort()Number of port to expose for the virtual machine.Protocol for port.inthashCode()voidvoidvoidsetProtocol(String protocol) private StringConvert the given object to string with each line indented by 4 spaces (except the first line).toString()
-
Field Details
-
name
-
port
-
protocol
-
-
Constructor Details
-
V1Port
public V1Port()
-
-
Method Details
-
name
-
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
-
port
-
getPort
Number of port to expose for the virtual machine. This must be a valid port number, 0 < x < 65536.- Returns:
- port
-
setPort
-
protocol
-
getProtocol
Protocol for port. Must be UDP or TCP. Defaults to \"TCP\". +optional- Returns:
- protocol
-
setProtocol
-
equals
-
hashCode
public int hashCode() -
toString
-
toIndentedString
Convert the given object to string with each line indented by 4 spaces (except the first line).
-