@Generated(value="software.amazon.awssdk:codegen") public class CreateRouteRequest extends EC2Request implements ToCopyableBuilder<CreateRouteRequest.Builder,CreateRouteRequest>
Contains the parameters for CreateRoute.
Modifier and Type | Class and Description |
---|---|
static interface |
CreateRouteRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static CreateRouteRequest.Builder |
builder() |
String |
destinationCidrBlock()
The IPv4 CIDR address block used for the destination match.
|
String |
destinationIpv6CidrBlock()
The IPv6 CIDR block used for the destination match.
|
String |
egressOnlyInternetGatewayId()
[IPv6 traffic only] The ID of an egress-only Internet gateway.
|
boolean |
equals(Object obj) |
String |
gatewayId()
The ID of an Internet gateway or virtual private gateway attached to your VPC.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
instanceId()
The ID of a NAT instance in your VPC.
|
String |
natGatewayId()
[IPv4 traffic only] The ID of a NAT gateway.
|
String |
networkInterfaceId()
The ID of a network interface.
|
String |
routeTableId()
The ID of the route table for the route.
|
static Class<? extends CreateRouteRequest.Builder> |
serializableBuilderClass() |
CreateRouteRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
vpcPeeringConnectionId()
The ID of a VPC peering connection.
|
requestOverrideConfig
copy
public String destinationCidrBlock()
The IPv4 CIDR address block used for the destination match. Routing decisions are based on the most specific match.
public String destinationIpv6CidrBlock()
The IPv6 CIDR block used for the destination match. Routing decisions are based on the most specific match.
public String egressOnlyInternetGatewayId()
[IPv6 traffic only] The ID of an egress-only Internet gateway.
public String gatewayId()
The ID of an Internet gateway or virtual private gateway attached to your VPC.
public 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.
public String natGatewayId()
[IPv4 traffic only] The ID of a NAT gateway.
public String networkInterfaceId()
The ID of a network interface.
public String routeTableId()
The ID of the route table for the route.
public String vpcPeeringConnectionId()
The ID of a VPC peering connection.
public CreateRouteRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateRouteRequest.Builder,CreateRouteRequest>
toBuilder
in class EC2Request
public static CreateRouteRequest.Builder builder()
public static Class<? extends CreateRouteRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.