Record Class EstateInventory.RouterRecord

java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.estate.EstateInventory.RouterRecord
Record Components:
id - the router uuid
name - the router name
packageCode - the package code (LAB, STANDARD...)
metro - the metro code
state - the router state
connectionCount - connectionsCount as reported
termMonths - order.termLength, when reported
createdAt - when the router was created
projectId - the project id
accountNumber - the account number
notificationCount - the number of notification entries
Enclosing class:
EstateInventory

public static record EstateInventory.RouterRecord(String id, String name, String packageCode, String metro, String state, Integer connectionCount, Integer termMonths, Instant createdAt, String projectId, String accountNumber, Integer notificationCount) extends Record
A Fabric Cloud Router.
  • 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 a RouterRecord record class.
      Parameters:
      id - the value for the id record component
      name - the value for the name record component
      packageCode - the value for the packageCode record component
      metro - the value for the metro record component
      state - the value for the state record component
      connectionCount - the value for the connectionCount record component
      termMonths - the value for the termMonths record component
      createdAt - the value for the createdAt record component
      projectId - the value for the projectId record component
      accountNumber - the value for the accountNumber record component
      notificationCount - the value for the notificationCount record component
  • Method Details

    • isLive

      public boolean isLive()
      Whether the router is provisioned.
      Returns:
      true for PROVISIONED
    • 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
    • packageCode

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

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

      public String state()
      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • connectionCount

      public Integer connectionCount()
      Returns the value of the connectionCount record component.
      Returns:
      the value of the connectionCount 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
    • projectId

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

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

      public Integer notificationCount()
      Returns the value of the notificationCount record component.
      Returns:
      the value of the notificationCount record component