com.amazonaws.services.ec2.model
Class VpnStaticRoute

java.lang.Object
  extended by com.amazonaws.services.ec2.model.VpnStaticRoute
All Implemented Interfaces:
java.io.Serializable

public class VpnStaticRoute
extends java.lang.Object
implements java.io.Serializable

Describes a static route for a VPN connection.

See Also:
Serialized Form

Constructor Summary
VpnStaticRoute()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VpnStaticRoute

public VpnStaticRoute()
Method Detail

getDestinationCidrBlock

public java.lang.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.

setDestinationCidrBlock

public void setDestinationCidrBlock(java.lang.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.

withDestinationCidrBlock

public VpnStaticRoute withDestinationCidrBlock(java.lang.String destinationCidrBlock)
The CIDR block associated with the local subnet of the customer data center.

Returns a reference to this object so that method calls can be chained together.

Parameters:
destinationCidrBlock - The CIDR block associated with the local subnet of the customer data center.
Returns:
A reference to this updated object so that method calls can be chained together.

getSource

public java.lang.String getSource()
Indicates how the routes were provided.

Constraints:
Allowed Values: Static

Returns:
Indicates how the routes were provided.
See Also:
VpnStaticRouteSource

setSource

public void setSource(java.lang.String source)
Indicates how the routes were provided.

Constraints:
Allowed Values: Static

Parameters:
source - Indicates how the routes were provided.
See Also:
VpnStaticRouteSource

withSource

public VpnStaticRoute withSource(java.lang.String source)
Indicates how the routes were provided.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Static

Parameters:
source - Indicates how the routes were provided.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
VpnStaticRouteSource

setSource

public void setSource(VpnStaticRouteSource source)
Indicates how the routes were provided.

Constraints:
Allowed Values: Static

Parameters:
source - Indicates how the routes were provided.
See Also:
VpnStaticRouteSource

withSource

public VpnStaticRoute withSource(VpnStaticRouteSource source)
Indicates how the routes were provided.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: Static

Parameters:
source - Indicates how the routes were provided.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
VpnStaticRouteSource

getState

public java.lang.String getState()
The current state of the static route.

Constraints:
Allowed Values: pending, available, deleting, deleted

Returns:
The current state of the static route.
See Also:
VpnState

setState

public void setState(java.lang.String state)
The current state of the static route.

Constraints:
Allowed Values: pending, available, deleting, deleted

Parameters:
state - The current state of the static route.
See Also:
VpnState

withState

public VpnStaticRoute withState(java.lang.String state)
The current state of the static route.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: pending, available, deleting, deleted

Parameters:
state - The current state of the static route.
Returns:
A reference to this updated 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.

Constraints:
Allowed Values: pending, available, deleting, deleted

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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: pending, available, deleting, deleted

Parameters:
state - The current state of the static route.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
VpnState

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.