Record Class LiveRoutingProtocol

java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.plan.LiveRoutingProtocol
Record Components:
uuid - the Fabric uuid
name - the name
type - DIRECT or BGP
state - the state name, or null
connectionUuid - the parent connection uuid
equinixIfaceIp - DIRECT: the Equinix interface address
customerPeerIp - BGP: the customer peer address
customerAsn - BGP: the customer ASN
bfdEnabled - BGP: whether BFD is on, or null when not returned

public record LiveRoutingProtocol(String uuid, String name, String type, String state, String connectionUuid, String equinixIfaceIp, String customerPeerIp, Long customerAsn, Boolean bfdEnabled) extends Record
A routing protocol as read from Fabric.
  • Constructor Details

    • LiveRoutingProtocol

      public LiveRoutingProtocol(String uuid, String name, String type, String state, String connectionUuid, String equinixIfaceIp, String customerPeerIp, Long customerAsn, Boolean bfdEnabled)
      Creates an instance of a LiveRoutingProtocol record class.
      Parameters:
      uuid - the value for the uuid record component
      name - the value for the name record component
      type - the value for the type record component
      state - the value for the state record component
      connectionUuid - the value for the connectionUuid record component
      equinixIfaceIp - the value for the equinixIfaceIp record component
      customerPeerIp - the value for the customerPeerIp record component
      customerAsn - the value for the customerAsn record component
      bfdEnabled - the value for the bfdEnabled 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.
    • uuid

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

      public String connectionUuid()
      Returns the value of the connectionUuid record component.
      Returns:
      the value of the connectionUuid record component
    • equinixIfaceIp

      public String equinixIfaceIp()
      Returns the value of the equinixIfaceIp record component.
      Returns:
      the value of the equinixIfaceIp record component
    • customerPeerIp

      public String customerPeerIp()
      Returns the value of the customerPeerIp record component.
      Returns:
      the value of the customerPeerIp record component
    • customerAsn

      public Long customerAsn()
      Returns the value of the customerAsn record component.
      Returns:
      the value of the customerAsn record component
    • bfdEnabled

      public Boolean bfdEnabled()
      Returns the value of the bfdEnabled record component.
      Returns:
      the value of the bfdEnabled record component