Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.ec2.model
Class ReplaceRouteTableAssociationRequest

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

public class ReplaceRouteTableAssociationRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the ReplaceRouteTableAssociation operation.

Changes the route table associated with a given subnet in a VPC. After you execute this action, the subnet uses the routes in the new route table it's associated with. For more information about route tables, go to Route Tables in the Amazon Virtual Private Cloud User Guide.

You can also use this to change which table is the main route table in the VPC. You just specify the main route table's association ID and the route table that you want to be the new main route table.

See Also:
AmazonEC2.replaceRouteTableAssociation(ReplaceRouteTableAssociationRequest), Serialized Form

Constructor Summary
ReplaceRouteTableAssociationRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getAssociationId()
          The ID representing the current association between the original route table and the subnet.
 String getRouteTableId()
          The ID of the new route table to associate with the subnet.
 int hashCode()
           
 void setAssociationId(String associationId)
          The ID representing the current association between the original route table and the subnet.
 void setRouteTableId(String routeTableId)
          The ID of the new route table to associate with the subnet.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 ReplaceRouteTableAssociationRequest withAssociationId(String associationId)
          The ID representing the current association between the original route table and the subnet.
 ReplaceRouteTableAssociationRequest withRouteTableId(String routeTableId)
          The ID of the new route table to associate with 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

ReplaceRouteTableAssociationRequest

public ReplaceRouteTableAssociationRequest()
Method Detail

getAssociationId

public String getAssociationId()
The ID representing the current association between the original route table and the subnet.

Returns:
The ID representing the current association between the original route table and the subnet.

setAssociationId

public void setAssociationId(String associationId)
The ID representing the current association between the original route table and the subnet.

Parameters:
associationId - The ID representing the current association between the original route table and the subnet.

withAssociationId

public ReplaceRouteTableAssociationRequest withAssociationId(String associationId)
The ID representing the current association between the original route table and the subnet.

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

Parameters:
associationId - The ID representing the current association between the original route table and 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 new route table to associate with the subnet.

Returns:
The ID of the new route table to associate with the subnet.

setRouteTableId

public void setRouteTableId(String routeTableId)
The ID of the new route table to associate with the subnet.

Parameters:
routeTableId - The ID of the new route table to associate with the subnet.

withRouteTableId

public ReplaceRouteTableAssociationRequest withRouteTableId(String routeTableId)
The ID of the new route table to associate with the subnet.

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

Parameters:
routeTableId - The ID of the new route table to associate with the subnet.
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.