Interface VirtualEdgeNetworkGatewayRouteRequest.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<VirtualEdgeNetworkGatewayRouteRequest.Builder,,VirtualEdgeNetworkGatewayRouteRequest> SdkBuilder<VirtualEdgeNetworkGatewayRouteRequest.Builder,,VirtualEdgeNetworkGatewayRouteRequest> SdkPojo
- Enclosing class:
VirtualEdgeNetworkGatewayRouteRequest
-
Method Summary
Modifier and TypeMethodDescriptionipv4DestinationCidrBlock(String ipv4DestinationCidrBlock) The IPv4 CIDR block used for the destination match.ipv6DestinationCidrBlock(String ipv6DestinationCidrBlock) The IPv6 CIDR block used for the destination match.reachabilityScopes(Collection<VirtualEdgeNetworkGatewayRouteReachabilityScope> reachabilityScopes) The reachability scopes of the route, which determine where the route is advertised.reachabilityScopes(VirtualEdgeNetworkGatewayRouteReachabilityScope... reachabilityScopes) The reachability scopes of the route, which determine where the route is advertised.reachabilityScopesWithStrings(String... reachabilityScopes) The reachability scopes of the route, which determine where the route is advertised.reachabilityScopesWithStrings(Collection<String> reachabilityScopes) The reachability scopes of the route, which determine where the route is advertised.routePreference(Integer routePreference) The route preference.The targets of the route.The targets of the route.targets(VirtualEdgeNetworkGatewayRouteTargetRequest... targets) The targets of the route.targetType(String targetType) The type of target for the route, which determines where the gateway forwards matching traffic.targetType(VirtualEdgeNetworkGatewayRouteTargetType targetType) The type of target for the route, which determines where the gateway forwards matching traffic.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
ipv4DestinationCidrBlock
VirtualEdgeNetworkGatewayRouteRequest.Builder ipv4DestinationCidrBlock(String ipv4DestinationCidrBlock) The IPv4 CIDR block used for the destination match. You must specify either
Ipv4DestinationCidrBlockorIpv6DestinationCidrBlock, but not both, and it must match the address family of the route table.- Parameters:
ipv4DestinationCidrBlock- The IPv4 CIDR block used for the destination match. You must specify eitherIpv4DestinationCidrBlockorIpv6DestinationCidrBlock, but not both, and it must match the address family of the route table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6DestinationCidrBlock
VirtualEdgeNetworkGatewayRouteRequest.Builder ipv6DestinationCidrBlock(String ipv6DestinationCidrBlock) The IPv6 CIDR block used for the destination match. You must specify either
Ipv4DestinationCidrBlockorIpv6DestinationCidrBlock, but not both, and it must match the address family of the route table.- Parameters:
ipv6DestinationCidrBlock- The IPv6 CIDR block used for the destination match. You must specify eitherIpv4DestinationCidrBlockorIpv6DestinationCidrBlock, but not both, and it must match the address family of the route table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetType
The type of target for the route, which determines where the gateway forwards matching traffic. Valid values:
-
blackhole– Drops matching traffic. -
internet– Forwards matching traffic to the internet. -
subnet– Forwards matching traffic to a secondary subnet.
- Parameters:
targetType- The type of target for the route, which determines where the gateway forwards matching traffic. Valid values:-
blackhole– Drops matching traffic. -
internet– Forwards matching traffic to the internet. -
subnet– Forwards matching traffic to a secondary subnet.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
targetType
VirtualEdgeNetworkGatewayRouteRequest.Builder targetType(VirtualEdgeNetworkGatewayRouteTargetType targetType) The type of target for the route, which determines where the gateway forwards matching traffic. Valid values:
-
blackhole– Drops matching traffic. -
internet– Forwards matching traffic to the internet. -
subnet– Forwards matching traffic to a secondary subnet.
- Parameters:
targetType- The type of target for the route, which determines where the gateway forwards matching traffic. Valid values:-
blackhole– Drops matching traffic. -
internet– Forwards matching traffic to the internet. -
subnet– Forwards matching traffic to a secondary subnet.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
targets
VirtualEdgeNetworkGatewayRouteRequest.Builder targets(Collection<VirtualEdgeNetworkGatewayRouteTargetRequest> targets) The targets of the route. For the target type
subnet, you must specify at least one target. For the target typesblackholeandinternet, you can't specify targets.- Parameters:
targets- The targets of the route. For the target typesubnet, you must specify at least one target. For the target typesblackholeandinternet, you can't specify targets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
VirtualEdgeNetworkGatewayRouteRequest.Builder targets(VirtualEdgeNetworkGatewayRouteTargetRequest... targets) The targets of the route. For the target type
subnet, you must specify at least one target. For the target typesblackholeandinternet, you can't specify targets.- Parameters:
targets- The targets of the route. For the target typesubnet, you must specify at least one target. For the target typesblackholeandinternet, you can't specify targets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
VirtualEdgeNetworkGatewayRouteRequest.Builder targets(Consumer<VirtualEdgeNetworkGatewayRouteTargetRequest.Builder>... targets) The targets of the route. For the target type
This is a convenience method that creates an instance of thesubnet, you must specify at least one target. For the target typesblackholeandinternet, you can't specify targets.VirtualEdgeNetworkGatewayRouteTargetRequest.Builderavoiding the need to create one manually viaVirtualEdgeNetworkGatewayRouteTargetRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totargets(List<VirtualEdgeNetworkGatewayRouteTargetRequest>).- Parameters:
targets- a consumer that will call methods onVirtualEdgeNetworkGatewayRouteTargetRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
reachabilityScopesWithStrings
VirtualEdgeNetworkGatewayRouteRequest.Builder reachabilityScopesWithStrings(Collection<String> reachabilityScopes) The reachability scopes of the route, which determine where the route is advertised. You can specify reachability scopes only for routes with the target type
subnet. If you don't specify a reachability scope, the route isn't advertised.- Parameters:
reachabilityScopes- The reachability scopes of the route, which determine where the route is advertised. You can specify reachability scopes only for routes with the target typesubnet. If you don't specify a reachability scope, the route isn't advertised.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reachabilityScopesWithStrings
VirtualEdgeNetworkGatewayRouteRequest.Builder reachabilityScopesWithStrings(String... reachabilityScopes) The reachability scopes of the route, which determine where the route is advertised. You can specify reachability scopes only for routes with the target type
subnet. If you don't specify a reachability scope, the route isn't advertised.- Parameters:
reachabilityScopes- The reachability scopes of the route, which determine where the route is advertised. You can specify reachability scopes only for routes with the target typesubnet. If you don't specify a reachability scope, the route isn't advertised.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reachabilityScopes
VirtualEdgeNetworkGatewayRouteRequest.Builder reachabilityScopes(Collection<VirtualEdgeNetworkGatewayRouteReachabilityScope> reachabilityScopes) The reachability scopes of the route, which determine where the route is advertised. You can specify reachability scopes only for routes with the target type
subnet. If you don't specify a reachability scope, the route isn't advertised.- Parameters:
reachabilityScopes- The reachability scopes of the route, which determine where the route is advertised. You can specify reachability scopes only for routes with the target typesubnet. If you don't specify a reachability scope, the route isn't advertised.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reachabilityScopes
VirtualEdgeNetworkGatewayRouteRequest.Builder reachabilityScopes(VirtualEdgeNetworkGatewayRouteReachabilityScope... reachabilityScopes) The reachability scopes of the route, which determine where the route is advertised. You can specify reachability scopes only for routes with the target type
subnet. If you don't specify a reachability scope, the route isn't advertised.- Parameters:
reachabilityScopes- The reachability scopes of the route, which determine where the route is advertised. You can specify reachability scopes only for routes with the target typesubnet. If you don't specify a reachability scope, the route isn't advertised.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routePreference
The route preference. The gateway uses the most specific route that matches a destination. When routes for the same destination conflict, the route with the lowest route preference takes precedence. Valid values are from 0 to 255. The default is 1.
- Parameters:
routePreference- The route preference. The gateway uses the most specific route that matches a destination. When routes for the same destination conflict, the route with the lowest route preference takes precedence. Valid values are from 0 to 255. The default is 1.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-