Interface VirtualEdgeNetworkGatewayRouteRequest.Builder

  • Method Details

    • ipv4DestinationCidrBlock

      VirtualEdgeNetworkGatewayRouteRequest.Builder ipv4DestinationCidrBlock(String ipv4DestinationCidrBlock)

      The IPv4 CIDR block used for the destination match. You must specify either Ipv4DestinationCidrBlock or Ipv6DestinationCidrBlock, 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 either Ipv4DestinationCidrBlock or Ipv6DestinationCidrBlock, 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 Ipv4DestinationCidrBlock or Ipv6DestinationCidrBlock, 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 either Ipv4DestinationCidrBlock or Ipv6DestinationCidrBlock, 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

      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

      The targets of the route. For the target type subnet, you must specify at least one target. For the target types blackhole and internet, you can't specify targets.

      Parameters:
      targets - The targets of the route. For the target type subnet, you must specify at least one target. For the target types blackhole and internet, you can't specify targets.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • targets

      The targets of the route. For the target type subnet, you must specify at least one target. For the target types blackhole and internet, you can't specify targets.

      Parameters:
      targets - The targets of the route. For the target type subnet, you must specify at least one target. For the target types blackhole and internet, you can't specify targets.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • targets

      The targets of the route. For the target type subnet, you must specify at least one target. For the target types blackhole and internet, you can't specify targets.

      This is a convenience method that creates an instance of the VirtualEdgeNetworkGatewayRouteTargetRequest.Builder avoiding the need to create one manually via VirtualEdgeNetworkGatewayRouteTargetRequest.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to targets(List<VirtualEdgeNetworkGatewayRouteTargetRequest>).

      Parameters:
      targets - a consumer that will call methods on VirtualEdgeNetworkGatewayRouteTargetRequest.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 type subnet. 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 type subnet. 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

      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 type subnet. 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

      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 type subnet. 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

      VirtualEdgeNetworkGatewayRouteRequest.Builder routePreference(Integer 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.