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; useful for testing and
debugging.
|
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 String getDestinationCidrBlock()
public void setDestinationCidrBlock(String destinationCidrBlock)
destinationCidrBlock - The CIDR block associated with the local subnet of the customer data
center.public VpnStaticRoute withDestinationCidrBlock(String destinationCidrBlock)
Returns a reference to this object so that method calls can be chained together.
destinationCidrBlock - The CIDR block associated with the local subnet of the customer data
center.public String getSource()
Constraints:
Allowed Values: Static
VpnStaticRouteSourcepublic void setSource(String source)
Constraints:
Allowed Values: Static
source - Indicates how the routes were provided.VpnStaticRouteSourcepublic VpnStaticRoute withSource(String source)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Static
source - Indicates how the routes were provided.VpnStaticRouteSourcepublic void setSource(VpnStaticRouteSource source)
Constraints:
Allowed Values: Static
source - Indicates how the routes were provided.VpnStaticRouteSourcepublic VpnStaticRoute withSource(VpnStaticRouteSource source)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Static
source - Indicates how the routes were provided.VpnStaticRouteSourcepublic String getState()
Constraints:
Allowed Values: pending, available, deleting, deleted
VpnStatepublic void setState(String state)
Constraints:
Allowed Values: pending, available, deleting, deleted
state - The current state of the static route.VpnStatepublic VpnStaticRoute withState(String state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: pending, available, deleting, deleted
state - The current state of the static route.VpnStatepublic void setState(VpnState state)
Constraints:
Allowed Values: pending, available, deleting, deleted
state - The current state of the static route.VpnStatepublic VpnStaticRoute withState(VpnState state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: pending, available, deleting, deleted
state - The current state of the static route.VpnStatepublic String toString()
toString in class ObjectObject.toString()public VpnStaticRoute clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.