public class AssociateRouteTableRequest extends AmazonWebServiceRequest implements java.io.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 .
Constructor and Description |
---|
AssociateRouteTableRequest() |
Modifier and Type | Method and Description |
---|---|
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.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
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
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.