@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class CrossConnectMapping extends ExplicitlySetBmcModel
For use with Oracle Cloud Infrastructure FastConnect. Each
VirtualCircuit
runs on one or
more cross-connects or cross-connect groups. A CrossConnectMapping
contains the properties for an individual cross-connect or cross-connect group
associated with a given virtual circuit.
The mapping includes information about the cross-connect or cross-connect group, the VLAN, and the BGP peering session.
If you're a customer who is colocated with Oracle, that means you own both the virtual circuit and the physical connection it runs on (cross-connect or cross-connect group), so you specify all the information in the mapping. There's one exception: for a public virtual circuit, Oracle specifies the BGP IPv4 addresses.
If you're a provider, then you own the physical connection that the customer's virtual circuit runs on, so you contribute information about the cross-connect or cross-connect group and VLAN.
Who specifies the BGP peering information in the case of customer connection via
provider? If the BGP session goes from Oracle to the provider's edge router, then
the provider also specifies the BGP peering information. If the BGP session instead
goes from Oracle to the customer's edge router, then the customer specifies the BGP
peering information. There's one exception: for a public virtual circuit, Oracle
specifies the BGP IPv4 addresses.
Note: Objects should always be created or deserialized using the CrossConnectMapping.Builder
. This model distinguishes fields
that are null
because they are unset from fields that are explicitly set to null
. This is done in
the setter methods of the CrossConnectMapping.Builder
, which maintain a set of all explicitly set fields called
ExplicitlySetBmcModel.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take
ExplicitlySetBmcModel.__explicitlySet__
into account. The constructor, on the other hand, does not set ExplicitlySetBmcModel.__explicitlySet__
(since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
CrossConnectMapping.Builder |
Constructor and Description |
---|
CrossConnectMapping(String bgpMd5AuthKey,
String crossConnectOrCrossConnectGroupId,
String customerBgpPeeringIp,
String oracleBgpPeeringIp,
Integer vlan)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static CrossConnectMapping.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getBgpMd5AuthKey()
The key for BGP MD5 authentication.
|
String |
getCrossConnectOrCrossConnectGroupId()
The OCID of the cross-connect or cross-connect group for this mapping.
|
String |
getCustomerBgpPeeringIp()
The BGP IPv4 address for the router on the other end of the BGP session from
Oracle.
|
String |
getOracleBgpPeeringIp()
The IPv4 address for Oracle’s end of the BGP session.
|
Integer |
getVlan()
The number of the specific VLAN (on the cross-connect or cross-connect group)
that is assigned to this virtual circuit.
|
int |
hashCode() |
CrossConnectMapping.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"bgpMd5AuthKey","crossConnectOrCrossConnectGroupId","customerBgpPeeringIp","oracleBgpPeeringIp","vlan"}) public CrossConnectMapping(String bgpMd5AuthKey, String crossConnectOrCrossConnectGroupId, String customerBgpPeeringIp, String oracleBgpPeeringIp, Integer vlan)
public static CrossConnectMapping.Builder builder()
Create a new builder.
public CrossConnectMapping.Builder toBuilder()
public String getBgpMd5AuthKey()
The key for BGP MD5 authentication. Only applicable if your system requires MD5 authentication. If empty or not set (null), that means you don’t use BGP MD5 authentication.
public String getCrossConnectOrCrossConnectGroupId()
The OCID of the cross-connect or cross-connect group for this mapping. Specified by the owner of the cross-connect or cross-connect group (the customer if the customer is colocated with Oracle, or the provider if the customer is connecting via provider).
public String getCustomerBgpPeeringIp()
The BGP IPv4 address for the router on the other end of the BGP session from Oracle. Specified by the owner of that router. If the session goes from Oracle to a customer, this is the BGP IPv4 address of the customer’s edge router. If the session goes from Oracle to a provider, this is the BGP IPv4 address of the provider’s edge router. Must use a /30 or /31 subnet mask.
There's one exception: for a public virtual circuit, Oracle specifies the BGP IPv4 addresses.
Example: 10.0.0.18/31
public String getOracleBgpPeeringIp()
The IPv4 address for Oracle’s end of the BGP session. Must use a /30 or /31 subnet mask. If the session goes from Oracle to a customer’s edge router, the customer specifies this information. If the session goes from Oracle to a provider’s edge router, the provider specifies this.
There's one exception: for a public virtual circuit, Oracle specifies the BGP IPv4 addresses.
Example: 10.0.0.19/31
public Integer getVlan()
The number of the specific VLAN (on the cross-connect or cross-connect group) that is assigned to this virtual circuit. Specified by the owner of the cross-connect or cross-connect group (the customer if the customer is colocated with Oracle, or the provider if the customer is connecting via provider).
Example: 200
public String toString()
toString
in class ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class ExplicitlySetBmcModel
public int hashCode()
hashCode
in class ExplicitlySetBmcModel
Copyright © 2016–2023. All rights reserved.