Record Class EstateInventory.RouterRecord
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.estate.EstateInventory.RouterRecord
- Record Components:
id- the router uuidname- the router namepackageCode- the package code (LAB,STANDARD...)metro- the metro codestate- the router stateconnectionCount-connectionsCountas reportedtermMonths-order.termLength, when reportedcreatedAt- when the router was createdprojectId- the project idaccountNumber- the account numbernotificationCount- the number of notification entries
- Enclosing class:
EstateInventory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccountNumberrecord component.Returns the value of theconnectionCountrecord component.Returns the value of thecreatedAtrecord 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.booleanisLive()Whether the router is provisioned.metro()Returns the value of themetrorecord component.name()Returns the value of thenamerecord component.Returns the value of thenotificationCountrecord component.Returns the value of thepackageCoderecord component.Returns the value of theprojectIdrecord component.state()Returns the value of thestaterecord component.Returns the value of thetermMonthsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RouterRecord
public RouterRecord(String id, String name, String packageCode, String metro, String state, Integer connectionCount, Integer termMonths, Instant createdAt, String projectId, String accountNumber, Integer notificationCount) Creates an instance of aRouterRecordrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentpackageCode- the value for thepackageCoderecord componentmetro- the value for themetrorecord componentstate- the value for thestaterecord componentconnectionCount- the value for theconnectionCountrecord componenttermMonths- the value for thetermMonthsrecord componentcreatedAt- the value for thecreatedAtrecord componentprojectId- the value for theprojectIdrecord componentaccountNumber- the value for theaccountNumberrecord componentnotificationCount- the value for thenotificationCountrecord component
-
-
Method Details
-
isLive
public boolean isLive()Whether the router is provisioned.- Returns:
trueforPROVISIONED
-
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
-
packageCode
Returns the value of thepackageCoderecord component.- Returns:
- the value of the
packageCoderecord component
-
metro
-
state
-
connectionCount
Returns the value of theconnectionCountrecord component.- Returns:
- the value of the
connectionCountrecord component
-
termMonths
Returns the value of thetermMonthsrecord component.- Returns:
- the value of the
termMonthsrecord component
-
createdAt
-
projectId
-
accountNumber
Returns the value of theaccountNumberrecord component.- Returns:
- the value of the
accountNumberrecord component
-
notificationCount
Returns the value of thenotificationCountrecord component.- Returns:
- the value of the
notificationCountrecord component
-