Class RoutingStrategy
- java.lang.Object
-
- com.amazonaws.services.gamelift.model.RoutingStrategy
-
- All Implemented Interfaces:
Serializable,Cloneable
public class RoutingStrategy extends Object implements Serializable, Cloneable
Routing configuration for a fleet alias.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RoutingStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RoutingStrategyclone()booleanequals(Object obj)StringgetFleetId()Unique identifier for a fleet.StringgetMessage()Message text to be used with a terminal routing strategy.StringgetType()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.voidsetType(String type)Type of routing strategy.StringtoString()Returns a string representation of this object; useful for testing and debugging.RoutingStrategywithFleetId(String fleetId)Unique identifier for a fleet.RoutingStrategywithMessage(String message)Message text to be used with a terminal routing strategy.RoutingStrategywithType(RoutingStrategyType type)Type of routing strategy.RoutingStrategywithType(String type)Type of routing strategy.
-
-
-
Method Detail
-
setType
public void setType(String 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.
- 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:
RoutingStrategyType
-
getType
public String 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:
RoutingStrategyType
-
withType
public RoutingStrategy withType(String 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.
- 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:
RoutingStrategyType
-
setType
public void setType(RoutingStrategyType 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.
- 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:
RoutingStrategyType
-
withType
public RoutingStrategy withType(RoutingStrategyType 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.
- 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:
RoutingStrategyType
-
setFleetId
public void setFleetId(String fleetId)
Unique identifier for a fleet.
- Parameters:
fleetId- Unique identifier for a fleet.
-
getFleetId
public String getFleetId()
Unique identifier for a fleet.
- Returns:
- Unique identifier for a fleet.
-
withFleetId
public RoutingStrategy withFleetId(String fleetId)
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
public void setMessage(String message)
Message text to be used with a terminal routing strategy.
- Parameters:
message- Message text to be used with a terminal routing strategy.
-
getMessage
public String getMessage()
Message text to be used with a terminal routing strategy.
- Returns:
- Message text to be used with a terminal routing strategy.
-
withMessage
public RoutingStrategy withMessage(String message)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public RoutingStrategy clone()
-
-