Record Class EstateInventory.ConnectionRecord

java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.estate.EstateInventory.ConnectionRecord
Record Components:
id - the connection uuid
name - the connection name
type - the connection type (EVPL_VC, IP_VC...)
state - the connection state
equinixStatus - operation.equinixStatus, for example PENDING_APPROVAL
providerStatus - operation.providerStatus, when reported
bandwidthMbps - the provisioned bandwidth in Mbps
aSide - the A side
zSide - the Z side
termMonths - order.termLength in months; 1 or null means on-demand
redundancyGroup - the redundancy group id
redundancyPriority - PRIMARY or SECONDARY
createdAt - when the connection was created
projectId - the project id
accountNumber - the account number
purchaseOrder - the purchase-order number, when set
notificationCount - 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 Details

  • Method Details

    • touchesPort

      public boolean touchesPort(String portId)
      Whether either side terminates on the port.
      Parameters:
      portId - the port id
      Returns:
      true when it does
    • isLive

      public boolean isLive()
      Whether the connection is live (provisioned and carrying, or able to carry, traffic).
      Returns:
      true for ACTIVE or PROVISIONED
    • isOnDemand

      public boolean isOnDemand()
      Whether the connection is billed month to month (no term or a 1-month term).
      Returns:
      true when on demand; false when a longer term is recorded
    • pricingMetro

      public String 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

      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
    • type

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

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

      public String equinixStatus()
      Returns the value of the equinixStatus record component.
      Returns:
      the value of the equinixStatus record component
    • providerStatus

      public String providerStatus()
      Returns the value of the providerStatus record component.
      Returns:
      the value of the providerStatus record component
    • bandwidthMbps

      public Integer bandwidthMbps()
      Returns the value of the bandwidthMbps record component.
      Returns:
      the value of the bandwidthMbps record component
    • aSide

      public EstateInventory.Endpoint aSide()
      Returns the value of the aSide record component.
      Returns:
      the value of the aSide record component
    • zSide

      public EstateInventory.Endpoint zSide()
      Returns the value of the zSide record component.
      Returns:
      the value of the zSide record component
    • termMonths

      public Integer termMonths()
      Returns the value of the termMonths record component.
      Returns:
      the value of the termMonths record component
    • redundancyGroup

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

      public String redundancyPriority()
      Returns the value of the redundancyPriority record component.
      Returns:
      the value of the redundancyPriority 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
    • purchaseOrder

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

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