public class ReplaceRouteTableAssociationRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<ReplaceRouteTableAssociationRequest>
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.
Constructor and Description |
---|
ReplaceRouteTableAssociationRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAssociationId()
The ID representing the current association between the original route
table and the subnet.
|
Request<ReplaceRouteTableAssociationRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
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.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public String getAssociationId()
public void setAssociationId(String associationId)
associationId
- The ID representing the current association between the original route
table and the subnet.public ReplaceRouteTableAssociationRequest withAssociationId(String associationId)
Returns a reference to this object so that method calls can be chained together.
associationId
- The ID representing the current association between the original route
table and the subnet.public String getRouteTableId()
public void setRouteTableId(String routeTableId)
routeTableId
- The ID of the new route table to associate with the subnet.public ReplaceRouteTableAssociationRequest withRouteTableId(String routeTableId)
Returns a reference to this object so that method calls can be chained together.
routeTableId
- The ID of the new route table to associate with the subnet.public Request<ReplaceRouteTableAssociationRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ReplaceRouteTableAssociationRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.