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