Class CfnBuild.StorageLocationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.CfnBuild.StorageLocationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBuild.StorageLocationProperty>
- Enclosing interface:
CfnBuild.StorageLocationProperty
@Stability(Stable)
public static final class CfnBuild.StorageLocationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBuild.StorageLocationProperty>
A builder for
CfnBuild.StorageLocationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnBuild.StorageLocationProperty.getBucket()
build()
Builds the configured instance.Sets the value ofCfnBuild.StorageLocationProperty.getKey()
objectVersion
(String objectVersion) Sets the value ofCfnBuild.StorageLocationProperty.getObjectVersion()
Sets the value ofCfnBuild.StorageLocationProperty.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofCfnBuild.StorageLocationProperty.getBucket()
- Parameters:
bucket
- An Amazon S3 bucket identifier. The name of the S3 bucket. This parameter is required.Amazon GameLift doesn't support uploading from Amazon S3 buckets with names that contain a dot (.).
- Returns:
this
-
key
Sets the value ofCfnBuild.StorageLocationProperty.getKey()
- Parameters:
key
- The name of the zip file that contains the build files or script files. This parameter is required.- Returns:
this
-
roleArn
Sets the value ofCfnBuild.StorageLocationProperty.getRoleArn()
- Parameters:
roleArn
- The ARNfor an IAM role that allows Amazon GameLift to access the S3 bucket. This parameter is required.- Returns:
this
-
objectVersion
@Stability(Stable) public CfnBuild.StorageLocationProperty.Builder objectVersion(String objectVersion) Sets the value ofCfnBuild.StorageLocationProperty.getObjectVersion()
- Parameters:
objectVersion
- A version of a stored file to retrieve, if the object versioning feature is turned on for the S3 bucket. Use this parameter to specify a specific version. If this parameter isn't set, Amazon GameLift retrieves the latest version of the file.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBuild.StorageLocationProperty>
- Returns:
- a new instance of
CfnBuild.StorageLocationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-