public class ReplaceRouteRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<ReplaceRouteRequest>
ReplaceRoute operation
.
Replaces an existing route within a route table in a VPC. For more information about route tables, go to Route Tables in the Amazon Virtual Private Cloud User Guide.
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 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 replaced.
|
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 replaced.
|
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 a VPN or Internet gateway attached to your VPC.
|
ReplaceRouteRequest |
withInstanceId(String instanceId)
The ID of a NAT instance in your VPC.
|
ReplaceRouteRequest |
withNetworkInterfaceId(String networkInterfaceId)
Sets the value of the NetworkInterfaceId property for this object.
|
ReplaceRouteRequest |
withRouteTableId(String routeTableId)
The ID of the route table where the route will be replaced.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public String getRouteTableId()
public void setRouteTableId(String routeTableId)
routeTableId
- The ID of the route table where the route will be replaced.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 where the route will be replaced.public String getDestinationCidrBlock()
0.0.0.0/0
. The value you provide must match the CIDR of
an existing route in the table.0.0.0.0/0
. The value you provide must match the CIDR of
an existing route in the table.public void setDestinationCidrBlock(String destinationCidrBlock)
0.0.0.0/0
. The value you provide must match the CIDR of
an existing route in the table.destinationCidrBlock
- The CIDR address block used for the destination match. For example:
0.0.0.0/0
. The value you provide must match the CIDR of
an existing route in the table.public ReplaceRouteRequest withDestinationCidrBlock(String destinationCidrBlock)
0.0.0.0/0
. The value you provide must match the CIDR of
an existing route in the table.
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
. 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 a VPN or 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 a VPN or 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 new value for the NetworkInterfaceId property for this object.public ReplaceRouteRequest 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 Request<ReplaceRouteRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ReplaceRouteRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.