Class BuildProps.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.alpha.BuildProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BuildProps>
- Enclosing interface:
BuildProps
@Stability(Experimental)
public static final class BuildProps.Builder
extends Object
implements software.amazon.jsii.Builder<BuildProps>
A builder for
BuildProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofBuildProps.getBuildName()buildVersion(String buildVersion) Sets the value ofBuildProps.getBuildVersion()Sets the value ofBuildProps.getContent()operatingSystem(OperatingSystem operatingSystem) Sets the value ofBuildProps.getOperatingSystem()Sets the value ofBuildProps.getRole()serverSdkVersion(String serverSdkVersion) Sets the value ofBuildProps.getServerSdkVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
content
Sets the value ofBuildProps.getContent()- Parameters:
content- The game build file storage. This parameter is required.- Returns:
this
-
buildName
Sets the value ofBuildProps.getBuildName()- Parameters:
buildName- Name of this build.- Returns:
this
-
buildVersion
Sets the value ofBuildProps.getBuildVersion()- Parameters:
buildVersion- Version of this build.- Returns:
this
-
operatingSystem
Sets the value ofBuildProps.getOperatingSystem()- Parameters:
operatingSystem- The operating system that the game server binaries are built to run on.- Returns:
this
-
role
Sets the value ofBuildProps.getRole()- Parameters:
role- The IAM role assumed by GameLift to access server build in S3. If providing a custom role, it needs to trust the GameLift service principal (gamelift.amazonaws.com) and be granted sufficient permissions to have Read access to a specific key content into a specific S3 bucket. Below an example of required permission: { "Version": "2012-10-17", "Statement": [{ "Effect": "Allow", "Action": [ "s3:GetObject", "s3:GetObjectVersion" ], "Resource": "arn:aws:s3:::bucket-name/object-name" }] }- Returns:
this
-
serverSdkVersion
Sets the value ofBuildProps.getServerSdkVersion()- Parameters:
serverSdkVersion- A server SDK version you used when integrating your game server build with Amazon GameLift.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<BuildProps>- Returns:
- a new instance of
BuildProps - Throws:
NullPointerException- if any required attribute was not provided
-