@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class BgpSessionInfo extends Object
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
__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take
__explicitlySet__
into account. The constructor, on the other hand, does not set __explicitlySet__
(since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
BgpSessionInfo.BgpState
The state of the BGP session.
|
static class |
BgpSessionInfo.Builder |
Constructor and Description |
---|
BgpSessionInfo(String oracleInterfaceIp,
String customerInterfaceIp,
String oracleBgpAsn,
String customerBgpAsn,
BgpSessionInfo.BgpState bgpState)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static BgpSessionInfo.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
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 |
getOracleBgpAsn()
The Oracle BGP ASN.
|
String |
getOracleInterfaceIp()
The IP address for the Oracle end of the inside tunnel interface.
|
int |
hashCode() |
BgpSessionInfo.Builder |
toBuilder() |
String |
toString() |
@ConstructorProperties(value={"oracleInterfaceIp","customerInterfaceIp","oracleBgpAsn","customerBgpAsn","bgpState"}) @Deprecated public BgpSessionInfo(String oracleInterfaceIp, String customerInterfaceIp, String oracleBgpAsn, String customerBgpAsn, BgpSessionInfo.BgpState bgpState)
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 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.
Copyright © 2016–2021. All rights reserved.