Class ReplaceRouteRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ec2.model.ReplaceRouteRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<ReplaceRouteRequest>
,Serializable
,Cloneable
public class ReplaceRouteRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ReplaceRouteRequest>
Contains the parameters for ReplaceRoute.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description ReplaceRouteRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReplaceRouteRequest
clone()
Creates a shallow clone of this request.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 or virtual private gateway.String
getInstanceId()
The ID of a NAT instance in your VPC.String
getNatGatewayId()
The ID of a NAT gateway.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 or virtual private gateway.void
setInstanceId(String instanceId)
The ID of a NAT instance in your VPC.void
setNatGatewayId(String natGatewayId)
The ID of a NAT gateway.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 or virtual private gateway.ReplaceRouteRequest
withInstanceId(String instanceId)
The ID of a NAT instance in your VPC.ReplaceRouteRequest
withNatGatewayId(String natGatewayId)
The ID of a NAT gateway.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.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setRouteTableId
public void setRouteTableId(String routeTableId)
The ID of the route table.
- Parameters:
routeTableId
- The ID of the route table.
-
getRouteTableId
public String getRouteTableId()
The ID of the route table.
- Returns:
- The ID of the route table.
-
withRouteTableId
public ReplaceRouteRequest withRouteTableId(String routeTableId)
The ID of the route table.
- Parameters:
routeTableId
- The ID of the route table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDestinationCidrBlock
public void setDestinationCidrBlock(String 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.
- Parameters:
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.
-
getDestinationCidrBlock
public String getDestinationCidrBlock()
The CIDR address block used for the destination match. The value you provide must match the CIDR of an existing route in the table.
- Returns:
- The CIDR address block used for the destination match. The value you provide must match the CIDR of an existing route in the table.
-
withDestinationCidrBlock
public ReplaceRouteRequest withDestinationCidrBlock(String 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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setGatewayId
public void setGatewayId(String gatewayId)
The ID of an Internet gateway or virtual private gateway.
- Parameters:
gatewayId
- The ID of an Internet gateway or virtual private gateway.
-
getGatewayId
public String getGatewayId()
The ID of an Internet gateway or virtual private gateway.
- Returns:
- The ID of an Internet gateway or virtual private gateway.
-
withGatewayId
public ReplaceRouteRequest withGatewayId(String gatewayId)
The ID of an Internet gateway or virtual private gateway.
- Parameters:
gatewayId
- The ID of an Internet gateway or virtual private gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceId
public void setInstanceId(String instanceId)
The ID of a NAT instance in your VPC.
- Parameters:
instanceId
- The ID of a NAT instance in your VPC.
-
getInstanceId
public String getInstanceId()
The ID of a NAT instance in your VPC.
- Returns:
- The ID of a NAT instance in your VPC.
-
withInstanceId
public ReplaceRouteRequest withInstanceId(String instanceId)
The ID of a NAT instance in your VPC.
- Parameters:
instanceId
- The ID of a NAT instance in your VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNetworkInterfaceId
public void setNetworkInterfaceId(String networkInterfaceId)
The ID of a network interface.
- Parameters:
networkInterfaceId
- The ID of a network interface.
-
getNetworkInterfaceId
public String getNetworkInterfaceId()
The ID of a network interface.
- Returns:
- The ID of a network interface.
-
withNetworkInterfaceId
public ReplaceRouteRequest withNetworkInterfaceId(String networkInterfaceId)
The ID of a network interface.
- Parameters:
networkInterfaceId
- The ID of a network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVpcPeeringConnectionId
public void setVpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of a VPC peering connection.
- Parameters:
vpcPeeringConnectionId
- The ID of a VPC peering connection.
-
getVpcPeeringConnectionId
public String getVpcPeeringConnectionId()
The ID of a VPC peering connection.
- Returns:
- The ID of a VPC peering connection.
-
withVpcPeeringConnectionId
public ReplaceRouteRequest withVpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of a VPC peering connection.
- Parameters:
vpcPeeringConnectionId
- The ID of a VPC peering connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNatGatewayId
public void setNatGatewayId(String natGatewayId)
The ID of a NAT gateway.
- Parameters:
natGatewayId
- The ID of a NAT gateway.
-
getNatGatewayId
public String getNatGatewayId()
The ID of a NAT gateway.
- Returns:
- The ID of a NAT gateway.
-
withNatGatewayId
public ReplaceRouteRequest withNatGatewayId(String natGatewayId)
The ID of a NAT gateway.
- Parameters:
natGatewayId
- The ID of a NAT gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDryRunRequest
public Request<ReplaceRouteRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequest
in interfaceDryRunSupportedRequest<ReplaceRouteRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ReplaceRouteRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-