Class RoutingStrategy
java.lang.Object
com.amazonaws.services.gamelift.model.RoutingStrategy
- All Implemented Interfaces:
Serializable, Cloneable
Routing configuration for a fleet alias.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanUnique identifier for a fleet.Message text to be used with a terminal routing strategy.getType()Type of routing strategy.inthashCode()voidsetFleetId(String fleetId) Unique identifier for a fleet.voidsetMessage(String message) Message text to be used with a terminal routing strategy.voidsetType(RoutingStrategyType type) Type of routing strategy.voidType of routing strategy.toString()Returns a string representation of this object; useful for testing and debugging.withFleetId(String fleetId) Unique identifier for a fleet.withMessage(String message) Message text to be used with a terminal routing strategy.withType(RoutingStrategyType type) Type of routing strategy.Type of routing strategy.
-
Constructor Details
-
RoutingStrategy
public RoutingStrategy()
-
-
Method Details
-
setType
Type of routing strategy. Possible routing types include:
- 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 RoutingStrategy message embedded.
- Parameters:
type- Type of routing strategy. Possible routing types include:- 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 RoutingStrategy message embedded.
- See Also:
-
getType
Type of routing strategy. Possible routing types include:
- 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 RoutingStrategy message embedded.
- Returns:
- Type of routing strategy. Possible routing types include:
- 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 RoutingStrategy message embedded.
- See Also:
-
withType
Type of routing strategy. Possible routing types include:
- 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 RoutingStrategy message embedded.
- Parameters:
type- Type of routing strategy. Possible routing types include:- 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 RoutingStrategy message embedded.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setType
Type of routing strategy. Possible routing types include:
- 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 RoutingStrategy message embedded.
- Parameters:
type- Type of routing strategy. Possible routing types include:- 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 RoutingStrategy message embedded.
- See Also:
-
withType
Type of routing strategy. Possible routing types include:
- 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 RoutingStrategy message embedded.
- Parameters:
type- Type of routing strategy. Possible routing types include:- 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 RoutingStrategy message embedded.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setFleetId
Unique identifier for a fleet.
- Parameters:
fleetId- Unique identifier for a fleet.
-
getFleetId
-
withFleetId
Unique identifier for a fleet.
- Parameters:
fleetId- Unique identifier for a fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMessage
Message text to be used with a terminal routing strategy.
- Parameters:
message- Message text to be used with a terminal routing strategy.
-
getMessage
Message text to be used with a terminal routing strategy.
- Returns:
- Message text to be used with a terminal routing strategy.
-
withMessage
Message text to be used with a terminal routing strategy.
- Parameters:
message- 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.
-
toString
-
equals
-
hashCode
-
clone
-