Class RoutingStrategy

    • Method Detail

      • type

        public final 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.

        If the service returns an enum value that is not available in the current SDK version, type will return RoutingStrategyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from typeAsString().

        Returns:
        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.

        See Also:
        RoutingStrategyType
      • typeAsString

        public final String typeAsString()

        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.

        If the service returns an enum value that is not available in the current SDK version, type will return RoutingStrategyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from typeAsString().

        Returns:
        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.

        See Also:
        RoutingStrategyType
      • fleetId

        public final String fleetId()

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

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

        public final String message()

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

        Returns:
        The message text to be used with a terminal routing strategy.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)