|
|||||||
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 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 .
AmazonEC2.associateRouteTable(AssociateRouteTableRequest)
,
Serialized FormConstructor Summary | |
---|---|
AssociateRouteTableRequest()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
Request<AssociateRouteTableRequest> |
getDryRunRequest()
This method is intended for internal use only. |
java.lang.String |
getRouteTableId()
The ID of the route table. |
java.lang.String |
getSubnetId()
The ID of the subnet. |
int |
hashCode()
|
void |
setRouteTableId(java.lang.String routeTableId)
The ID of the route table. |
void |
setSubnetId(java.lang.String subnetId)
The ID of the subnet. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
AssociateRouteTableRequest |
withRouteTableId(java.lang.String routeTableId)
The ID of the route table. |
AssociateRouteTableRequest |
withSubnetId(java.lang.String subnetId)
The ID of 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 |
---|
public AssociateRouteTableRequest()
Method Detail |
---|
public java.lang.String getSubnetId()
public void setSubnetId(java.lang.String subnetId)
subnetId
- The ID of the subnet.public AssociateRouteTableRequest withSubnetId(java.lang.String subnetId)
Returns a reference to this object so that method calls can be chained together.
subnetId
- The ID of the subnet.
public java.lang.String getRouteTableId()
public void setRouteTableId(java.lang.String routeTableId)
routeTableId
- The ID of the route table.public AssociateRouteTableRequest withRouteTableId(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |