Record Class EstateInventory.DeviceRecord
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.estate.EstateInventory.DeviceRecord
- Record Components:
id- the device uuidname- the device namedeviceType- the device type codemetro- the metro codestatus- the device statusredundancyType-PRIMARY,SECONDARYornullfor a single deviceredundantId- the uuid of the redundant peer, when there is onetermMonths- the term length, when reportedcreatedAt- when the device was createdaccountNumber- the account number
- Enclosing class:
EstateInventory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccountNumberrecord component.Returns the value of thecreatedAtrecord component.Returns the value of thedeviceTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.metro()Returns the value of themetrorecord component.name()Returns the value of thenamerecord component.Returns the value of theredundancyTyperecord component.Returns the value of theredundantIdrecord component.status()Returns the value of thestatusrecord component.Returns the value of thetermMonthsrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aDeviceRecordrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentdeviceType- the value for thedeviceTyperecord componentmetro- the value for themetrorecord componentstatus- the value for thestatusrecord componentredundancyType- the value for theredundancyTyperecord componentredundantId- the value for theredundantIdrecord componenttermMonths- the value for thetermMonthsrecord componentcreatedAt- the value for thecreatedAtrecord componentaccountNumber- the value for theaccountNumberrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
id
-
name
-
deviceType
Returns the value of thedeviceTyperecord component.- Returns:
- the value of the
deviceTyperecord component
-
metro
-
status
-
redundancyType
Returns the value of theredundancyTyperecord component.- Returns:
- the value of the
redundancyTyperecord component
-
redundantId
Returns the value of theredundantIdrecord component.- Returns:
- the value of the
redundantIdrecord component
-
termMonths
Returns the value of thetermMonthsrecord component.- Returns:
- the value of the
termMonthsrecord component
-
createdAt
-
accountNumber
Returns the value of theaccountNumberrecord component.- Returns:
- the value of the
accountNumberrecord component
-