Record Class EstateInventory.PortRecord
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.estate.EstateInventory.PortRecord
- Record Components:
id- the port uuidname- the port namemetro- the metro codestate- the port state as the API reported itspeedMbps- the port bandwidth in Mbps (for a LAG, the aggregate)usedMbps- the bandwidth allocated to virtual connections, as reported;nullwhen not reportedavailableMbps- the bandwidth still allocatable, as reported;nullwhen not reportedencapsulation- the encapsulation type (DOT1Q,QINQ...)lagEnabled- whether the port is a LAGphysicalPortCount- the number of physical ports, when reportedredundancyPriority-PRIMARYorSECONDARY, when reportedredundancyGroup- the device redundancy group, when reporteddeviceName- the Equinix switch the port is on, when reportedconnectionCount- the number of virtual connections the API reports on the portprojectId- the project idaccountNumber- the account numbercreatedAt- when the port was creatednotificationCount- 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 Summary
ConstructorsConstructorDescriptionPortRecord(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 aPortRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccountNumberrecord component.Returns the value of theavailableMbpsrecord component.Returns the value of theconnectionCountrecord component.Returns the value of thecreatedAtrecord component.Returns the value of thedeviceNamerecord component.Returns the value of theencapsulationrecord 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.Returns the value of thelagEnabledrecord component.metro()Returns the value of themetrorecord component.name()Returns the value of thenamerecord component.Returns the value of thenotificationCountrecord component.Returns the value of thephysicalPortCountrecord component.Returns the value of theprojectIdrecord component.Returns the value of theredundancyGrouprecord component.Returns the value of theredundancyPriorityrecord component.Returns the value of thespeedMbpsrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.usedMbps()Returns the value of theusedMbpsrecord component.
-
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 aPortRecordrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentmetro- the value for themetrorecord componentstate- the value for thestaterecord componentspeedMbps- the value for thespeedMbpsrecord componentusedMbps- the value for theusedMbpsrecord componentavailableMbps- the value for theavailableMbpsrecord componentencapsulation- the value for theencapsulationrecord componentlagEnabled- the value for thelagEnabledrecord componentphysicalPortCount- the value for thephysicalPortCountrecord componentredundancyPriority- the value for theredundancyPriorityrecord componentredundancyGroup- the value for theredundancyGrouprecord componentdeviceName- the value for thedeviceNamerecord componentconnectionCount- the value for theconnectionCountrecord componentprojectId- the value for theprojectIdrecord componentaccountNumber- the value for theaccountNumberrecord componentcreatedAt- the value for thecreatedAtrecord componentnotificationCount- the value for thenotificationCountrecord 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
-
metro
-
state
-
speedMbps
-
usedMbps
-
availableMbps
Returns the value of theavailableMbpsrecord component.- Returns:
- the value of the
availableMbpsrecord component
-
encapsulation
Returns the value of theencapsulationrecord component.- Returns:
- the value of the
encapsulationrecord component
-
lagEnabled
Returns the value of thelagEnabledrecord component.- Returns:
- the value of the
lagEnabledrecord component
-
physicalPortCount
Returns the value of thephysicalPortCountrecord component.- Returns:
- the value of the
physicalPortCountrecord component
-
redundancyPriority
Returns the value of theredundancyPriorityrecord component.- Returns:
- the value of the
redundancyPriorityrecord component
-
redundancyGroup
Returns the value of theredundancyGrouprecord component.- Returns:
- the value of the
redundancyGrouprecord component
-
deviceName
Returns the value of thedeviceNamerecord component.- Returns:
- the value of the
deviceNamerecord component
-
connectionCount
Returns the value of theconnectionCountrecord component.- Returns:
- the value of the
connectionCountrecord component
-
projectId
-
accountNumber
Returns the value of theaccountNumberrecord component.- Returns:
- the value of the
accountNumberrecord component
-
createdAt
-
notificationCount
Returns the value of thenotificationCountrecord component.- Returns:
- the value of the
notificationCountrecord component
-