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:
DryRunSupportedRequest<ReplaceRouteTableAssociationRequest>, java.io.Serializable

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

Container for the parameters to the ReplaceRouteTableAssociation operation.

Changes the route table associated with a given subnet in a VPC. After the operation completes, the subnet uses the routes in the new route table it's associated with. For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide .

You can also use ReplaceRouteTableAssociation 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 to be the new main route table.

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

Constructor Summary
ReplaceRouteTableAssociationRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAssociationId()
          The association ID.
 Request<ReplaceRouteTableAssociationRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.lang.String getRouteTableId()
          The ID of the new route table to associate with the subnet.
 int hashCode()
           
 void setAssociationId(java.lang.String associationId)
          The association ID.
 void setRouteTableId(java.lang.String routeTableId)
          The ID of the new route table to associate with the subnet.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 ReplaceRouteTableAssociationRequest withAssociationId(java.lang.String associationId)
          The association ID.
 ReplaceRouteTableAssociationRequest withRouteTableId(java.lang.String routeTableId)
          The ID of the new route table to associate with 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

ReplaceRouteTableAssociationRequest

public ReplaceRouteTableAssociationRequest()
Method Detail

getAssociationId

public java.lang.String getAssociationId()
The association ID.

Returns:
The association ID.

setAssociationId

public void setAssociationId(java.lang.String associationId)
The association ID.

Parameters:
associationId - The association ID.

withAssociationId

public ReplaceRouteTableAssociationRequest withAssociationId(java.lang.String associationId)
The association ID.

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

Parameters:
associationId - The association ID.
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 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(java.lang.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(java.lang.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.

getDryRunRequest

public Request<ReplaceRouteTableAssociationRequest> 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<ReplaceRouteTableAssociationRequest>

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.