Record Class EstateInventory.PortRecord

java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.estate.EstateInventory.PortRecord
Record Components:
id - the port uuid
name - the port name
metro - the metro code
state - the port state as the API reported it
speedMbps - the port bandwidth in Mbps (for a LAG, the aggregate)
usedMbps - the bandwidth allocated to virtual connections, as reported; null when not reported
availableMbps - the bandwidth still allocatable, as reported; null when not reported
encapsulation - the encapsulation type (DOT1Q, QINQ...)
lagEnabled - whether the port is a LAG
physicalPortCount - the number of physical ports, when reported
redundancyPriority - PRIMARY or SECONDARY, when reported
redundancyGroup - the device redundancy group, when reported
deviceName - the Equinix switch the port is on, when reported
connectionCount - the number of virtual connections the API reports on the port
projectId - the project id
accountNumber - the account number
createdAt - when the port was created
notificationCount - the number of notification entries
Enclosing class:
EstateInventory

public static record EstateInventory.PortRecord(String id, String name, String metro, String state, Integer speedMbps, Integer usedMbps, Integer availableMbps, String encapsulation, Boolean lagEnabled, Integer physicalPortCount, String redundancyPriority, String redundancyGroup, String deviceName, Integer connectionCount, String projectId, String accountNumber, Instant createdAt, Integer notificationCount) extends Record
A Fabric port.
  • Constructor Details

    • PortRecord

      public PortRecord(String id, String name, String metro, String state, Integer speedMbps, Integer usedMbps, Integer availableMbps, String encapsulation, Boolean lagEnabled, Integer physicalPortCount, String redundancyPriority, String redundancyGroup, String deviceName, Integer connectionCount, String projectId, String accountNumber, Instant createdAt, Integer notificationCount)
      Creates an instance of a PortRecord record class.
      Parameters:
      id - the value for the id record component
      name - the value for the name record component
      metro - the value for the metro record component
      state - the value for the state record component
      speedMbps - the value for the speedMbps record component
      usedMbps - the value for the usedMbps record component
      availableMbps - the value for the availableMbps record component
      encapsulation - the value for the encapsulation record component
      lagEnabled - the value for the lagEnabled record component
      physicalPortCount - the value for the physicalPortCount record component
      redundancyPriority - the value for the redundancyPriority record component
      redundancyGroup - the value for the redundancyGroup record component
      deviceName - the value for the deviceName record component
      connectionCount - the value for the connectionCount record component
      projectId - the value for the projectId record component
      accountNumber - the value for the accountNumber record component
      createdAt - the value for the createdAt record component
      notificationCount - the value for the notificationCount 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
    • 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
    • speedMbps

      public Integer speedMbps()
      Returns the value of the speedMbps record component.
      Returns:
      the value of the speedMbps record component
    • usedMbps

      public Integer usedMbps()
      Returns the value of the usedMbps record component.
      Returns:
      the value of the usedMbps record component
    • availableMbps

      public Integer availableMbps()
      Returns the value of the availableMbps record component.
      Returns:
      the value of the availableMbps record component
    • encapsulation

      public String encapsulation()
      Returns the value of the encapsulation record component.
      Returns:
      the value of the encapsulation record component
    • lagEnabled

      public Boolean lagEnabled()
      Returns the value of the lagEnabled record component.
      Returns:
      the value of the lagEnabled record component
    • physicalPortCount

      public Integer physicalPortCount()
      Returns the value of the physicalPortCount record component.
      Returns:
      the value of the physicalPortCount record component
    • redundancyPriority

      public String redundancyPriority()
      Returns the value of the redundancyPriority record component.
      Returns:
      the value of the redundancyPriority record component
    • redundancyGroup

      public String redundancyGroup()
      Returns the value of the redundancyGroup record component.
      Returns:
      the value of the redundancyGroup record component
    • deviceName

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

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

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

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