@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ClientVpnRoute extends Object implements Serializable, Cloneable
Information about a Client VPN endpoint route.
Constructor and Description |
---|
ClientVpnRoute() |
Modifier and Type | Method and Description |
---|---|
ClientVpnRoute |
clone() |
boolean |
equals(Object obj) |
String |
getClientVpnEndpointId()
The ID of the Client VPN endpoint with which the route is associated.
|
String |
getDescription()
A brief description of the route.
|
String |
getDestinationCidr()
The IPv4 address range, in CIDR notation, of the route destination.
|
String |
getOrigin()
Indicates how the route was associated with the Client VPN endpoint.
|
ClientVpnRouteStatus |
getStatus()
The current state of the route.
|
String |
getTargetSubnet()
The ID of the subnet through which traffic is routed.
|
String |
getType()
The route type.
|
int |
hashCode() |
void |
setClientVpnEndpointId(String clientVpnEndpointId)
The ID of the Client VPN endpoint with which the route is associated.
|
void |
setDescription(String description)
A brief description of the route.
|
void |
setDestinationCidr(String destinationCidr)
The IPv4 address range, in CIDR notation, of the route destination.
|
void |
setOrigin(String origin)
Indicates how the route was associated with the Client VPN endpoint.
|
void |
setStatus(ClientVpnRouteStatus status)
The current state of the route.
|
void |
setTargetSubnet(String targetSubnet)
The ID of the subnet through which traffic is routed.
|
void |
setType(String type)
The route type.
|
String |
toString()
Returns a string representation of this object.
|
ClientVpnRoute |
withClientVpnEndpointId(String clientVpnEndpointId)
The ID of the Client VPN endpoint with which the route is associated.
|
ClientVpnRoute |
withDescription(String description)
A brief description of the route.
|
ClientVpnRoute |
withDestinationCidr(String destinationCidr)
The IPv4 address range, in CIDR notation, of the route destination.
|
ClientVpnRoute |
withOrigin(String origin)
Indicates how the route was associated with the Client VPN endpoint.
|
ClientVpnRoute |
withStatus(ClientVpnRouteStatus status)
The current state of the route.
|
ClientVpnRoute |
withTargetSubnet(String targetSubnet)
The ID of the subnet through which traffic is routed.
|
ClientVpnRoute |
withType(String type)
The route type.
|
public void setClientVpnEndpointId(String clientVpnEndpointId)
The ID of the Client VPN endpoint with which the route is associated.
clientVpnEndpointId
- The ID of the Client VPN endpoint with which the route is associated.public String getClientVpnEndpointId()
The ID of the Client VPN endpoint with which the route is associated.
public ClientVpnRoute withClientVpnEndpointId(String clientVpnEndpointId)
The ID of the Client VPN endpoint with which the route is associated.
clientVpnEndpointId
- The ID of the Client VPN endpoint with which the route is associated.public void setDestinationCidr(String destinationCidr)
The IPv4 address range, in CIDR notation, of the route destination.
destinationCidr
- The IPv4 address range, in CIDR notation, of the route destination.public String getDestinationCidr()
The IPv4 address range, in CIDR notation, of the route destination.
public ClientVpnRoute withDestinationCidr(String destinationCidr)
The IPv4 address range, in CIDR notation, of the route destination.
destinationCidr
- The IPv4 address range, in CIDR notation, of the route destination.public void setTargetSubnet(String targetSubnet)
The ID of the subnet through which traffic is routed.
targetSubnet
- The ID of the subnet through which traffic is routed.public String getTargetSubnet()
The ID of the subnet through which traffic is routed.
public ClientVpnRoute withTargetSubnet(String targetSubnet)
The ID of the subnet through which traffic is routed.
targetSubnet
- The ID of the subnet through which traffic is routed.public void setType(String type)
The route type.
type
- The route type.public String getType()
The route type.
public ClientVpnRoute withType(String type)
The route type.
type
- The route type.public void setOrigin(String origin)
Indicates how the route was associated with the Client VPN endpoint. associate
indicates that the
route was automatically added when the target network was associated with the Client VPN endpoint.
add-route
indicates that the route was manually added using the CreateClientVpnRoute action.
origin
- Indicates how the route was associated with the Client VPN endpoint. associate
indicates that
the route was automatically added when the target network was associated with the Client VPN endpoint.
add-route
indicates that the route was manually added using the CreateClientVpnRoute
action.public String getOrigin()
Indicates how the route was associated with the Client VPN endpoint. associate
indicates that the
route was automatically added when the target network was associated with the Client VPN endpoint.
add-route
indicates that the route was manually added using the CreateClientVpnRoute action.
associate
indicates
that the route was automatically added when the target network was associated with the Client VPN
endpoint. add-route
indicates that the route was manually added using the
CreateClientVpnRoute action.public ClientVpnRoute withOrigin(String origin)
Indicates how the route was associated with the Client VPN endpoint. associate
indicates that the
route was automatically added when the target network was associated with the Client VPN endpoint.
add-route
indicates that the route was manually added using the CreateClientVpnRoute action.
origin
- Indicates how the route was associated with the Client VPN endpoint. associate
indicates that
the route was automatically added when the target network was associated with the Client VPN endpoint.
add-route
indicates that the route was manually added using the CreateClientVpnRoute
action.public void setStatus(ClientVpnRouteStatus status)
The current state of the route.
status
- The current state of the route.public ClientVpnRouteStatus getStatus()
The current state of the route.
public ClientVpnRoute withStatus(ClientVpnRouteStatus status)
The current state of the route.
status
- The current state of the route.public void setDescription(String description)
A brief description of the route.
description
- A brief description of the route.public String getDescription()
A brief description of the route.
public ClientVpnRoute withDescription(String description)
A brief description of the route.
description
- A brief description of the route.public String toString()
toString
in class Object
Object.toString()
public ClientVpnRoute clone()