@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class BgpSessionInfo extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Information for establishing a BGP session for the IPSec tunnel.
Note: Objects should always be created or deserialized using the BgpSessionInfo.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 BgpSessionInfo.Builder
, which maintain a
set of all explicitly set fields called BgpSessionInfo.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
BgpSessionInfo.BgpIpv6State
The state of the BGP IPv6 session.
|
static class |
BgpSessionInfo.BgpState
The state of the BGP session.
|
static class |
BgpSessionInfo.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
BgpSessionInfo(String oracleInterfaceIp,
String customerInterfaceIp,
String oracleInterfaceIpv6,
String customerInterfaceIpv6,
String oracleBgpAsn,
String customerBgpAsn,
BgpSessionInfo.BgpState bgpState,
BgpSessionInfo.BgpIpv6State bgpIpv6State)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static BgpSessionInfo.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
BgpSessionInfo.BgpIpv6State |
getBgpIpv6State()
The state of the BGP IPv6 session.
|
BgpSessionInfo.BgpState |
getBgpState()
The state of the BGP session.
|
String |
getCustomerBgpAsn()
If the tunnel’s
routing attribute is set to BGP (see IPSecConnectionTunnel ), this ASN is required and used for the tunnel’s BGP session. |
String |
getCustomerInterfaceIp()
The IP address for the CPE end of the inside tunnel interface.
|
String |
getCustomerInterfaceIpv6()
The IPv6 address for the CPE end of the inside tunnel interface.
|
String |
getOracleBgpAsn()
The Oracle BGP ASN.
|
String |
getOracleInterfaceIp()
The IP address for the Oracle end of the inside tunnel interface.
|
String |
getOracleInterfaceIpv6()
The IPv6 address for the Oracle end of the inside tunnel interface.
|
int |
hashCode() |
BgpSessionInfo.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"oracleInterfaceIp","customerInterfaceIp","oracleInterfaceIpv6","customerInterfaceIpv6","oracleBgpAsn","customerBgpAsn","bgpState","bgpIpv6State"}) public BgpSessionInfo(String oracleInterfaceIp, String customerInterfaceIp, String oracleInterfaceIpv6, String customerInterfaceIpv6, String oracleBgpAsn, String customerBgpAsn, BgpSessionInfo.BgpState bgpState, BgpSessionInfo.BgpIpv6State bgpIpv6State)
public static BgpSessionInfo.Builder builder()
Create a new builder.
public BgpSessionInfo.Builder toBuilder()
public String getOracleInterfaceIp()
The IP address for the Oracle end of the inside tunnel interface.
If the tunnel's routing
attribute is set to BGP
(see IPSecConnectionTunnel
), this IP address is required and used for the tunnel's BGP session.
If routing
is instead set to STATIC
, this IP address is optional. You can
set this IP address so you can troubleshoot or monitor the tunnel.
The value must be a /30 or /31.
Example: 10.0.0.4/31
public String getCustomerInterfaceIp()
The IP address for the CPE end of the inside tunnel interface.
If the tunnel's routing
attribute is set to BGP
(see IPSecConnectionTunnel
), this IP address is required and used for the tunnel's BGP session.
If routing
is instead set to STATIC
, this IP address is optional. You can
set this IP address so you can troubleshoot or monitor the tunnel.
The value must be a /30 or /31.
Example: 10.0.0.5/31
public String getOracleInterfaceIpv6()
The IPv6 address for the Oracle end of the inside tunnel interface. This IP address is optional.
If the tunnel's routing
attribute is set to BGP
(see IPSecConnectionTunnel
), this IP address is used for the tunnel's BGP session.
If routing
is instead set to STATIC
, you can set this IP address to
troubleshoot or monitor the tunnel.
Only subnet masks from /64 up to /127 are allowed.
Example: 2001:db8::1/64
public String getCustomerInterfaceIpv6()
The IPv6 address for the CPE end of the inside tunnel interface. This IP address is optional.
If the tunnel's routing
attribute is set to BGP
(see IPSecConnectionTunnel
), this IP address is used for the tunnel's BGP session.
If routing
is instead set to STATIC
, you can set this IP address to
troubleshoot or monitor the tunnel.
Only subnet masks from /64 up to /127 are allowed.
Example: 2001:db8::1/64
public String getOracleBgpAsn()
The Oracle BGP ASN.
public String getCustomerBgpAsn()
If the tunnel’s routing
attribute is set to BGP
(see IPSecConnectionTunnel
), this ASN is required and used for the tunnel’s BGP session. This is
the ASN of the network on the CPE end of the BGP session. Can be a 2-byte or 4-byte ASN. Uses
“asplain” format.
If the tunnel uses static routing, the customerBgpAsn
must be null.
Example: 12345
(2-byte) or 1587232876
(4-byte)
public BgpSessionInfo.BgpState getBgpState()
The state of the BGP session.
public BgpSessionInfo.BgpIpv6State getBgpIpv6State()
The state of the BGP IPv6 session.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.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 com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.