com.amazonaws.services.ec2.model
Class AssociateRouteTableRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.AssociateRouteTableRequest
All Implemented Interfaces:
DryRunSupportedRequest<AssociateRouteTableRequest>, java.io.Serializable

public class AssociateRouteTableRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<AssociateRouteTableRequest>

Container for the parameters to the AssociateRouteTable operation.

Associates a subnet with a route table. The subnet and route table must be in the same VPC. This association causes traffic originating from the subnet to be routed according to the routes in the route table. The action returns an association ID, which you need in order to disassociate the route table from the subnet later. A route table can be associated with multiple subnets.

For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide .

See Also:
AmazonEC2.associateRouteTable(AssociateRouteTableRequest), Serialized Form

Constructor Summary
AssociateRouteTableRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Request<AssociateRouteTableRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.lang.String getRouteTableId()
          The ID of the route table.
 java.lang.String getSubnetId()
          The ID of the subnet.
 int hashCode()
           
 void setRouteTableId(java.lang.String routeTableId)
          The ID of the route table.
 void setSubnetId(java.lang.String subnetId)
          The ID of the subnet.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 AssociateRouteTableRequest withRouteTableId(java.lang.String routeTableId)
          The ID of the route table.
 AssociateRouteTableRequest withSubnetId(java.lang.String subnetId)
          The ID of the subnet.
 
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

AssociateRouteTableRequest

public AssociateRouteTableRequest()
Method Detail

getSubnetId

public java.lang.String getSubnetId()
The ID of the subnet.

Returns:
The ID of the subnet.

setSubnetId

public void setSubnetId(java.lang.String subnetId)
The ID of the subnet.

Parameters:
subnetId - The ID of the subnet.

withSubnetId

public AssociateRouteTableRequest withSubnetId(java.lang.String subnetId)
The ID of the subnet.

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

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

getRouteTableId

public java.lang.String getRouteTableId()
The ID of the route table.

Returns:
The ID of the route table.

setRouteTableId

public void setRouteTableId(java.lang.String routeTableId)
The ID of the route table.

Parameters:
routeTableId - The ID of the route table.

withRouteTableId

public AssociateRouteTableRequest withRouteTableId(java.lang.String routeTableId)
The ID of the route table.

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

Parameters:
routeTableId - The ID of the route table.
Returns:
A reference to this updated object so that method calls can be chained together.

getDryRunRequest

public Request<AssociateRouteTableRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.

Specified by:
getDryRunRequest in interface DryRunSupportedRequest<AssociateRouteTableRequest>

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.