Class CreateRouteRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ec2.model.CreateRouteRequest
-
- All Implemented Interfaces:
ReadLimitInfo,DryRunSupportedRequest<CreateRouteRequest>,Serializable,Cloneable
public class CreateRouteRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateRouteRequest>
Contains the parameters for CreateRoute.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateRouteRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateRouteRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetDestinationCidrBlock()The CIDR address block used for the destination match.Request<CreateRouteRequest>getDryRunRequest()This method is intended for internal use only.StringgetGatewayId()The ID of an Internet gateway or virtual private gateway attached to your VPC.StringgetInstanceId()The ID of a NAT instance in your VPC.StringgetNatGatewayId()The ID of a NAT gateway.StringgetNetworkInterfaceId()The ID of a network interface.StringgetRouteTableId()The ID of the route table for the route.StringgetVpcPeeringConnectionId()The ID of a VPC peering connection.inthashCode()voidsetDestinationCidrBlock(String destinationCidrBlock)The CIDR address block used for the destination match.voidsetGatewayId(String gatewayId)The ID of an Internet gateway or virtual private gateway attached to your VPC.voidsetInstanceId(String instanceId)The ID of a NAT instance in your VPC.voidsetNatGatewayId(String natGatewayId)The ID of a NAT gateway.voidsetNetworkInterfaceId(String networkInterfaceId)The ID of a network interface.voidsetRouteTableId(String routeTableId)The ID of the route table for the route.voidsetVpcPeeringConnectionId(String vpcPeeringConnectionId)The ID of a VPC peering connection.StringtoString()Returns a string representation of this object; useful for testing and debugging.CreateRouteRequestwithDestinationCidrBlock(String destinationCidrBlock)The CIDR address block used for the destination match.CreateRouteRequestwithGatewayId(String gatewayId)The ID of an Internet gateway or virtual private gateway attached to your VPC.CreateRouteRequestwithInstanceId(String instanceId)The ID of a NAT instance in your VPC.CreateRouteRequestwithNatGatewayId(String natGatewayId)The ID of a NAT gateway.CreateRouteRequestwithNetworkInterfaceId(String networkInterfaceId)The ID of a network interface.CreateRouteRequestwithRouteTableId(String routeTableId)The ID of the route table for the route.CreateRouteRequestwithVpcPeeringConnectionId(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 for the route.
- Parameters:
routeTableId- The ID of the route table for the route.
-
getRouteTableId
public String getRouteTableId()
The ID of the route table for the route.
- Returns:
- The ID of the route table for the route.
-
withRouteTableId
public CreateRouteRequest withRouteTableId(String routeTableId)
The ID of the route table for the route.
- Parameters:
routeTableId- The ID of the route table for the route.- 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. Routing decisions are based on the most specific match.
- Parameters:
destinationCidrBlock- The CIDR address block used for the destination match. Routing decisions are based on the most specific match.
-
getDestinationCidrBlock
public String getDestinationCidrBlock()
The CIDR address block used for the destination match. Routing decisions are based on the most specific match.
- Returns:
- The CIDR address block used for the destination match. Routing decisions are based on the most specific match.
-
withDestinationCidrBlock
public CreateRouteRequest withDestinationCidrBlock(String destinationCidrBlock)
The CIDR address block used for the destination match. Routing decisions are based on the most specific match.
- Parameters:
destinationCidrBlock- The CIDR address block used for the destination match. Routing decisions are based on the most specific match.- 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 attached to your VPC.
- Parameters:
gatewayId- The ID of an Internet gateway or virtual private gateway attached to your VPC.
-
getGatewayId
public String getGatewayId()
The ID of an Internet gateway or virtual private gateway attached to your VPC.
- Returns:
- The ID of an Internet gateway or virtual private gateway attached to your VPC.
-
withGatewayId
public CreateRouteRequest withGatewayId(String gatewayId)
The ID of an Internet gateway or virtual private gateway attached to your VPC.
- Parameters:
gatewayId- The ID of an Internet gateway or virtual private gateway attached to your VPC.- 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. The operation fails if you specify an instance ID unless exactly one network interface is attached.
- Parameters:
instanceId- The ID of a NAT instance in your VPC. The operation fails if you specify an instance ID unless exactly one network interface is attached.
-
getInstanceId
public String getInstanceId()
The ID of a NAT instance in your VPC. The operation fails if you specify an instance ID unless exactly one network interface is attached.
- Returns:
- The ID of a NAT instance in your VPC. The operation fails if you specify an instance ID unless exactly one network interface is attached.
-
withInstanceId
public CreateRouteRequest withInstanceId(String instanceId)
The ID of a NAT instance in your VPC. The operation fails if you specify an instance ID unless exactly one network interface is attached.
- Parameters:
instanceId- The ID of a NAT instance in your VPC. The operation fails if you specify an instance ID unless exactly one network interface is attached.- 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 CreateRouteRequest 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 CreateRouteRequest 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 CreateRouteRequest 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<CreateRouteRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequestin interfaceDryRunSupportedRequest<CreateRouteRequest>
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateRouteRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-