public class AssociateRouteTableRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<AssociateRouteTableRequest>
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 .
NOOP
Constructor and Description |
---|
AssociateRouteTableRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Request<AssociateRouteTableRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
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.
|
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getSubnetId()
public void setSubnetId(String subnetId)
subnetId
- The ID of the subnet.public AssociateRouteTableRequest withSubnetId(String subnetId)
Returns a reference to this object so that method calls can be chained together.
subnetId
- The ID of the subnet.public String getRouteTableId()
public void setRouteTableId(String routeTableId)
routeTableId
- The ID of the route table.public AssociateRouteTableRequest withRouteTableId(String routeTableId)
Returns a reference to this object so that method calls can be chained together.
routeTableId
- The ID of the route table.public Request<AssociateRouteTableRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<AssociateRouteTableRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.