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 Details

    • Builder

      public Builder()
  • Method Details

    • content

      @Stability(Experimental) public BuildProps.Builder content(Content content)
      Sets the value of BuildProps.getContent()
      Parameters:
      content - The game build file storage. This parameter is required.
      Returns:
      this
    • buildName

      @Stability(Experimental) public BuildProps.Builder buildName(String buildName)
      Sets the value of BuildProps.getBuildName()
      Parameters:
      buildName - Name of this build.
      Returns:
      this
    • buildVersion

      @Stability(Experimental) public BuildProps.Builder buildVersion(String buildVersion)
      Parameters:
      buildVersion - Version of this build.
      Returns:
      this
    • operatingSystem

      @Stability(Experimental) public BuildProps.Builder operatingSystem(OperatingSystem operatingSystem)
      Parameters:
      operatingSystem - The operating system that the game server binaries are built to run on.
      Returns:
      this
    • role

      @Stability(Experimental) public BuildProps.Builder role(IRole role)
      Sets the value of BuildProps.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

      @Stability(Experimental) public BuildProps.Builder serverSdkVersion(String serverSdkVersion)
      Parameters:
      serverSdkVersion - A server SDK version you used when integrating your game server build with Amazon GameLift.
      Returns:
      this
    • build

      @Stability(Experimental) public BuildProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<BuildProps>
      Returns:
      a new instance of BuildProps
      Throws:
      NullPointerException - if any required attribute was not provided