Class BgpSessionInfo.Builder
- java.lang.Object
-
- com.oracle.bmc.vnmonitoring.model.BgpSessionInfo.Builder
-
- Enclosing class:
- BgpSessionInfo
public static class BgpSessionInfo.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BgpSessionInfo.Builder
bgpIpv6State(BgpSessionInfo.BgpIpv6State bgpIpv6State)
The state of the BGP IPv6 session.BgpSessionInfo.Builder
bgpState(BgpSessionInfo.BgpState bgpState)
The state of the BGP session.BgpSessionInfo
build()
BgpSessionInfo.Builder
copy(BgpSessionInfo model)
BgpSessionInfo.Builder
customerBgpAsn(String customerBgpAsn)
If the tunnel’s routing attribute is set to BGP (seeIPSecConnectionTunnel
), this ASN is required and used for the tunnel’s BGP session.BgpSessionInfo.Builder
customerInterfaceIp(String customerInterfaceIp)
The IP address for the CPE end of the inside tunnel interface.BgpSessionInfo.Builder
customerInterfaceIpv6(String customerInterfaceIpv6)
The IPv6 address for the CPE end of the inside tunnel interface.BgpSessionInfo.Builder
oracleBgpAsn(String oracleBgpAsn)
The Oracle BGP ASN.BgpSessionInfo.Builder
oracleInterfaceIp(String oracleInterfaceIp)
The IP address for the Oracle end of the inside tunnel interface.BgpSessionInfo.Builder
oracleInterfaceIpv6(String oracleInterfaceIpv6)
The IPv6 address for the Oracle end of the inside tunnel interface.
-
-
-
Method Detail
-
oracleInterfaceIp
public BgpSessionInfo.Builder oracleInterfaceIp(String oracleInterfaceIp)
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
- Parameters:
oracleInterfaceIp
- the value to set- Returns:
- this builder
-
customerInterfaceIp
public BgpSessionInfo.Builder customerInterfaceIp(String customerInterfaceIp)
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
- Parameters:
customerInterfaceIp
- the value to set- Returns:
- this builder
-
oracleInterfaceIpv6
public BgpSessionInfo.Builder oracleInterfaceIpv6(String oracleInterfaceIpv6)
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
- Parameters:
oracleInterfaceIpv6
- the value to set- Returns:
- this builder
-
customerInterfaceIpv6
public BgpSessionInfo.Builder customerInterfaceIpv6(String customerInterfaceIpv6)
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
- Parameters:
customerInterfaceIpv6
- the value to set- Returns:
- this builder
-
oracleBgpAsn
public BgpSessionInfo.Builder oracleBgpAsn(String oracleBgpAsn)
The Oracle BGP ASN.- Parameters:
oracleBgpAsn
- the value to set- Returns:
- this builder
-
customerBgpAsn
public BgpSessionInfo.Builder customerBgpAsn(String customerBgpAsn)
If the tunnel’s routing attribute is set to BGP (seeIPSecConnectionTunnel
), 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)
- Parameters:
customerBgpAsn
- the value to set- Returns:
- this builder
-
bgpState
public BgpSessionInfo.Builder bgpState(BgpSessionInfo.BgpState bgpState)
The state of the BGP session.- Parameters:
bgpState
- the value to set- Returns:
- this builder
-
bgpIpv6State
public BgpSessionInfo.Builder bgpIpv6State(BgpSessionInfo.BgpIpv6State bgpIpv6State)
The state of the BGP IPv6 session.- Parameters:
bgpIpv6State
- the value to set- Returns:
- this builder
-
build
public BgpSessionInfo build()
-
copy
public BgpSessionInfo.Builder copy(BgpSessionInfo model)
-
-