Class S3ArtifactsProps.Builder
java.lang.Object
software.amazon.awscdk.services.codebuild.S3ArtifactsProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<S3ArtifactsProps>
- Enclosing interface:
S3ArtifactsProps
@Stability(Stable)
public static final class S3ArtifactsProps.Builder
extends Object
implements software.amazon.jsii.Builder<S3ArtifactsProps>
A builder for
S3ArtifactsProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofS3ArtifactsProps.getBucket()build()Builds the configured instance.encryption(Boolean encryption) Sets the value ofS3ArtifactsProps.getEncryption()identifier(String identifier) Sets the value ofArtifactsProps.getIdentifier()includeBuildId(Boolean includeBuildId) Sets the value ofS3ArtifactsProps.getIncludeBuildId()Sets the value ofS3ArtifactsProps.getName()packageZip(Boolean packageZip) Sets the value ofS3ArtifactsProps.getPackageZip()Sets the value ofS3ArtifactsProps.getPath()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofS3ArtifactsProps.getBucket()- Parameters:
bucket- The name of the output bucket. This parameter is required.- Returns:
this
-
encryption
Sets the value ofS3ArtifactsProps.getEncryption()- Parameters:
encryption- If this is false, build output will not be encrypted. This is useful if the artifact to publish a static website or sharing content with others- Returns:
this
-
includeBuildId
Sets the value ofS3ArtifactsProps.getIncludeBuildId()- Parameters:
includeBuildId- Indicates if the build ID should be included in the path. If this is set to true, then the build artifact will be stored in "/invalid input: '<'build-id>/ ". - Returns:
this
-
name
Sets the value ofS3ArtifactsProps.getName()- Parameters:
name- The name of the build output ZIP file or folder inside the bucket. The full S3 object key will be "/invalid input: '<'build-id>/ " or " / " depending on whether includeBuildIdis set to true.If not set,
overrideArtifactNamewill be set and the name from the buildspec will be used instead.- Returns:
this
-
packageZip
Sets the value ofS3ArtifactsProps.getPackageZip()- Parameters:
packageZip- If this is true, all build output will be packaged into a single .zip file. Otherwise, all files will be uploaded to/ . - Returns:
this
-
path
Sets the value ofS3ArtifactsProps.getPath()- Parameters:
path- The path inside of the bucket for the build output .zip file or folder. If a value is not specified, then build output will be stored at the root of the bucket (or under the invalid input: '<'build-id> directory ifincludeBuildIdis set to true).- Returns:
this
-
identifier
Sets the value ofArtifactsProps.getIdentifier()- Parameters:
identifier- The artifact identifier. This property is required on secondary artifacts.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<S3ArtifactsProps>- Returns:
- a new instance of
S3ArtifactsProps - Throws:
NullPointerException- if any required attribute was not provided
-