Record Class EstateInventory.ConnectionRecord
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.estate.EstateInventory.ConnectionRecord
- Record Components:
id- the connection uuidname- the connection nametype- the connection type (EVPL_VC,IP_VC...)state- the connection stateequinixStatus-operation.equinixStatus, for examplePENDING_APPROVALproviderStatus-operation.providerStatus, when reportedbandwidthMbps- the provisioned bandwidth in MbpsaSide- the A sidezSide- the Z sidetermMonths-order.termLengthin months;1ornullmeans on-demandredundancyGroup- the redundancy group idredundancyPriority-PRIMARYorSECONDARYcreatedAt- when the connection was createdprojectId- the project idaccountNumber- the account numberpurchaseOrder- the purchase-order number, when setnotificationCount- the number of notification entries
- Enclosing class:
EstateInventory
public static record EstateInventory.ConnectionRecord(String id, String name, String type, String state, String equinixStatus, String providerStatus, Integer bandwidthMbps, EstateInventory.Endpoint aSide, EstateInventory.Endpoint zSide, Integer termMonths, String redundancyGroup, String redundancyPriority, Instant createdAt, String projectId, String accountNumber, String purchaseOrder, Integer notificationCount)
extends Record
A Fabric virtual connection.
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionRecord(String id, String name, String type, String state, String equinixStatus, String providerStatus, Integer bandwidthMbps, EstateInventory.Endpoint aSide, EstateInventory.Endpoint zSide, Integer termMonths, String redundancyGroup, String redundancyPriority, Instant createdAt, String projectId, String accountNumber, String purchaseOrder, Integer notificationCount) Replaces missing sides withEstateInventory.Endpoint.unknown(). -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccountNumberrecord component.aSide()Returns the value of theaSiderecord component.Returns the value of thebandwidthMbpsrecord component.Returns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theequinixStatusrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.booleanisLive()Whether the connection is live (provisioned and carrying, or able to carry, traffic).booleanWhether the connection is billed month to month (no term or a 1-month term).name()Returns the value of thenamerecord component.Returns the value of thenotificationCountrecord component.The metro the connection is priced in: the A side's metro, else the Z side's.Returns the value of theprojectIdrecord component.Returns the value of theproviderStatusrecord component.Returns the value of thepurchaseOrderrecord component.Returns the value of theredundancyGrouprecord component.Returns the value of theredundancyPriorityrecord component.state()Returns the value of thestaterecord component.Returns the value of thetermMonthsrecord component.final StringtoString()Returns a string representation of this record class.booleantouchesPort(String portId) Whether either side terminates on the port.type()Returns the value of thetyperecord component.zSide()Returns the value of thezSiderecord component.
-
Constructor Details
-
ConnectionRecord
public ConnectionRecord(String id, String name, String type, String state, String equinixStatus, String providerStatus, Integer bandwidthMbps, EstateInventory.Endpoint aSide, EstateInventory.Endpoint zSide, Integer termMonths, String redundancyGroup, String redundancyPriority, Instant createdAt, String projectId, String accountNumber, String purchaseOrder, Integer notificationCount) Replaces missing sides withEstateInventory.Endpoint.unknown().
-
-
Method Details
-
touchesPort
Whether either side terminates on the port.- Parameters:
portId- the port id- Returns:
truewhen it does
-
isLive
public boolean isLive()Whether the connection is live (provisioned and carrying, or able to carry, traffic).- Returns:
trueforACTIVEorPROVISIONED
-
isOnDemand
public boolean isOnDemand()Whether the connection is billed month to month (no term or a 1-month term).- Returns:
truewhen on demand;falsewhen a longer term is recorded
-
pricingMetro
The metro the connection is priced in: the A side's metro, else the Z side's.- Returns:
- the metro code, or
null
-
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
-
type
-
state
-
equinixStatus
Returns the value of theequinixStatusrecord component.- Returns:
- the value of the
equinixStatusrecord component
-
providerStatus
Returns the value of theproviderStatusrecord component.- Returns:
- the value of the
providerStatusrecord component
-
bandwidthMbps
Returns the value of thebandwidthMbpsrecord component.- Returns:
- the value of the
bandwidthMbpsrecord component
-
aSide
-
zSide
-
termMonths
Returns the value of thetermMonthsrecord component.- Returns:
- the value of the
termMonthsrecord component
-
redundancyGroup
Returns the value of theredundancyGrouprecord component.- Returns:
- the value of the
redundancyGrouprecord component
-
redundancyPriority
Returns the value of theredundancyPriorityrecord component.- Returns:
- the value of the
redundancyPriorityrecord component
-
createdAt
-
projectId
-
accountNumber
Returns the value of theaccountNumberrecord component.- Returns:
- the value of the
accountNumberrecord component
-
purchaseOrder
Returns the value of thepurchaseOrderrecord component.- Returns:
- the value of the
purchaseOrderrecord component
-
notificationCount
Returns the value of thenotificationCountrecord component.- Returns:
- the value of the
notificationCountrecord component
-