Interface CreateRouteRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateRouteRequest.Builder,CreateRouteRequest>
,Ec2Request.Builder
,SdkBuilder<CreateRouteRequest.Builder,CreateRouteRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- CreateRouteRequest
public static interface CreateRouteRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<CreateRouteRequest.Builder,CreateRouteRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateRouteRequest.Builder
carrierGatewayId(String carrierGatewayId)
The ID of the carrier gateway.CreateRouteRequest.Builder
coreNetworkArn(String coreNetworkArn)
The Amazon Resource Name (ARN) of the core network.CreateRouteRequest.Builder
destinationCidrBlock(String destinationCidrBlock)
The IPv4 CIDR address block used for the destination match.CreateRouteRequest.Builder
destinationIpv6CidrBlock(String destinationIpv6CidrBlock)
The IPv6 CIDR block used for the destination match.CreateRouteRequest.Builder
destinationPrefixListId(String destinationPrefixListId)
The ID of a prefix list used for the destination match.CreateRouteRequest.Builder
dryRun(Boolean dryRun)
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.CreateRouteRequest.Builder
egressOnlyInternetGatewayId(String egressOnlyInternetGatewayId)
[IPv6 traffic only] The ID of an egress-only internet gateway.CreateRouteRequest.Builder
gatewayId(String gatewayId)
The ID of an internet gateway or virtual private gateway attached to your VPC.CreateRouteRequest.Builder
instanceId(String instanceId)
The ID of a NAT instance in your VPC.CreateRouteRequest.Builder
localGatewayId(String localGatewayId)
The ID of the local gateway.CreateRouteRequest.Builder
natGatewayId(String natGatewayId)
[IPv4 traffic only] The ID of a NAT gateway.CreateRouteRequest.Builder
networkInterfaceId(String networkInterfaceId)
The ID of a network interface.CreateRouteRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
CreateRouteRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
CreateRouteRequest.Builder
routeTableId(String routeTableId)
The ID of the route table for the route.CreateRouteRequest.Builder
transitGatewayId(String transitGatewayId)
The ID of a transit gateway.CreateRouteRequest.Builder
vpcEndpointId(String vpcEndpointId)
The ID of a VPC endpoint.CreateRouteRequest.Builder
vpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of a VPC peering connection.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
destinationCidrBlock
CreateRouteRequest.Builder destinationCidrBlock(String destinationCidrBlock)
The IPv4 CIDR address block used for the destination match. Routing decisions are based on the most specific match. We modify the specified CIDR block to its canonical form; for example, if you specify
100.68.0.18/18
, we modify it to100.68.0.0/18
.- Parameters:
destinationCidrBlock
- The IPv4 CIDR address block used for the destination match. Routing decisions are based on the most specific match. We modify the specified CIDR block to its canonical form; for example, if you specify100.68.0.18/18
, we modify it to100.68.0.0/18
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinationIpv6CidrBlock
CreateRouteRequest.Builder destinationIpv6CidrBlock(String destinationIpv6CidrBlock)
The IPv6 CIDR block used for the destination match. Routing decisions are based on the most specific match.
- Parameters:
destinationIpv6CidrBlock
- The IPv6 CIDR 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.
-
destinationPrefixListId
CreateRouteRequest.Builder destinationPrefixListId(String destinationPrefixListId)
The ID of a prefix list used for the destination match.
- Parameters:
destinationPrefixListId
- The ID of a prefix list used for the destination match.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dryRun
CreateRouteRequest.Builder dryRun(Boolean dryRun)
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Parameters:
dryRun
- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcEndpointId
CreateRouteRequest.Builder vpcEndpointId(String vpcEndpointId)
The ID of a VPC endpoint. Supported for Gateway Load Balancer endpoints only.
- Parameters:
vpcEndpointId
- The ID of a VPC endpoint. Supported for Gateway Load Balancer endpoints only.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
egressOnlyInternetGatewayId
CreateRouteRequest.Builder egressOnlyInternetGatewayId(String egressOnlyInternetGatewayId)
[IPv6 traffic only] The ID of an egress-only internet gateway.
- Parameters:
egressOnlyInternetGatewayId
- [IPv6 traffic only] The ID of an egress-only internet gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gatewayId
CreateRouteRequest.Builder gatewayId(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.
-
instanceId
CreateRouteRequest.Builder instanceId(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.
-
natGatewayId
CreateRouteRequest.Builder natGatewayId(String natGatewayId)
[IPv4 traffic only] The ID of a NAT gateway.
- Parameters:
natGatewayId
- [IPv4 traffic only] The ID of a NAT gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
transitGatewayId
CreateRouteRequest.Builder transitGatewayId(String transitGatewayId)
The ID of a transit gateway.
- Parameters:
transitGatewayId
- The ID of a transit gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
localGatewayId
CreateRouteRequest.Builder localGatewayId(String localGatewayId)
The ID of the local gateway.
- Parameters:
localGatewayId
- The ID of the local gateway.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
carrierGatewayId
CreateRouteRequest.Builder carrierGatewayId(String carrierGatewayId)
The ID of the carrier gateway.
You can only use this option when the VPC contains a subnet which is associated with a Wavelength Zone.
- Parameters:
carrierGatewayId
- The ID of the carrier gateway.You can only use this option when the VPC contains a subnet which is associated with a Wavelength Zone.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaceId
CreateRouteRequest.Builder networkInterfaceId(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.
-
routeTableId
CreateRouteRequest.Builder routeTableId(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.
-
vpcPeeringConnectionId
CreateRouteRequest.Builder vpcPeeringConnectionId(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.
-
coreNetworkArn
CreateRouteRequest.Builder coreNetworkArn(String coreNetworkArn)
The Amazon Resource Name (ARN) of the core network.
- Parameters:
coreNetworkArn
- The Amazon Resource Name (ARN) of the core network.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateRouteRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
CreateRouteRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-