|
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.CreateRouteRequest
public class CreateRouteRequest
Container for the parameters to the CreateRoute operation
.
Creates a new route in a route table within a VPC. The route's target can be either a gateway attached to the VPC or a NAT instance in the VPC.
When determining how to route traffic, we use the route with the most specific match. For example, let's say the traffic is destined for
192.0.2.3
, and the route table includes the following two routes:
192.0.2.0/24
(goes to some target A) 192.0.2.0/28
(goes to some target B)
Both routes apply to the traffic destined for 192.0.2.3
. However, the second route in the list is more specific, so we use that route
to determine where to target the traffic.
For more information about route tables, go to Route Tables in the Amazon Virtual Private Cloud User Guide.
AmazonEC2.createRoute(CreateRouteRequest)
,
Serialized FormConstructor Summary | |
---|---|
CreateRouteRequest()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getDestinationCidrBlock()
The CIDR address block used for the destination match. |
String |
getGatewayId()
The ID of a VPN or Internet gateway attached to your VPC. |
String |
getInstanceId()
The ID of a NAT instance in your VPC. |
String |
getNetworkInterfaceId()
Returns the value of the NetworkInterfaceId property for this object. |
String |
getRouteTableId()
The ID of the route table where the route will be added. |
int |
hashCode()
|
void |
setDestinationCidrBlock(String destinationCidrBlock)
The CIDR address block used for the destination match. |
void |
setGatewayId(String gatewayId)
The ID of a VPN or Internet gateway attached to your VPC. |
void |
setInstanceId(String instanceId)
The ID of a NAT instance in your VPC. |
void |
setNetworkInterfaceId(String networkInterfaceId)
Sets the value of the NetworkInterfaceId property for this object. |
void |
setRouteTableId(String routeTableId)
The ID of the route table where the route will be added. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
CreateRouteRequest |
withDestinationCidrBlock(String destinationCidrBlock)
The CIDR address block used for the destination match. |
CreateRouteRequest |
withGatewayId(String gatewayId)
The ID of a VPN or Internet gateway attached to your VPC. |
CreateRouteRequest |
withInstanceId(String instanceId)
The ID of a NAT instance in your VPC. |
CreateRouteRequest |
withNetworkInterfaceId(String networkInterfaceId)
Sets the value of the NetworkInterfaceId property for this object. |
CreateRouteRequest |
withRouteTableId(String routeTableId)
The ID of the route table where the route will be added. |
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 CreateRouteRequest()
Method Detail |
---|
public String getRouteTableId()
public void setRouteTableId(String routeTableId)
routeTableId
- The ID of the route table where the route will be added.public CreateRouteRequest withRouteTableId(String routeTableId)
Returns a reference to this object so that method calls can be chained together.
routeTableId
- The ID of the route table where the route will be added.
public String getDestinationCidrBlock()
0.0.0.0/0
. Routing decisions are based on the most
specific match.
0.0.0.0/0
. Routing decisions are based on the most
specific match.public void setDestinationCidrBlock(String destinationCidrBlock)
0.0.0.0/0
. Routing decisions are based on the most
specific match.
destinationCidrBlock
- The CIDR address block used for the destination match. For example:
0.0.0.0/0
. Routing decisions are based on the most
specific match.public CreateRouteRequest withDestinationCidrBlock(String destinationCidrBlock)
0.0.0.0/0
. Routing decisions are based on the most
specific match.
Returns a reference to this object so that method calls can be chained together.
destinationCidrBlock
- The CIDR address block used for the destination match. For example:
0.0.0.0/0
. Routing decisions are based on the most
specific match.
public String getGatewayId()
GatewayId
or InstanceId
, but
not both.
GatewayId
or InstanceId
, but
not both.public void setGatewayId(String gatewayId)
GatewayId
or InstanceId
, but
not both.
gatewayId
- The ID of a VPN or Internet gateway attached to your VPC. You must
provide either GatewayId
or InstanceId
, but
not both.public CreateRouteRequest withGatewayId(String gatewayId)
GatewayId
or InstanceId
, but
not both.
Returns a reference to this object so that method calls can be chained together.
gatewayId
- The ID of a VPN or Internet gateway attached to your VPC. You must
provide either GatewayId
or InstanceId
, but
not both.
public String getInstanceId()
GatewayId
or InstanceId
, but not both.
GatewayId
or InstanceId
, but not both.public void setInstanceId(String instanceId)
GatewayId
or InstanceId
, but not both.
instanceId
- The ID of a NAT instance in your VPC. You must provide either
GatewayId
or InstanceId
, but not both.public CreateRouteRequest withInstanceId(String instanceId)
GatewayId
or InstanceId
, but not both.
Returns a reference to this object so that method calls can be chained together.
instanceId
- The ID of a NAT instance in your VPC. You must provide either
GatewayId
or InstanceId
, but not both.
public String getNetworkInterfaceId()
public void setNetworkInterfaceId(String networkInterfaceId)
networkInterfaceId
- The new value for the NetworkInterfaceId property for this object.public CreateRouteRequest withNetworkInterfaceId(String networkInterfaceId)
Returns a reference to this object so that method calls can be chained together.
networkInterfaceId
- The new value for the NetworkInterfaceId property for this object.
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 |