Class CfnBuildPropsMixin.StorageLocationProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.gamelift.mixins.CfnBuildPropsMixin.StorageLocationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBuildPropsMixin.StorageLocationProperty>
- Enclosing interface:
CfnBuildPropsMixin.StorageLocationProperty
@Stability(Stable)
public static final class CfnBuildPropsMixin.StorageLocationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBuildPropsMixin.StorageLocationProperty>
A builder for
CfnBuildPropsMixin.StorageLocationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnBuildPropsMixin.StorageLocationProperty.getBucket()build()Builds the configured instance.Sets the value ofCfnBuildPropsMixin.StorageLocationProperty.getKey()objectVersion(String objectVersion) Sets the value ofCfnBuildPropsMixin.StorageLocationProperty.getObjectVersion()Sets the value ofCfnBuildPropsMixin.StorageLocationProperty.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofCfnBuildPropsMixin.StorageLocationProperty.getBucket()- Parameters:
bucket- An Amazon S3 bucket identifier. The name of the S3 bucket.Amazon GameLift doesn't support uploading from Amazon S3 buckets with names that contain a dot (.).
- Returns:
this
-
key
Sets the value ofCfnBuildPropsMixin.StorageLocationProperty.getKey()- Parameters:
key- The name of the zip file that contains the build files or script files.- Returns:
this
-
objectVersion
@Stability(Stable) public CfnBuildPropsMixin.StorageLocationProperty.Builder objectVersion(String objectVersion) Sets the value ofCfnBuildPropsMixin.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 Servers retrieves the latest version of the file.- Returns:
this
-
roleArn
@Stability(Stable) public CfnBuildPropsMixin.StorageLocationProperty.Builder roleArn(String roleArn) Sets the value ofCfnBuildPropsMixin.StorageLocationProperty.getRoleArn()- Parameters:
roleArn- The ARNfor an IAM role that allows Amazon GameLift to access the S3 bucket.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBuildPropsMixin.StorageLocationProperty>- Returns:
- a new instance of
CfnBuildPropsMixin.StorageLocationProperty - Throws:
NullPointerException- if any required attribute was not provided
-