@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RoutingStrategy extends Object implements Serializable, Cloneable, StructuredPojo
Routing configuration for a fleet alias.
Fleet-related operations include:
Describe fleets:
Update fleets:
Manage fleet capacity:
PutScalingPolicy (automatic scaling)
DescribeScalingPolicies (automatic scaling)
DeleteScalingPolicy (automatic scaling)
Constructor and Description |
---|
RoutingStrategy() |
Modifier and Type | Method and Description |
---|---|
RoutingStrategy |
clone() |
boolean |
equals(Object obj) |
String |
getFleetId()
Unique identifier for a fleet that the alias points to.
|
String |
getMessage()
Message text to be used with a terminal routing strategy.
|
String |
getType()
Type of routing strategy.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFleetId(String fleetId)
Unique identifier for a fleet that the alias points to.
|
void |
setMessage(String message)
Message text to be used with a terminal routing strategy.
|
void |
setType(RoutingStrategyType type)
Type of routing strategy.
|
void |
setType(String type)
Type of routing strategy.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
RoutingStrategy |
withFleetId(String fleetId)
Unique identifier for a fleet that the alias points to.
|
RoutingStrategy |
withMessage(String message)
Message text to be used with a terminal routing strategy.
|
RoutingStrategy |
withType(RoutingStrategyType type)
Type of routing strategy.
|
RoutingStrategy |
withType(String type)
Type of routing strategy.
|
public void setType(String type)
Type of routing strategy.
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 RoutingStrategy message embedded.
type
- Type of routing strategy.
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 RoutingStrategy message embedded.
RoutingStrategyType
public String getType()
Type of routing strategy.
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 RoutingStrategy message embedded.
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 RoutingStrategy message embedded.
RoutingStrategyType
public RoutingStrategy withType(String type)
Type of routing strategy.
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 RoutingStrategy message embedded.
type
- Type of routing strategy.
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 RoutingStrategy message embedded.
RoutingStrategyType
public void setType(RoutingStrategyType type)
Type of routing strategy.
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 RoutingStrategy message embedded.
type
- Type of routing strategy.
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 RoutingStrategy message embedded.
RoutingStrategyType
public RoutingStrategy withType(RoutingStrategyType type)
Type of routing strategy.
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 RoutingStrategy message embedded.
type
- Type of routing strategy.
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 RoutingStrategy message embedded.
RoutingStrategyType
public void setFleetId(String fleetId)
Unique identifier for a fleet that the alias points to.
fleetId
- Unique identifier for a fleet that the alias points to.public String getFleetId()
Unique identifier for a fleet that the alias points to.
public RoutingStrategy withFleetId(String fleetId)
Unique identifier for a fleet that the alias points to.
fleetId
- Unique identifier for a fleet that the alias points to.public void setMessage(String message)
Message text to be used with a terminal routing strategy.
message
- Message text to be used with a terminal routing strategy.public String getMessage()
Message text to be used with a terminal routing strategy.
public RoutingStrategy withMessage(String message)
Message text to be used with a terminal routing strategy.
message
- Message text to be used with a terminal routing strategy.public String toString()
toString
in class Object
Object.toString()
public RoutingStrategy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.