Class CreateIPSecTunnelBgpSessionDetails
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.vnmonitoring.model.CreateIPSecTunnelBgpSessionDetails
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class CreateIPSecTunnelBgpSessionDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Note: Objects should always be created or deserialized using theCreateIPSecTunnelBgpSessionDetails.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
CreateIPSecTunnelBgpSessionDetails.Builder
, which maintain a set of all explicitly set fields calledCreateIPSecTunnelBgpSessionDetails.Builder.__explicitlySet__
. ThehashCode()
andequals(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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CreateIPSecTunnelBgpSessionDetails.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateIPSecTunnelBgpSessionDetails.Builder
builder()
Create a new builder.boolean
equals(Object o)
String
getCustomerBgpAsn()
If the tunnel’s routing attribute is set to BGP (seeIPSecConnectionTunnel
), 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
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()
CreateIPSecTunnelBgpSessionDetails.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
CreateIPSecTunnelBgpSessionDetails
@Deprecated @ConstructorProperties({"oracleInterfaceIp","customerInterfaceIp","oracleInterfaceIpv6","customerInterfaceIpv6","customerBgpAsn"}) public CreateIPSecTunnelBgpSessionDetails(String oracleInterfaceIp, String customerInterfaceIp, String oracleInterfaceIpv6, String customerInterfaceIpv6, String customerBgpAsn)
Deprecated.
-
-
Method Detail
-
builder
public static CreateIPSecTunnelBgpSessionDetails.Builder builder()
Create a new builder.
-
toBuilder
public CreateIPSecTunnelBgpSessionDetails.Builder toBuilder()
-
getOracleInterfaceIp
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 to troubleshoot or monitor the tunnel.
The value must be a /30 or /31.
Example: 10.0.0.4/31
- Returns:
- the value
-
getCustomerInterfaceIp
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 to troubleshoot or monitor the tunnel.
The value must be a /30 or /31.
Example: 10.0.0.5/31
- Returns:
- the value
-
getOracleInterfaceIpv6
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
- Returns:
- the value
-
getCustomerInterfaceIpv6
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
- Returns:
- the value
-
getCustomerBgpAsn
public String getCustomerBgpAsn()
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's routing attribute is set to STATIC, the customerBgpAsn must be null.
Example: 12345 (2-byte) or 1587232876 (4-byte)
- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-