com.amazonaws.services.ec2.model
Class CreateVpnConnectionRouteRequest

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

public class CreateVpnConnectionRouteRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

Container for the parameters to the CreateVpnConnectionRoute operation.

Creates a static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. The static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway.

For more information about VPN connections, see Adding a Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide .

See Also:
AmazonEC2.createVpnConnectionRoute(CreateVpnConnectionRouteRequest), Serialized Form

Constructor Summary
CreateVpnConnectionRouteRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDestinationCidrBlock()
          The CIDR block associated with the local subnet of the customer network.
 java.lang.String getVpnConnectionId()
          The ID of the VPN connection.
 int hashCode()
           
 void setDestinationCidrBlock(java.lang.String destinationCidrBlock)
          The CIDR block associated with the local subnet of the customer network.
 void setVpnConnectionId(java.lang.String vpnConnectionId)
          The ID of the VPN connection.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CreateVpnConnectionRouteRequest withDestinationCidrBlock(java.lang.String destinationCidrBlock)
          The CIDR block associated with the local subnet of the customer network.
 CreateVpnConnectionRouteRequest withVpnConnectionId(java.lang.String vpnConnectionId)
          The ID of the VPN connection.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateVpnConnectionRouteRequest

public CreateVpnConnectionRouteRequest()
Method Detail

getVpnConnectionId

public java.lang.String getVpnConnectionId()
The ID of the VPN connection.

Returns:
The ID of the VPN connection.

setVpnConnectionId

public void setVpnConnectionId(java.lang.String vpnConnectionId)
The ID of the VPN connection.

Parameters:
vpnConnectionId - The ID of the VPN connection.

withVpnConnectionId

public CreateVpnConnectionRouteRequest withVpnConnectionId(java.lang.String vpnConnectionId)
The ID of the VPN connection.

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

Parameters:
vpnConnectionId - The ID of the VPN connection.
Returns:
A reference to this updated object so that method calls can be chained together.

getDestinationCidrBlock

public java.lang.String getDestinationCidrBlock()
The CIDR block associated with the local subnet of the customer network.

Returns:
The CIDR block associated with the local subnet of the customer network.

setDestinationCidrBlock

public void setDestinationCidrBlock(java.lang.String destinationCidrBlock)
The CIDR block associated with the local subnet of the customer network.

Parameters:
destinationCidrBlock - The CIDR block associated with the local subnet of the customer network.

withDestinationCidrBlock

public CreateVpnConnectionRouteRequest withDestinationCidrBlock(java.lang.String destinationCidrBlock)
The CIDR block associated with the local subnet of the customer network.

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 network.
Returns:
A reference to this updated object so that method calls can be chained together.

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.