public class CreateRouteRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<CreateRouteRequest>
Contains the parameters for CreateRoute.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
destinationCidrBlock
The CIDR address block used for the destination match.
|
private java.lang.String |
gatewayId
The ID of an Internet gateway or virtual private gateway attached to your
VPC.
|
private java.lang.String |
instanceId
The ID of a NAT instance in your VPC.
|
private java.lang.String |
natGatewayId
The ID of a NAT gateway.
|
private java.lang.String |
networkInterfaceId
The ID of a network interface.
|
private java.lang.String |
routeTableId
The ID of the route table for the route.
|
private java.lang.String |
vpcPeeringConnectionId
The ID of a VPC peering connection.
|
NOOP
Constructor and Description |
---|
CreateRouteRequest() |
Modifier and Type | Method and Description |
---|---|
CreateRouteRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDestinationCidrBlock()
The CIDR address block used for the destination match.
|
Request<CreateRouteRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.String |
getGatewayId()
The ID of an Internet gateway or virtual private gateway attached to your
VPC.
|
java.lang.String |
getInstanceId()
The ID of a NAT instance in your VPC.
|
java.lang.String |
getNatGatewayId()
The ID of a NAT gateway.
|
java.lang.String |
getNetworkInterfaceId()
The ID of a network interface.
|
java.lang.String |
getRouteTableId()
The ID of the route table for the route.
|
java.lang.String |
getVpcPeeringConnectionId()
The ID of a VPC peering connection.
|
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 an Internet gateway or virtual private gateway attached to your
VPC.
|
void |
setInstanceId(java.lang.String instanceId)
The ID of a NAT instance in your VPC.
|
void |
setNatGatewayId(java.lang.String natGatewayId)
The ID of a NAT gateway.
|
void |
setNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of a network interface.
|
void |
setRouteTableId(java.lang.String routeTableId)
The ID of the route table for the route.
|
void |
setVpcPeeringConnectionId(java.lang.String vpcPeeringConnectionId)
The ID of a VPC peering connection.
|
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 an Internet gateway or virtual private gateway attached to your
VPC.
|
CreateRouteRequest |
withInstanceId(java.lang.String instanceId)
The ID of a NAT instance in your VPC.
|
CreateRouteRequest |
withNatGatewayId(java.lang.String natGatewayId)
The ID of a NAT gateway.
|
CreateRouteRequest |
withNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of a network interface.
|
CreateRouteRequest |
withRouteTableId(java.lang.String routeTableId)
The ID of the route table for the route.
|
CreateRouteRequest |
withVpcPeeringConnectionId(java.lang.String vpcPeeringConnectionId)
The ID of a VPC peering connection.
|
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
private java.lang.String routeTableId
The ID of the route table for the route.
private java.lang.String destinationCidrBlock
The CIDR address block used for the destination match. Routing decisions are based on the most specific match.
private java.lang.String gatewayId
The ID of an Internet gateway or virtual private gateway attached to your VPC.
private java.lang.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.
private java.lang.String networkInterfaceId
The ID of a network interface.
private java.lang.String vpcPeeringConnectionId
The ID of a VPC peering connection.
private java.lang.String natGatewayId
The ID of a NAT gateway.
public void setRouteTableId(java.lang.String routeTableId)
The ID of the route table for the route.
routeTableId
- The ID of the route table for the route.public java.lang.String getRouteTableId()
The ID of the route table for the route.
public CreateRouteRequest withRouteTableId(java.lang.String routeTableId)
The ID of the route table for the route.
routeTableId
- The ID of the route table for the route.public void setDestinationCidrBlock(java.lang.String destinationCidrBlock)
The CIDR address block used for the destination match. Routing decisions are based on the most specific match.
destinationCidrBlock
- The CIDR address block used for the destination match. Routing
decisions are based on the most specific match.public java.lang.String getDestinationCidrBlock()
The CIDR address block used for the destination match. Routing decisions are based on the most specific match.
public CreateRouteRequest withDestinationCidrBlock(java.lang.String destinationCidrBlock)
The CIDR address block used for the destination match. Routing decisions are based on the most specific match.
destinationCidrBlock
- The CIDR address block used for the destination match. Routing
decisions are based on the most specific match.public void setGatewayId(java.lang.String gatewayId)
The ID of an Internet gateway or virtual private gateway attached to your VPC.
gatewayId
- The ID of an Internet gateway or virtual private gateway attached
to your VPC.public java.lang.String getGatewayId()
The ID of an Internet gateway or virtual private gateway attached to your VPC.
public CreateRouteRequest withGatewayId(java.lang.String gatewayId)
The ID of an Internet gateway or virtual private gateway attached to your VPC.
gatewayId
- The ID of an Internet gateway or virtual private gateway attached
to your VPC.public void setInstanceId(java.lang.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.
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.public java.lang.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.
public CreateRouteRequest withInstanceId(java.lang.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.
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.public void setNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of a network interface.
networkInterfaceId
- The ID of a network interface.public java.lang.String getNetworkInterfaceId()
The ID of a network interface.
public CreateRouteRequest withNetworkInterfaceId(java.lang.String networkInterfaceId)
The ID of a network interface.
networkInterfaceId
- The ID of a network interface.public void setVpcPeeringConnectionId(java.lang.String vpcPeeringConnectionId)
The ID of a VPC peering connection.
vpcPeeringConnectionId
- The ID of a VPC peering connection.public java.lang.String getVpcPeeringConnectionId()
The ID of a VPC peering connection.
public CreateRouteRequest withVpcPeeringConnectionId(java.lang.String vpcPeeringConnectionId)
The ID of a VPC peering connection.
vpcPeeringConnectionId
- The ID of a VPC peering connection.public void setNatGatewayId(java.lang.String natGatewayId)
The ID of a NAT gateway.
natGatewayId
- The ID of a NAT gateway.public java.lang.String getNatGatewayId()
The ID of a NAT gateway.
public CreateRouteRequest withNatGatewayId(java.lang.String natGatewayId)
The ID of a NAT gateway.
natGatewayId
- The ID of a NAT gateway.public Request<CreateRouteRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateRouteRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreateRouteRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()