Record Class VmConfig

java.lang.Object
java.lang.Record
org.jenkinsci.plugins.proxmox.api.model.VmConfig

public record VmConfig(Integer cores, Integer memory, String ciuser, String sshkeys, String ipconfig0, String nameserver, String searchdomain) extends Record
  • Constructor Details

    • VmConfig

      public VmConfig(Integer cores, Integer memory, String ciuser, String sshkeys, String ipconfig0, String nameserver, String searchdomain)
      Creates an instance of a VmConfig record class.
      Parameters:
      cores - the value for the cores record component
      memory - the value for the memory record component
      ciuser - the value for the ciuser record component
      sshkeys - the value for the sshkeys record component
      ipconfig0 - the value for the ipconfig0 record component
      nameserver - the value for the nameserver record component
      searchdomain - the value for the searchdomain record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • cores

      public Integer cores()
      Returns the value of the cores record component.
      Returns:
      the value of the cores record component
    • memory

      public Integer memory()
      Returns the value of the memory record component.
      Returns:
      the value of the memory record component
    • ciuser

      public String ciuser()
      Returns the value of the ciuser record component.
      Returns:
      the value of the ciuser record component
    • sshkeys

      public String sshkeys()
      Returns the value of the sshkeys record component.
      Returns:
      the value of the sshkeys record component
    • ipconfig0

      public String ipconfig0()
      Returns the value of the ipconfig0 record component.
      Returns:
      the value of the ipconfig0 record component
    • nameserver

      public String nameserver()
      Returns the value of the nameserver record component.
      Returns:
      the value of the nameserver record component
    • searchdomain

      public String searchdomain()
      Returns the value of the searchdomain record component.
      Returns:
      the value of the searchdomain record component