Class IPSecConnectionTunnel.Builder
- java.lang.Object
-
- com.oracle.bmc.vnmonitoring.model.IPSecConnectionTunnel.Builder
-
- Enclosing class:
- IPSecConnectionTunnel
public static class IPSecConnectionTunnel.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IPSecConnectionTunnel.BuilderassociatedVirtualCircuits(List<String> associatedVirtualCircuits)The list of virtual circuit OCIDs over which your network can reach this tunnel.IPSecConnectionTunnel.BuilderbgpSessionInfo(BgpSessionInfo bgpSessionInfo)IPSecConnectionTunnelbuild()IPSecConnectionTunnel.BuildercompartmentId(String compartmentId)The OCID of the compartment containing the tunnel.IPSecConnectionTunnel.Buildercopy(IPSecConnectionTunnel model)IPSecConnectionTunnel.BuildercpeIp(String cpeIp)The IP address of the CPE device’s VPN headend.IPSecConnectionTunnel.BuilderdisplayName(String displayName)A user-friendly name.IPSecConnectionTunnel.BuilderdpdMode(IPSecConnectionTunnel.DpdMode dpdMode)Dead peer detection (DPD) mode set on the Oracle side of the connection.IPSecConnectionTunnel.BuilderdpdTimeoutInSec(Integer dpdTimeoutInSec)DPD timeout in seconds.IPSecConnectionTunnel.BuilderencryptionDomainConfig(EncryptionDomainConfig encryptionDomainConfig)IPSecConnectionTunnel.Builderid(String id)The OCID of the tunnel.IPSecConnectionTunnel.BuilderikeVersion(IPSecConnectionTunnel.IkeVersion ikeVersion)Internet Key Exchange protocol version.IPSecConnectionTunnel.BuilderlifecycleState(IPSecConnectionTunnel.LifecycleState lifecycleState)The tunnel’s lifecycle state.IPSecConnectionTunnel.BuildernatTranslationEnabled(IPSecConnectionTunnel.NatTranslationEnabled natTranslationEnabled)By default (the AUTO setting), IKE sends packets with a source and destination port set to 500, and when it detects that the port used to forward packets has changed (most likely because a NAT device is between the CPE device and the Oracle VPN headend) it will try to negotiate the use of NAT-T.IPSecConnectionTunnel.BuilderoracleCanInitiate(IPSecConnectionTunnel.OracleCanInitiate oracleCanInitiate)Indicates whether Oracle can only respond to a request to start an IPSec tunnel from the CPE device, or both respond to and initiate requests.IPSecConnectionTunnel.BuilderphaseOneDetails(TunnelPhaseOneDetails phaseOneDetails)IPSecConnectionTunnel.BuilderphaseTwoDetails(TunnelPhaseTwoDetails phaseTwoDetails)IPSecConnectionTunnel.Builderrouting(IPSecConnectionTunnel.Routing routing)The type of routing used for this tunnel (BGP dynamic routing, static routing, or policy-based routing).IPSecConnectionTunnel.Builderstatus(IPSecConnectionTunnel.Status status)The status of the tunnel based on IPSec protocol characteristics.IPSecConnectionTunnel.BuildertimeCreated(Date timeCreated)The date and time the IPSec tunnel was created, in the format defined by RFC3339.IPSecConnectionTunnel.BuildertimeStatusUpdated(Date timeStatusUpdated)When the status of the IPSec tunnel last changed, in the format defined by RFC3339.IPSecConnectionTunnel.BuildervpnIp(String vpnIp)The IP address of the Oracle VPN headend for the connection.
-
-
-
Method Detail
-
compartmentId
public IPSecConnectionTunnel.Builder compartmentId(String compartmentId)
The OCID of the compartment containing the tunnel.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
id
public IPSecConnectionTunnel.Builder id(String id)
The OCID of the tunnel.- Parameters:
id- the value to set- Returns:
- this builder
-
vpnIp
public IPSecConnectionTunnel.Builder vpnIp(String vpnIp)
The IP address of the Oracle VPN headend for the connection.Example: 203.0.113.21
- Parameters:
vpnIp- the value to set- Returns:
- this builder
-
cpeIp
public IPSecConnectionTunnel.Builder cpeIp(String cpeIp)
The IP address of the CPE device’s VPN headend.Example: 203.0.113.22
- Parameters:
cpeIp- the value to set- Returns:
- this builder
-
status
public IPSecConnectionTunnel.Builder status(IPSecConnectionTunnel.Status status)
The status of the tunnel based on IPSec protocol characteristics.- Parameters:
status- the value to set- Returns:
- this builder
-
ikeVersion
public IPSecConnectionTunnel.Builder ikeVersion(IPSecConnectionTunnel.IkeVersion ikeVersion)
Internet Key Exchange protocol version.- Parameters:
ikeVersion- the value to set- Returns:
- this builder
-
lifecycleState
public IPSecConnectionTunnel.Builder lifecycleState(IPSecConnectionTunnel.LifecycleState lifecycleState)
The tunnel’s lifecycle state.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
displayName
public IPSecConnectionTunnel.Builder displayName(String displayName)
A user-friendly name.Does not have to be unique, and it’s changeable. Avoid entering confidential information.
- Parameters:
displayName- the value to set- Returns:
- this builder
-
bgpSessionInfo
public IPSecConnectionTunnel.Builder bgpSessionInfo(BgpSessionInfo bgpSessionInfo)
-
encryptionDomainConfig
public IPSecConnectionTunnel.Builder encryptionDomainConfig(EncryptionDomainConfig encryptionDomainConfig)
-
routing
public IPSecConnectionTunnel.Builder routing(IPSecConnectionTunnel.Routing routing)
The type of routing used for this tunnel (BGP dynamic routing, static routing, or policy-based routing).- Parameters:
routing- the value to set- Returns:
- this builder
-
timeCreated
public IPSecConnectionTunnel.Builder timeCreated(Date timeCreated)
The date and time the IPSec tunnel was created, in the format defined by RFC3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeStatusUpdated
public IPSecConnectionTunnel.Builder timeStatusUpdated(Date timeStatusUpdated)
When the status of the IPSec tunnel last changed, in the format defined by RFC3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeStatusUpdated- the value to set- Returns:
- this builder
-
oracleCanInitiate
public IPSecConnectionTunnel.Builder oracleCanInitiate(IPSecConnectionTunnel.OracleCanInitiate oracleCanInitiate)
Indicates whether Oracle can only respond to a request to start an IPSec tunnel from the CPE device, or both respond to and initiate requests.- Parameters:
oracleCanInitiate- the value to set- Returns:
- this builder
-
natTranslationEnabled
public IPSecConnectionTunnel.Builder natTranslationEnabled(IPSecConnectionTunnel.NatTranslationEnabled natTranslationEnabled)
By default (the AUTO setting), IKE sends packets with a source and destination port set to 500, and when it detects that the port used to forward packets has changed (most likely because a NAT device is between the CPE device and the Oracle VPN headend) it will try to negotiate the use of NAT-T.The ENABLED option sets the IKE protocol to use port 4500 instead of 500 and forces encapsulating traffic with the ESP protocol inside UDP packets.
The DISABLED option directs IKE to completely refuse to negotiate NAT-T even if it senses there may be a NAT device in use.
.
- Parameters:
natTranslationEnabled- the value to set- Returns:
- this builder
-
dpdMode
public IPSecConnectionTunnel.Builder dpdMode(IPSecConnectionTunnel.DpdMode dpdMode)
Dead peer detection (DPD) mode set on the Oracle side of the connection.This mode sets whether Oracle can only respond to a request from the CPE device to start DPD, or both respond to and initiate requests.
- Parameters:
dpdMode- the value to set- Returns:
- this builder
-
dpdTimeoutInSec
public IPSecConnectionTunnel.Builder dpdTimeoutInSec(Integer dpdTimeoutInSec)
DPD timeout in seconds.- Parameters:
dpdTimeoutInSec- the value to set- Returns:
- this builder
-
phaseOneDetails
public IPSecConnectionTunnel.Builder phaseOneDetails(TunnelPhaseOneDetails phaseOneDetails)
-
phaseTwoDetails
public IPSecConnectionTunnel.Builder phaseTwoDetails(TunnelPhaseTwoDetails phaseTwoDetails)
-
associatedVirtualCircuits
public IPSecConnectionTunnel.Builder associatedVirtualCircuits(List<String> associatedVirtualCircuits)
The list of virtual circuit OCIDs over which your network can reach this tunnel.- Parameters:
associatedVirtualCircuits- the value to set- Returns:
- this builder
-
build
public IPSecConnectionTunnel build()
-
copy
public IPSecConnectionTunnel.Builder copy(IPSecConnectionTunnel model)
-
-