Class CfnAlias.RoutingStrategyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.CfnAlias.RoutingStrategyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlias.RoutingStrategyProperty>
- Enclosing interface:
CfnAlias.RoutingStrategyProperty
@Stability(Stable)
public static final class CfnAlias.RoutingStrategyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAlias.RoutingStrategyProperty>
A builder for
CfnAlias.RoutingStrategyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnAlias.RoutingStrategyProperty.getFleetId()Sets the value ofCfnAlias.RoutingStrategyProperty.getMessage()Sets the value ofCfnAlias.RoutingStrategyProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnAlias.RoutingStrategyProperty.getType()- Parameters:
type- A type of routing strategy. This parameter is required. 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
TerminalRoutingStrategyExceptionwith the message that you specified in theMessageproperty.
- Returns:
this
-
fleetId
Sets the value ofCfnAlias.RoutingStrategyProperty.getFleetId()- Parameters:
fleetId- A unique identifier for a fleet that the alias points to. If you specifySIMPLEfor theTypeproperty, you must specify this property.- Returns:
this
-
message
Sets the value ofCfnAlias.RoutingStrategyProperty.getMessage()- Parameters:
message- The message text to be used with a terminal routing strategy. If you specifyTERMINALfor theTypeproperty, you must specify this property.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAlias.RoutingStrategyProperty>- Returns:
- a new instance of
CfnAlias.RoutingStrategyProperty - Throws:
NullPointerException- if any required attribute was not provided
-