public class CreateRouteRequest extends AmazonWebServiceRequest implements java.io.Serializable
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.
| コンストラクタと説明 |
|---|
CreateRouteRequest() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDestinationCidrBlock()
The CIDR address block used for the destination match.
|
java.lang.String |
getGatewayId()
The ID of a VPN or Internet gateway attached to your VPC.
|
java.lang.String |
getInstanceId()
The ID of a NAT instance in your VPC.
|
java.lang.String |
getNetworkInterfaceId()
Returns the value of the NetworkInterfaceId property for this object.
|
java.lang.String |
getRouteTableId()
The ID of the route table where the route will be added.
|
int |
hashCode() |
void |
setDestinationCidrBlock(java.lang.String destinationCidrBlock)
The CIDR address block used for the destination match.
|
void |
setGatewayId(java.lang.String gatewayId)
The ID of a VPN or Internet gateway attached to your VPC.
|
void |
setInstanceId(java.lang.String instanceId)
The ID of a NAT instance in your VPC.
|
void |
setNetworkInterfaceId(java.lang.String networkInterfaceId)
Sets the value of the NetworkInterfaceId property for this object.
|
void |
setRouteTableId(java.lang.String routeTableId)
The ID of the route table where the route will be added.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateRouteRequest |
withDestinationCidrBlock(java.lang.String destinationCidrBlock)
The CIDR address block used for the destination match.
|
CreateRouteRequest |
withGatewayId(java.lang.String gatewayId)
The ID of a VPN or Internet gateway attached to your VPC.
|
CreateRouteRequest |
withInstanceId(java.lang.String instanceId)
The ID of a NAT instance in your VPC.
|
CreateRouteRequest |
withNetworkInterfaceId(java.lang.String networkInterfaceId)
Sets the value of the NetworkInterfaceId property for this object.
|
CreateRouteRequest |
withRouteTableId(java.lang.String routeTableId)
The ID of the route table where the route will be added.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic java.lang.String getRouteTableId()
public void setRouteTableId(java.lang.String routeTableId)
routeTableId - The ID of the route table where the route will be added.public CreateRouteRequest 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 where the route will be added.public java.lang.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(java.lang.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(java.lang.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 java.lang.String getGatewayId()
GatewayId or InstanceId, but
not both.GatewayId or InstanceId, but
not both.public void setGatewayId(java.lang.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(java.lang.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 java.lang.String getInstanceId()
GatewayId or InstanceId, but not both.GatewayId or InstanceId, but not both.public void setInstanceId(java.lang.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(java.lang.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 java.lang.String getNetworkInterfaceId()
public void setNetworkInterfaceId(java.lang.String networkInterfaceId)
networkInterfaceId - The new value for the NetworkInterfaceId property for this object.public CreateRouteRequest withNetworkInterfaceId(java.lang.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 java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object