Class SourceConfig.Builder
java.lang.Object
software.amazon.awscdk.services.s3.deployment.SourceConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SourceConfig>
- Enclosing interface:
- SourceConfig
@Stability(Stable)
public static final class SourceConfig.Builder
extends Object
implements software.amazon.jsii.Builder<SourceConfig>
A builder for
SourceConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofSourceConfig.getBucket()build()Builds the configured instance.Sets the value ofSourceConfig.getMarkers()zipObjectKey(String zipObjectKey) Sets the value ofSourceConfig.getZipObjectKey()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofSourceConfig.getBucket()- Parameters:
bucket- The source bucket to deploy from. This parameter is required.- Returns:
this
-
zipObjectKey
Sets the value ofSourceConfig.getZipObjectKey()- Parameters:
zipObjectKey- An S3 object key in the source bucket that points to a zip file. This parameter is required.- Returns:
this
-
markers
Sets the value ofSourceConfig.getMarkers()- Parameters:
markers- A set of markers to substitute in the source content.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SourceConfig>- Returns:
- a new instance of
SourceConfig - Throws:
NullPointerException- if any required attribute was not provided
-