Record Class VirtualMachine
java.lang.Object
java.lang.Record
org.jenkinsci.plugins.proxmox.api.model.VirtualMachine
-
Constructor Summary
ConstructorsConstructorDescriptionVirtualMachine(int vmid, String name, String status, String node, long uptime, int templateFlag) Creates an instance of aVirtualMachinerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanname()Returns the value of thenamerecord component.node()Returns the value of thenoderecord component.status()Returns the value of thestatusrecord component.intReturns the value of thetemplateFlagrecord component.final StringtoString()Returns a string representation of this record class.longuptime()Returns the value of theuptimerecord component.intvmid()Returns the value of thevmidrecord component.
-
Constructor Details
-
VirtualMachine
public VirtualMachine(int vmid, String name, String status, String node, long uptime, int templateFlag) Creates an instance of aVirtualMachinerecord class.- Parameters:
vmid- the value for thevmidrecord componentname- the value for thenamerecord componentstatus- the value for thestatusrecord componentnode- the value for thenoderecord componentuptime- the value for theuptimerecord componenttemplateFlag- the value for thetemplateFlagrecord component
-
-
Method Details
-
isTemplate
public boolean isTemplate() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
vmid
public int vmid()Returns the value of thevmidrecord component.- Returns:
- the value of the
vmidrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
node
Returns the value of thenoderecord component.- Returns:
- the value of the
noderecord component
-
uptime
public long uptime()Returns the value of theuptimerecord component.- Returns:
- the value of the
uptimerecord component
-
templateFlag
@SerializedName("template") public int templateFlag()Returns the value of thetemplateFlagrecord component.- Returns:
- the value of the
templateFlagrecord component
-