Class CreateVpnServerRouteOptions
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.is.vpc.v1.model.CreateVpnServerRouteOptions
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class CreateVpnServerRouteOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The createVpnServerRoute options.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
The action to perform with a packet matching the VPN route: - `translate`: translate the source IP address to one of the private IP addresses of the VPN server, then deliver the packet to target.static class
Builder. -
Method Summary
Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
New builder.- Returns:
- a CreateVpnServerRouteOptions builder
-
vpnServerId
Gets the vpnServerId. The VPN server identifier.- Returns:
- the vpnServerId
-
destination
Gets the destination. The destination to use for this VPN route in the VPN server. Must be unique within the VPN server. If an incoming packet does not match any destination, it will be dropped.- Returns:
- the destination
-
action
Gets the action. The action to perform with a packet matching the VPN route: - `translate`: translate the source IP address to one of the private IP addresses of the VPN server, then deliver the packet to target. - `deliver`: deliver the packet to the target. - `drop`: drop the packet.- Returns:
- the action
-
name
Gets the name. The name for this VPN server route. The name must not be used by another route for the VPN server. If unspecified, the name will be a hyphenated list of randomly-selected words.- Returns:
- the name
-