Class CfnRepositoryPropsMixin.S3Property.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.codecommit.CfnRepositoryPropsMixin.S3Property.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRepositoryPropsMixin.S3Property>
- Enclosing interface:
CfnRepositoryPropsMixin.S3Property
@Stability(Stable)
public static final class CfnRepositoryPropsMixin.S3Property.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRepositoryPropsMixin.S3Property>
A builder for
CfnRepositoryPropsMixin.S3Property-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnRepositoryPropsMixin.S3Property.getBucket()build()Builds the configured instance.Sets the value ofCfnRepositoryPropsMixin.S3Property.getKey()objectVersion(String objectVersion) Sets the value ofCfnRepositoryPropsMixin.S3Property.getObjectVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofCfnRepositoryPropsMixin.S3Property.getBucket()- Parameters:
bucket- The name of the Amazon S3 bucket that contains the ZIP file with the content that will be committed to the new repository. This can be specified using the name of the bucket in the AWS account . Changes to this property are ignored after initial resource creation.- Returns:
this
-
key
Sets the value ofCfnRepositoryPropsMixin.S3Property.getKey()- Parameters:
key- The key to use for accessing the Amazon S3 bucket. Changes to this property are ignored after initial resource creation. For more information, see Creating object key names and Uploading objects in the Amazon S3 User Guide.- Returns:
this
-
objectVersion
@Stability(Stable) public CfnRepositoryPropsMixin.S3Property.Builder objectVersion(String objectVersion) Sets the value ofCfnRepositoryPropsMixin.S3Property.getObjectVersion()- Parameters:
objectVersion- The object version of the ZIP file, if versioning is enabled for the Amazon S3 bucket. Changes to this property are ignored after initial resource creation.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRepositoryPropsMixin.S3Property>- Returns:
- a new instance of
CfnRepositoryPropsMixin.S3Property - Throws:
NullPointerException- if any required attribute was not provided
-