Class CfnGitHubRepositoryPropsMixin.S3Property.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.codestar.CfnGitHubRepositoryPropsMixin.S3Property.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGitHubRepositoryPropsMixin.S3Property>
- Enclosing interface:
CfnGitHubRepositoryPropsMixin.S3Property
@Stability(Stable)
public static final class CfnGitHubRepositoryPropsMixin.S3Property.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGitHubRepositoryPropsMixin.S3Property>
A builder for
CfnGitHubRepositoryPropsMixin.S3Property-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnGitHubRepositoryPropsMixin.S3Property.getBucket()build()Builds the configured instance.Sets the value ofCfnGitHubRepositoryPropsMixin.S3Property.getKey()objectVersion(String objectVersion) Sets the value ofCfnGitHubRepositoryPropsMixin.S3Property.getObjectVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofCfnGitHubRepositoryPropsMixin.S3Property.getBucket()- Parameters:
bucket- The name of the Amazon S3 bucket that contains the ZIP file with the content to be committed to the new repository.- Returns:
this
-
key
Sets the value ofCfnGitHubRepositoryPropsMixin.S3Property.getKey()- Parameters:
key- The S3 object key or file name for the ZIP file.- Returns:
this
-
objectVersion
@Stability(Stable) public CfnGitHubRepositoryPropsMixin.S3Property.Builder objectVersion(String objectVersion) Sets the value ofCfnGitHubRepositoryPropsMixin.S3Property.getObjectVersion()- Parameters:
objectVersion- The object version of the ZIP file, if versioning is enabled for the Amazon S3 bucket.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGitHubRepositoryPropsMixin.S3Property>- Returns:
- a new instance of
CfnGitHubRepositoryPropsMixin.S3Property - Throws:
NullPointerException- if any required attribute was not provided
-