public class VpnStaticRoute
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a static route for a VPN connection.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
destinationCidrBlock
The CIDR block associated with the local subnet of the customer data
center.
|
private java.lang.String |
source
Indicates how the routes were provided.
|
private java.lang.String |
state
The current state of the static route.
|
Constructor and Description |
---|
VpnStaticRoute() |
Modifier and Type | Method and Description |
---|---|
VpnStaticRoute |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDestinationCidrBlock()
The CIDR block associated with the local subnet of the customer data
center.
|
java.lang.String |
getSource()
Indicates how the routes were provided.
|
java.lang.String |
getState()
The current state of the static route.
|
int |
hashCode() |
void |
setDestinationCidrBlock(java.lang.String destinationCidrBlock)
The CIDR block associated with the local subnet of the customer data
center.
|
void |
setSource(java.lang.String source)
Indicates how the routes were provided.
|
void |
setSource(VpnStaticRouteSource source)
Indicates how the routes were provided.
|
void |
setState(java.lang.String state)
The current state of the static route.
|
void |
setState(VpnState state)
The current state of the static route.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
VpnStaticRoute |
withDestinationCidrBlock(java.lang.String destinationCidrBlock)
The CIDR block associated with the local subnet of the customer data
center.
|
VpnStaticRoute |
withSource(java.lang.String source)
Indicates how the routes were provided.
|
VpnStaticRoute |
withSource(VpnStaticRouteSource source)
Indicates how the routes were provided.
|
VpnStaticRoute |
withState(java.lang.String state)
The current state of the static route.
|
VpnStaticRoute |
withState(VpnState state)
The current state of the static route.
|
private java.lang.String destinationCidrBlock
The CIDR block associated with the local subnet of the customer data center.
private java.lang.String source
Indicates how the routes were provided.
private java.lang.String state
The current state of the static route.
public void setDestinationCidrBlock(java.lang.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 java.lang.String getDestinationCidrBlock()
The CIDR block associated with the local subnet of the customer data center.
public VpnStaticRoute withDestinationCidrBlock(java.lang.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(java.lang.String source)
Indicates how the routes were provided.
source
- Indicates how the routes were provided.VpnStaticRouteSource
public java.lang.String getSource()
Indicates how the routes were provided.
VpnStaticRouteSource
public VpnStaticRoute withSource(java.lang.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(java.lang.String state)
The current state of the static route.
state
- The current state of the static route.VpnState
public java.lang.String getState()
The current state of the static route.
VpnState
public VpnStaticRoute withState(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public VpnStaticRoute clone()
clone
in class java.lang.Object