Package com.ibm.cloud.is.vpc.v1.model
Class VPNServerRoute
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.VPNServerRoute
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class VPNServerRoute extends com.ibm.cloud.sdk.core.service.model.GenericModel
VPNServerRoute.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
VPNServerRoute.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 interface
VPNServerRoute.HealthState
The health of this resource: - `ok`: No abnormal behavior detected - `degraded`: Experiencing compromised performance, capacity, or connectivity - `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated - `inapplicable`: The health state does not apply because of the current lifecycle state.static interface
VPNServerRoute.LifecycleState
The lifecycle state of the VPN route.static interface
VPNServerRoute.ResourceType
The resource type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAction()
Gets the action.Date
getCreatedAt()
Gets the createdAt.String
getDestination()
Gets the destination.List<VPNServerRouteHealthReason>
getHealthReasons()
Gets the healthReasons.String
getHealthState()
Gets the healthState.String
getHref()
Gets the href.String
getId()
Gets the id.List<VPNServerRouteLifecycleReason>
getLifecycleReasons()
Gets the lifecycleReasons.String
getLifecycleState()
Gets the lifecycleState.String
getName()
Gets the name.String
getResourceType()
Gets the resourceType.
-
-
-
Method Detail
-
getAction
public String getAction()
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 into the VPC. - `drop`: drop the packet The enumerated values for this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.- Returns:
- the action
-
getCreatedAt
public Date getCreatedAt()
Gets the createdAt. The date and time that the VPN route was created.- Returns:
- the createdAt
-
getDestination
public String getDestination()
Gets the destination. The destination for this VPN route in the VPN server. If an incoming packet does not match any destination, it will be dropped.- Returns:
- the destination
-
getHealthReasons
public List<VPNServerRouteHealthReason> getHealthReasons()
Gets the healthReasons. The reasons for the current `health_state` (if any).- Returns:
- the healthReasons
-
getHealthState
public String getHealthState()
Gets the healthState. The health of this resource: - `ok`: No abnormal behavior detected - `degraded`: Experiencing compromised performance, capacity, or connectivity - `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated - `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.- Returns:
- the healthState
-
getHref
public String getHref()
Gets the href. The URL for this VPN route.- Returns:
- the href
-
getId
public String getId()
Gets the id. The unique identifier for this VPN route.- Returns:
- the id
-
getLifecycleReasons
public List<VPNServerRouteLifecycleReason> getLifecycleReasons()
Gets the lifecycleReasons. The reasons for the current `lifecycle_state` (if any).- Returns:
- the lifecycleReasons
-
getLifecycleState
public String getLifecycleState()
Gets the lifecycleState. The lifecycle state of the VPN route.- Returns:
- the lifecycleState
-
getName
public String getName()
Gets the name. The name for this VPN route. The name is unique across all routes for a VPN server.- Returns:
- the name
-
getResourceType
public String getResourceType()
Gets the resourceType. The resource type.- Returns:
- the resourceType
-
-