Class CfnBuild.Builder

java.lang.Object
software.amazon.awscdk.services.gamelift.CfnBuild.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBuild>
Enclosing class:
CfnBuild

@Stability(Stable) public static final class CfnBuild.Builder extends Object implements software.amazon.jsii.Builder<CfnBuild>
A fluent builder for CfnBuild.
  • Method Details

    • create

      @Stability(Stable) public static CfnBuild.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnBuild.Builder.
    • name

      @Stability(Stable) public CfnBuild.Builder name(String name)
      A descriptive label that is associated with a build.

      Build names do not need to be unique.

      Parameters:
      name - A descriptive label that is associated with a build. This parameter is required.
      Returns:
      this
    • operatingSystem

      @Stability(Stable) public CfnBuild.Builder operatingSystem(String operatingSystem)
      The operating system that your game server binaries run on.

      This value determines the type of fleet resources that you use for this build. If your game build contains multiple executables, they all must run on the same operating system. You must specify a valid operating system in this request. There is no default value. You can't change a build's operating system later.

      If you have active fleets using the Windows Server 2012 operating system, you can continue to create new builds using this OS until October 10, 2023, when Microsoft ends its support. All others must use Windows Server 2016 when creating new Windows-based builds.

      Parameters:
      operatingSystem - The operating system that your game server binaries run on. This parameter is required.
      Returns:
      this
    • serverSdkVersion

      @Stability(Stable) public CfnBuild.Builder serverSdkVersion(String serverSdkVersion)
      The Amazon GameLift Server SDK version used to develop your game server.

      Parameters:
      serverSdkVersion - The Amazon GameLift Server SDK version used to develop your game server. This parameter is required.
      Returns:
      this
    • storageLocation

      @Stability(Stable) public CfnBuild.Builder storageLocation(IResolvable storageLocation)
      Information indicating where your game build files are stored.

      Use this parameter only when creating a build with files stored in an Amazon S3 bucket that you own. The storage location must specify an Amazon S3 bucket name and key. The location must also specify a role ARN that you set up to allow Amazon GameLift to access your Amazon S3 bucket. The S3 bucket and your new build must be in the same Region.

      If a StorageLocation is specified, the size of your file can be found in your Amazon S3 bucket. Amazon GameLift will report a SizeOnDisk of 0.

      Parameters:
      storageLocation - Information indicating where your game build files are stored. This parameter is required.
      Returns:
      this
    • storageLocation

      @Stability(Stable) public CfnBuild.Builder storageLocation(CfnBuild.StorageLocationProperty storageLocation)
      Information indicating where your game build files are stored.

      Use this parameter only when creating a build with files stored in an Amazon S3 bucket that you own. The storage location must specify an Amazon S3 bucket name and key. The location must also specify a role ARN that you set up to allow Amazon GameLift to access your Amazon S3 bucket. The S3 bucket and your new build must be in the same Region.

      If a StorageLocation is specified, the size of your file can be found in your Amazon S3 bucket. Amazon GameLift will report a SizeOnDisk of 0.

      Parameters:
      storageLocation - Information indicating where your game build files are stored. This parameter is required.
      Returns:
      this
    • version

      @Stability(Stable) public CfnBuild.Builder version(String version)
      Version information that is associated with this build.

      Version strings do not need to be unique.

      Parameters:
      version - Version information that is associated with this build. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnBuild build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnBuild>
      Returns:
      a newly built instance of CfnBuild.