Record Class EstateInventory.DeviceRecord

java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.estate.EstateInventory.DeviceRecord
Record Components:
id - the device uuid
name - the device name
deviceType - the device type code
metro - the metro code
status - the device status
redundancyType - PRIMARY, SECONDARY or null for a single device
redundantId - the uuid of the redundant peer, when there is one
termMonths - the term length, when reported
createdAt - when the device was created
accountNumber - the account number
Enclosing class:
EstateInventory

public static record EstateInventory.DeviceRecord(String id, String name, String deviceType, String metro, String status, String redundancyType, String redundantId, Integer termMonths, Instant createdAt, String accountNumber) extends Record
A Network Edge virtual device.
  • Constructor Details

    • DeviceRecord

      public DeviceRecord(String id, String name, String deviceType, String metro, String status, String redundancyType, String redundantId, Integer termMonths, Instant createdAt, String accountNumber)
      Creates an instance of a DeviceRecord record class.
      Parameters:
      id - the value for the id record component
      name - the value for the name record component
      deviceType - the value for the deviceType record component
      metro - the value for the metro record component
      status - the value for the status record component
      redundancyType - the value for the redundancyType record component
      redundantId - the value for the redundantId record component
      termMonths - the value for the termMonths record component
      createdAt - the value for the createdAt record component
      accountNumber - the value for the accountNumber 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.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • deviceType

      public String deviceType()
      Returns the value of the deviceType record component.
      Returns:
      the value of the deviceType record component
    • metro

      public String metro()
      Returns the value of the metro record component.
      Returns:
      the value of the metro record component
    • status

      public String status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • redundancyType

      public String redundancyType()
      Returns the value of the redundancyType record component.
      Returns:
      the value of the redundancyType record component
    • redundantId

      public String redundantId()
      Returns the value of the redundantId record component.
      Returns:
      the value of the redundantId record component
    • termMonths

      public Integer termMonths()
      Returns the value of the termMonths record component.
      Returns:
      the value of the termMonths record component
    • createdAt

      public Instant createdAt()
      Returns the value of the createdAt record component.
      Returns:
      the value of the createdAt record component
    • accountNumber

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