Class CfnGitHubRepository.S3Property.Builder
java.lang.Object
software.amazon.awscdk.services.codestar.CfnGitHubRepository.S3Property.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGitHubRepository.S3Property>
- Enclosing interface:
CfnGitHubRepository.S3Property
@Stability(Stable)
public static final class CfnGitHubRepository.S3Property.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGitHubRepository.S3Property>
A builder for
CfnGitHubRepository.S3Property-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnGitHubRepository.S3Property.getBucket()build()Builds the configured instance.Sets the value ofCfnGitHubRepository.S3Property.getKey()objectVersion(String objectVersion) Sets the value ofCfnGitHubRepository.S3Property.getObjectVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofCfnGitHubRepository.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. This parameter is required.- Returns:
this
-
key
Sets the value ofCfnGitHubRepository.S3Property.getKey()- Parameters:
key- The S3 object key or file name for the ZIP file. This parameter is required.- Returns:
this
-
objectVersion
@Stability(Stable) public CfnGitHubRepository.S3Property.Builder objectVersion(String objectVersion) Sets the value ofCfnGitHubRepository.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<CfnGitHubRepository.S3Property>- Returns:
- a new instance of
CfnGitHubRepository.S3Property - Throws:
NullPointerException- if any required attribute was not provided
-