Package com.amazonaws.services.ec2.model
Class VpnStaticRoute
- java.lang.Object
-
- com.amazonaws.services.ec2.model.VpnStaticRoute
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class VpnStaticRoute extends Object implements Serializable, Cloneable
Describes a static route for a VPN connection.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VpnStaticRoute()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(VpnStaticRouteSource source)
Indicates how the routes were provided.void
setSource(String source)
Indicates how the routes were provided.void
setState(VpnState state)
The current state of the static route.void
setState(String 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(VpnStaticRouteSource source)
Indicates how the routes were provided.VpnStaticRoute
withSource(String source)
Indicates how the routes were provided.VpnStaticRoute
withState(VpnState state)
The current state of the static route.VpnStaticRoute
withState(String state)
The current state of the static route.
-
-
-
Method Detail
-
setDestinationCidrBlock
public void setDestinationCidrBlock(String destinationCidrBlock)
The CIDR block associated with the local subnet of the customer data center.
- Parameters:
destinationCidrBlock
- The CIDR block associated with the local subnet of the customer data center.
-
getDestinationCidrBlock
public String getDestinationCidrBlock()
The CIDR block associated with the local subnet of the customer data center.
- Returns:
- The CIDR block associated with the local subnet of the customer data center.
-
withDestinationCidrBlock
public VpnStaticRoute withDestinationCidrBlock(String destinationCidrBlock)
The CIDR block associated with the local subnet of the customer data center.
- Parameters:
destinationCidrBlock
- The CIDR block associated with the local subnet of the customer data center.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSource
public void setSource(String source)
Indicates how the routes were provided.
- Parameters:
source
- Indicates how the routes were provided.- See Also:
VpnStaticRouteSource
-
getSource
public String getSource()
Indicates how the routes were provided.
- Returns:
- Indicates how the routes were provided.
- See Also:
VpnStaticRouteSource
-
withSource
public VpnStaticRoute withSource(String source)
Indicates how the routes were provided.
- Parameters:
source
- Indicates how the routes were provided.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
VpnStaticRouteSource
-
setSource
public void setSource(VpnStaticRouteSource source)
Indicates how the routes were provided.
- Parameters:
source
- Indicates how the routes were provided.- See Also:
VpnStaticRouteSource
-
withSource
public VpnStaticRoute withSource(VpnStaticRouteSource source)
Indicates how the routes were provided.
- Parameters:
source
- Indicates how the routes were provided.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
VpnStaticRouteSource
-
setState
public void setState(String state)
The current state of the static route.
- Parameters:
state
- The current state of the static route.- See Also:
VpnState
-
getState
public String getState()
The current state of the static route.
- Returns:
- The current state of the static route.
- See Also:
VpnState
-
withState
public VpnStaticRoute withState(String state)
The current state of the static route.
- Parameters:
state
- The current state of the static route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
VpnState
-
setState
public void setState(VpnState state)
The current state of the static route.
- Parameters:
state
- The current state of the static route.- See Also:
VpnState
-
withState
public VpnStaticRoute withState(VpnState state)
The current state of the static route.
- Parameters:
state
- The current state of the static route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
VpnState
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public VpnStaticRoute clone()
-
-