|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.AssociateRouteTableRequest
public class AssociateRouteTableRequest
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.
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 |
---|
public AssociateRouteTableRequest()
Method Detail |
---|
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 String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |