Interface VirtualEdgeNetworkGatewayRoute.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<VirtualEdgeNetworkGatewayRoute.Builder,,VirtualEdgeNetworkGatewayRoute> SdkBuilder<VirtualEdgeNetworkGatewayRoute.Builder,,VirtualEdgeNetworkGatewayRoute> SdkPojo
- Enclosing class:
VirtualEdgeNetworkGatewayRoute
-
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.The maximum transmission unit (MTU), in bytes, for the route.The ID of the Amazon Web Services account that owns the route.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 that the route forwards traffic to.targets(Consumer<VirtualEdgeNetworkGatewayRouteTarget.Builder>... targets) The targets that the route forwards traffic to.targets(VirtualEdgeNetworkGatewayRouteTarget... targets) The targets that the route forwards traffic to.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.virtualEdgeNetworkGatewayRouteTableId(String virtualEdgeNetworkGatewayRouteTableId) The ID of the virtual edge network gateway route table.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
-
virtualEdgeNetworkGatewayRouteTableId
VirtualEdgeNetworkGatewayRoute.Builder virtualEdgeNetworkGatewayRouteTableId(String virtualEdgeNetworkGatewayRouteTableId) The ID of the virtual edge network gateway route table.
- Parameters:
virtualEdgeNetworkGatewayRouteTableId- The ID of the virtual edge network gateway route table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv4DestinationCidrBlock
The IPv4 CIDR block used for the destination match.
- Parameters:
ipv4DestinationCidrBlock- The IPv4 CIDR block used for the destination match.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6DestinationCidrBlock
The IPv6 CIDR block used for the destination match.
- Parameters:
ipv6DestinationCidrBlock- The IPv6 CIDR block used for the destination match.- 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
VirtualEdgeNetworkGatewayRoute.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
VirtualEdgeNetworkGatewayRoute.Builder targets(Collection<VirtualEdgeNetworkGatewayRouteTarget> targets) The targets that the route forwards traffic to. A target is one of the following:
-
A blackhole, which drops the traffic.
-
An IP address.
-
A secondary subnet.
-
The internet.
- Parameters:
targets- The targets that the route forwards traffic to. A target is one of the following:-
A blackhole, which drops the traffic.
-
An IP address.
-
A secondary subnet.
-
The internet.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
targets
The targets that the route forwards traffic to. A target is one of the following:
-
A blackhole, which drops the traffic.
-
An IP address.
-
A secondary subnet.
-
The internet.
- Parameters:
targets- The targets that the route forwards traffic to. A target is one of the following:-
A blackhole, which drops the traffic.
-
An IP address.
-
A secondary subnet.
-
The internet.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
targets
VirtualEdgeNetworkGatewayRoute.Builder targets(Consumer<VirtualEdgeNetworkGatewayRouteTarget.Builder>... targets) The targets that the route forwards traffic to. A target is one of the following:
-
A blackhole, which drops the traffic.
-
An IP address.
-
A secondary subnet.
-
The internet.
VirtualEdgeNetworkGatewayRouteTarget.Builderavoiding the need to create one manually viaVirtualEdgeNetworkGatewayRouteTarget.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totargets(List<VirtualEdgeNetworkGatewayRouteTarget>).- Parameters:
targets- a consumer that will call methods onVirtualEdgeNetworkGatewayRouteTarget.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
reachabilityScopesWithStrings
VirtualEdgeNetworkGatewayRoute.Builder reachabilityScopesWithStrings(Collection<String> reachabilityScopes) The reachability scopes of the route, which determine where the route is advertised.
- Parameters:
reachabilityScopes- The reachability scopes of the route, which determine where the route is advertised.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reachabilityScopesWithStrings
The reachability scopes of the route, which determine where the route is advertised.
- Parameters:
reachabilityScopes- The reachability scopes of the route, which determine where the route is advertised.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reachabilityScopes
VirtualEdgeNetworkGatewayRoute.Builder reachabilityScopes(Collection<VirtualEdgeNetworkGatewayRouteReachabilityScope> reachabilityScopes) The reachability scopes of the route, which determine where the route is advertised.
- Parameters:
reachabilityScopes- The reachability scopes of the route, which determine where the route is advertised.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reachabilityScopes
VirtualEdgeNetworkGatewayRoute.Builder reachabilityScopes(VirtualEdgeNetworkGatewayRouteReachabilityScope... reachabilityScopes) The reachability scopes of the route, which determine where the route is advertised.
- Parameters:
reachabilityScopes- The reachability scopes of the route, which determine where the route is 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. The default is 1 for static routes and 100 for routes learned from route server peers.
- 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. The default is 1 for static routes and 100 for routes learned from route server peers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mtu
The maximum transmission unit (MTU), in bytes, for the route. The MTU is 1500 for routes with the target type
internet, and 8500 for other routes.- Parameters:
mtu- The maximum transmission unit (MTU), in bytes, for the route. The MTU is 1500 for routes with the target typeinternet, and 8500 for other routes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ownerId
The ID of the Amazon Web Services account that owns the route.
- Parameters:
ownerId- The ID of the Amazon Web Services account that owns the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-