Class CfnAliasProps.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.CfnAliasProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAliasProps>
- Enclosing interface:
CfnAliasProps
@Stability(Stable)
public static final class CfnAliasProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAliasProps>
A builder for
CfnAliasProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnAliasProps.getDescription()
Sets the value ofCfnAliasProps.getName()
routingStrategy
(IResolvable routingStrategy) Sets the value ofCfnAliasProps.getRoutingStrategy()
routingStrategy
(CfnAlias.RoutingStrategyProperty routingStrategy) Sets the value ofCfnAliasProps.getRoutingStrategy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnAliasProps.getName()
- Parameters:
name
- A descriptive label that is associated with an alias. This parameter is required. Alias names do not need to be unique.- Returns:
this
-
routingStrategy
Sets the value ofCfnAliasProps.getRoutingStrategy()
- Parameters:
routingStrategy
- The routing configuration, including routing type and fleet target, for the alias. This parameter is required.- Returns:
this
-
routingStrategy
@Stability(Stable) public CfnAliasProps.Builder routingStrategy(CfnAlias.RoutingStrategyProperty routingStrategy) Sets the value ofCfnAliasProps.getRoutingStrategy()
- Parameters:
routingStrategy
- The routing configuration, including routing type and fleet target, for the alias. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnAliasProps.getDescription()
- Parameters:
description
- A human-readable description of the alias.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAliasProps>
- Returns:
- a new instance of
CfnAliasProps
- Throws:
NullPointerException
- if any required attribute was not provided
-