Package com.ibm.cloud.is.vpc.v1.model
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 Classes Modifier and Type Class Description static interface
CreateVpnServerRouteOptions.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.static class
CreateVpnServerRouteOptions.Builder
Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
action()
Gets the action.String
destination()
Gets the destination.String
name()
Gets the name.CreateVpnServerRouteOptions.Builder
newBuilder()
New builder.String
vpnServerId()
Gets the vpnServerId.
-
-
-
Method Detail
-
newBuilder
public CreateVpnServerRouteOptions.Builder newBuilder()
New builder.- Returns:
- a CreateVpnServerRouteOptions builder
-
vpnServerId
public String vpnServerId()
Gets the vpnServerId. The VPN server identifier.- Returns:
- the vpnServerId
-
destination
public String 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
public String 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
public String 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
-
-