public class ReplaceRouteRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<ReplaceRouteRequest>
ReplaceRoute operation
.
Replaces an existing route within a route table in a VPC. You must provide only one of the following: Internet gateway, NAT instance, VPC peering connection, or network interface.
For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide .
NOOP
Constructor and Description |
---|
ReplaceRouteRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDestinationCidrBlock()
The CIDR address block used for the destination match.
|
Request<ReplaceRouteRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getGatewayId()
The ID of an Internet gateway attached to your VPC.
|
String |
getInstanceId()
The ID of a NAT instance in your VPC.
|
String |
getNetworkInterfaceId()
The ID of a network interface.
|
String |
getRouteTableId()
The ID of the route table.
|
String |
getVpcPeeringConnectionId()
The ID of a VPC peering connection.
|
int |
hashCode() |
void |
setDestinationCidrBlock(String destinationCidrBlock)
The CIDR address block used for the destination match.
|
void |
setGatewayId(String gatewayId)
The ID of an Internet gateway attached to your VPC.
|
void |
setInstanceId(String instanceId)
The ID of a NAT instance in your VPC.
|
void |
setNetworkInterfaceId(String networkInterfaceId)
The ID of a network interface.
|
void |
setRouteTableId(String routeTableId)
The ID of the route table.
|
void |
setVpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of a VPC peering connection.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ReplaceRouteRequest |
withDestinationCidrBlock(String destinationCidrBlock)
The CIDR address block used for the destination match.
|
ReplaceRouteRequest |
withGatewayId(String gatewayId)
The ID of an Internet gateway attached to your VPC.
|
ReplaceRouteRequest |
withInstanceId(String instanceId)
The ID of a NAT instance in your VPC.
|
ReplaceRouteRequest |
withNetworkInterfaceId(String networkInterfaceId)
The ID of a network interface.
|
ReplaceRouteRequest |
withRouteTableId(String routeTableId)
The ID of the route table.
|
ReplaceRouteRequest |
withVpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of a VPC peering connection.
|
copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getRouteTableId()
public void setRouteTableId(String routeTableId)
routeTableId
- The ID of the route table.public ReplaceRouteRequest 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 getDestinationCidrBlock()
public void setDestinationCidrBlock(String destinationCidrBlock)
destinationCidrBlock
- The CIDR address block used for the destination match. The value you
provide must match the CIDR of an existing route in the table.public ReplaceRouteRequest withDestinationCidrBlock(String destinationCidrBlock)
Returns a reference to this object so that method calls can be chained together.
destinationCidrBlock
- The CIDR address block used for the destination match. The value you
provide must match the CIDR of an existing route in the table.public String getGatewayId()
public void setGatewayId(String gatewayId)
gatewayId
- The ID of an Internet gateway attached to your VPC.public ReplaceRouteRequest withGatewayId(String gatewayId)
Returns a reference to this object so that method calls can be chained together.
gatewayId
- The ID of an Internet gateway attached to your VPC.public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId
- The ID of a NAT instance in your VPC.public ReplaceRouteRequest withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
- The ID of a NAT instance in your VPC.public String getNetworkInterfaceId()
public void setNetworkInterfaceId(String networkInterfaceId)
networkInterfaceId
- The ID of a network interface.public ReplaceRouteRequest withNetworkInterfaceId(String networkInterfaceId)
Returns a reference to this object so that method calls can be chained together.
networkInterfaceId
- The ID of a network interface.public String getVpcPeeringConnectionId()
public void setVpcPeeringConnectionId(String vpcPeeringConnectionId)
vpcPeeringConnectionId
- The ID of a VPC peering connection.public ReplaceRouteRequest withVpcPeeringConnectionId(String vpcPeeringConnectionId)
Returns a reference to this object so that method calls can be chained together.
vpcPeeringConnectionId
- The ID of a VPC peering connection.public Request<ReplaceRouteRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ReplaceRouteRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.