Interface RouteIntermodalRentalOptions.Builder

  • Method Details

    • allowedModesWithStrings

      RouteIntermodalRentalOptions.Builder allowedModesWithStrings(Collection<String> allowedModes)

      Allowed rental transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with ExcludedModes.

      Parameters:
      allowedModes - Allowed rental transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with ExcludedModes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowedModesWithStrings

      RouteIntermodalRentalOptions.Builder allowedModesWithStrings(String... allowedModes)

      Allowed rental transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with ExcludedModes.

      Parameters:
      allowedModes - Allowed rental transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with ExcludedModes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowedModes

      Allowed rental transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with ExcludedModes.

      Parameters:
      allowedModes - Allowed rental transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with ExcludedModes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowedModes

      Allowed rental transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with ExcludedModes.

      Parameters:
      allowedModes - Allowed rental transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with ExcludedModes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • enabledForWithStrings

      RouteIntermodalRentalOptions.Builder enabledForWithStrings(Collection<String> enabledFor)

      Specifies the portion of the route for which this leg type is enabled. By default, the leg type is enabled for all legs. Valid values:

      • FirstLeg - Enable this leg type for the first non-pedestrian leg of the route.

      • LastLeg - Enable this leg type for the last non-pedestrian leg of the route.

      • EntireRoute - Enable this leg type for the entire route.

      • None - Disable this leg type entirely.

      Parameters:
      enabledFor - Specifies the portion of the route for which this leg type is enabled. By default, the leg type is enabled for all legs. Valid values:

      • FirstLeg - Enable this leg type for the first non-pedestrian leg of the route.

      • LastLeg - Enable this leg type for the last non-pedestrian leg of the route.

      • EntireRoute - Enable this leg type for the entire route.

      • None - Disable this leg type entirely.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • enabledForWithStrings

      RouteIntermodalRentalOptions.Builder enabledForWithStrings(String... enabledFor)

      Specifies the portion of the route for which this leg type is enabled. By default, the leg type is enabled for all legs. Valid values:

      • FirstLeg - Enable this leg type for the first non-pedestrian leg of the route.

      • LastLeg - Enable this leg type for the last non-pedestrian leg of the route.

      • EntireRoute - Enable this leg type for the entire route.

      • None - Disable this leg type entirely.

      Parameters:
      enabledFor - Specifies the portion of the route for which this leg type is enabled. By default, the leg type is enabled for all legs. Valid values:

      • FirstLeg - Enable this leg type for the first non-pedestrian leg of the route.

      • LastLeg - Enable this leg type for the last non-pedestrian leg of the route.

      • EntireRoute - Enable this leg type for the entire route.

      • None - Disable this leg type entirely.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • enabledFor

      Specifies the portion of the route for which this leg type is enabled. By default, the leg type is enabled for all legs. Valid values:

      • FirstLeg - Enable this leg type for the first non-pedestrian leg of the route.

      • LastLeg - Enable this leg type for the last non-pedestrian leg of the route.

      • EntireRoute - Enable this leg type for the entire route.

      • None - Disable this leg type entirely.

      Parameters:
      enabledFor - Specifies the portion of the route for which this leg type is enabled. By default, the leg type is enabled for all legs. Valid values:

      • FirstLeg - Enable this leg type for the first non-pedestrian leg of the route.

      • LastLeg - Enable this leg type for the last non-pedestrian leg of the route.

      • EntireRoute - Enable this leg type for the entire route.

      • None - Disable this leg type entirely.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • enabledFor

      Specifies the portion of the route for which this leg type is enabled. By default, the leg type is enabled for all legs. Valid values:

      • FirstLeg - Enable this leg type for the first non-pedestrian leg of the route.

      • LastLeg - Enable this leg type for the last non-pedestrian leg of the route.

      • EntireRoute - Enable this leg type for the entire route.

      • None - Disable this leg type entirely.

      Parameters:
      enabledFor - Specifies the portion of the route for which this leg type is enabled. By default, the leg type is enabled for all legs. Valid values:

      • FirstLeg - Enable this leg type for the first non-pedestrian leg of the route.

      • LastLeg - Enable this leg type for the last non-pedestrian leg of the route.

      • EntireRoute - Enable this leg type for the entire route.

      • None - Disable this leg type entirely.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • excludedModesWithStrings

      RouteIntermodalRentalOptions.Builder excludedModesWithStrings(Collection<String> excludedModes)

      Excluded rental transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with AllowedModes.

      Parameters:
      excludedModes - Excluded rental transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with AllowedModes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • excludedModesWithStrings

      RouteIntermodalRentalOptions.Builder excludedModesWithStrings(String... excludedModes)

      Excluded rental transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with AllowedModes.

      Parameters:
      excludedModes - Excluded rental transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with AllowedModes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • excludedModes

      Excluded rental transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with AllowedModes.

      Parameters:
      excludedModes - Excluded rental transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with AllowedModes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • excludedModes

      RouteIntermodalRentalOptions.Builder excludedModes(RouteRentalMode... excludedModes)

      Excluded rental transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with AllowedModes.

      Parameters:
      excludedModes - Excluded rental transport modes when calculating the route. By default, all transport modes are allowed. Cannot be used together with AllowedModes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.