@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VpnStaticRoute extends Object implements Serializable, Cloneable
Describes a static route for a VPN connection.
Constructor and Description |
---|
VpnStaticRoute() |
Modifier and Type | Method and Description |
---|---|
VpnStaticRoute |
clone() |
boolean |
equals(Object obj) |
String |
getDestinationCidrBlock()
The CIDR block associated with the local subnet of the customer data center.
|
String |
getSource()
Indicates how the routes were provided.
|
String |
getState()
The current state of the static route.
|
int |
hashCode() |
void |
setDestinationCidrBlock(String destinationCidrBlock)
The CIDR block associated with the local subnet of the customer data center.
|
void |
setSource(String source)
Indicates how the routes were provided.
|
void |
setSource(VpnStaticRouteSource source)
Indicates how the routes were provided.
|
void |
setState(String state)
The current state of the static route.
|
void |
setState(VpnState state)
The current state of the static route.
|
String |
toString()
Returns a string representation of this object.
|
VpnStaticRoute |
withDestinationCidrBlock(String destinationCidrBlock)
The CIDR block associated with the local subnet of the customer data center.
|
VpnStaticRoute |
withSource(String source)
Indicates how the routes were provided.
|
VpnStaticRoute |
withSource(VpnStaticRouteSource source)
Indicates how the routes were provided.
|
VpnStaticRoute |
withState(String state)
The current state of the static route.
|
VpnStaticRoute |
withState(VpnState state)
The current state of the static route.
|
public void setDestinationCidrBlock(String destinationCidrBlock)
The CIDR block associated with the local subnet of the customer data center.
destinationCidrBlock
- The CIDR block associated with the local subnet of the customer data center.public String getDestinationCidrBlock()
The CIDR block associated with the local subnet of the customer data center.
public VpnStaticRoute withDestinationCidrBlock(String destinationCidrBlock)
The CIDR block associated with the local subnet of the customer data center.
destinationCidrBlock
- The CIDR block associated with the local subnet of the customer data center.public void setSource(String source)
Indicates how the routes were provided.
source
- Indicates how the routes were provided.VpnStaticRouteSource
public String getSource()
Indicates how the routes were provided.
VpnStaticRouteSource
public VpnStaticRoute withSource(String source)
Indicates how the routes were provided.
source
- Indicates how the routes were provided.VpnStaticRouteSource
public void setSource(VpnStaticRouteSource source)
Indicates how the routes were provided.
source
- Indicates how the routes were provided.VpnStaticRouteSource
public VpnStaticRoute withSource(VpnStaticRouteSource source)
Indicates how the routes were provided.
source
- Indicates how the routes were provided.VpnStaticRouteSource
public void setState(String state)
The current state of the static route.
state
- The current state of the static route.VpnState
public String getState()
The current state of the static route.
VpnState
public VpnStaticRoute withState(String state)
The current state of the static route.
state
- The current state of the static route.VpnState
public void setState(VpnState state)
The current state of the static route.
state
- The current state of the static route.VpnState
public VpnStaticRoute withState(VpnState state)
The current state of the static route.
state
- The current state of the static route.VpnState
public String toString()
toString
in class Object
Object.toString()
public VpnStaticRoute clone()