@Generated(value="software.amazon.awssdk:codegen") public final class RoutingStrategy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RoutingStrategy.Builder,RoutingStrategy>
The routing configuration for a fleet alias.
| Modifier and Type | Class and Description |
|---|---|
static interface |
RoutingStrategy.Builder |
| Modifier and Type | Method and Description |
|---|---|
static RoutingStrategy.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
fleetId()
The unique identifier for a fleet that the alias points to.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
message()
The message text to be used with a terminal routing strategy.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends RoutingStrategy.Builder> |
serializableBuilderClass() |
RoutingStrategy.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
RoutingStrategyType |
type()
The type of routing strategy for the alias.
|
String |
typeAsString()
The type of routing strategy for the alias.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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 RoutingStrategy 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().
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.
RoutingStrategyTypepublic 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 RoutingStrategy 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().
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.
RoutingStrategyTypepublic String fleetId()
The unique identifier for a fleet that the alias points to. This value is the fleet ID, not the fleet ARN.
public String message()
The message text to be used with a terminal routing strategy.
public RoutingStrategy.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<RoutingStrategy.Builder,RoutingStrategy>public static RoutingStrategy.Builder builder()
public static Class<? extends RoutingStrategy.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.