Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.ec2.model
Class AssociateRouteTableRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.AssociateRouteTableRequest

public class AssociateRouteTableRequest
extends AmazonWebServiceRequest

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 if you want to disassociate the route table from the subnet later. A route table can be associated with multiple subnets.

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

See Also:
AmazonEC2.associateRouteTable(AssociateRouteTableRequest)

Constructor Summary
AssociateRouteTableRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getRouteTableId()
          The ID of the route table.
 String getSubnetId()
          The ID of the subnet.
 int hashCode()
           
 void setRouteTableId(String routeTableId)
          The ID of the route table.
 void setSubnetId(String subnetId)
          The ID of the subnet.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 AssociateRouteTableRequest withRouteTableId(String routeTableId)
          The ID of the route table.
 AssociateRouteTableRequest withSubnetId(String subnetId)
          The ID of the subnet.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AssociateRouteTableRequest

public AssociateRouteTableRequest()
Method Detail

getSubnetId

public String getSubnetId()
The ID of the subnet.

Returns:
The ID of the subnet.

setSubnetId

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

Parameters:
subnetId - The ID of the subnet.

withSubnetId

public AssociateRouteTableRequest withSubnetId(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 String getRouteTableId()
The ID of the route table.

Returns:
The ID of the route table.

setRouteTableId

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

Parameters:
routeTableId - The ID of the route table.

withRouteTableId

public AssociateRouteTableRequest withRouteTableId(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.

toString

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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