Class GameServerGroupAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.alpha.GameServerGroupAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GameServerGroupAttributes>
- Enclosing interface:
GameServerGroupAttributes
@Stability(Experimental)
public static final class GameServerGroupAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<GameServerGroupAttributes>
A builder for
GameServerGroupAttributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoScalingGroupArn(String autoScalingGroupArn) Sets the value ofGameServerGroupAttributes.getAutoScalingGroupArn()build()Builds the configured instance.gameServerGroupArn(String gameServerGroupArn) Sets the value ofGameServerGroupAttributes.getGameServerGroupArn()gameServerGroupName(String gameServerGroupName) Sets the value ofGameServerGroupAttributes.getGameServerGroupName()Sets the value ofGameServerGroupAttributes.getRole()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
autoScalingGroupArn
@Stability(Experimental) public GameServerGroupAttributes.Builder autoScalingGroupArn(String autoScalingGroupArn) Sets the value ofGameServerGroupAttributes.getAutoScalingGroupArn()- Parameters:
autoScalingGroupArn- The ARN of the generated AutoScaling group. This parameter is required.- Returns:
this
-
gameServerGroupArn
@Stability(Experimental) public GameServerGroupAttributes.Builder gameServerGroupArn(String gameServerGroupArn) Sets the value ofGameServerGroupAttributes.getGameServerGroupArn()- Parameters:
gameServerGroupArn- The ARN of the game server group. At least one ofgameServerGroupArnandgameServerGroupNamemust be provided.- Returns:
this
-
gameServerGroupName
@Stability(Experimental) public GameServerGroupAttributes.Builder gameServerGroupName(String gameServerGroupName) Sets the value ofGameServerGroupAttributes.getGameServerGroupName()- Parameters:
gameServerGroupName- The name of the game server group. At least one ofgameServerGroupArnandgameServerGroupNamemust be provided.- Returns:
this
-
role
Sets the value ofGameServerGroupAttributes.getRole()- Parameters:
role- The IAM role that allows Amazon GameLift to access your Amazon EC2 Auto Scaling groups.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GameServerGroupAttributes>- Returns:
- a new instance of
GameServerGroupAttributes - Throws:
NullPointerException- if any required attribute was not provided
-