Interface RoutingStrategy.Builder

    • Method Detail

      • type

        RoutingStrategy.Builder type​(String type)

        The type of routing strategy for the alias.

        Possible routing types include the following:

        • SIMPLE - The alias resolves to one specific fleet. Use this type when routing to active fleets.

        • TERMINAL - The alias does not resolve to a fleet but instead can be used to display a message to the user. A terminal alias throws a TerminalRoutingStrategyException with the message embedded.

        Parameters:
        type - The type of routing strategy for the alias.

        Possible routing types include the following:

        • SIMPLE - The alias resolves to one specific fleet. Use this type when routing to active fleets.

        • TERMINAL - The alias does not resolve to a fleet but instead can be used to display a message to the user. A terminal alias throws a TerminalRoutingStrategyException with the message embedded.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        RoutingStrategyType, RoutingStrategyType
      • type

        RoutingStrategy.Builder type​(RoutingStrategyType type)

        The type of routing strategy for the alias.

        Possible routing types include the following:

        • SIMPLE - The alias resolves to one specific fleet. Use this type when routing to active fleets.

        • TERMINAL - The alias does not resolve to a fleet but instead can be used to display a message to the user. A terminal alias throws a TerminalRoutingStrategyException with the message embedded.

        Parameters:
        type - The type of routing strategy for the alias.

        Possible routing types include the following:

        • SIMPLE - The alias resolves to one specific fleet. Use this type when routing to active fleets.

        • TERMINAL - The alias does not resolve to a fleet but instead can be used to display a message to the user. A terminal alias throws a TerminalRoutingStrategyException with the message embedded.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        RoutingStrategyType, RoutingStrategyType
      • fleetId

        RoutingStrategy.Builder fleetId​(String fleetId)

        A unique identifier for the fleet that the alias points to. This value is the fleet ID, not the fleet ARN.

        Parameters:
        fleetId - A unique identifier for the fleet that the alias points to. This value is the fleet ID, not the fleet ARN.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • message

        RoutingStrategy.Builder message​(String message)

        The message text to be used with a terminal routing strategy.

        Parameters:
        message - The message text to be used with a terminal routing strategy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.