Class S3LoggingOptions.Builder
java.lang.Object
software.amazon.awscdk.services.codebuild.S3LoggingOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<S3LoggingOptions>
- Enclosing interface:
S3LoggingOptions
@Stability(Stable)
public static final class S3LoggingOptions.Builder
extends Object
implements software.amazon.jsii.Builder<S3LoggingOptions>
A builder for
S3LoggingOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofS3LoggingOptions.getBucket()
build()
Builds the configured instance.Sets the value ofS3LoggingOptions.getEnabled()
Sets the value ofS3LoggingOptions.getEncrypted()
Sets the value ofS3LoggingOptions.getPrefix()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofS3LoggingOptions.getBucket()
- Parameters:
bucket
- The S3 Bucket to send logs to. This parameter is required.- Returns:
this
-
enabled
Sets the value ofS3LoggingOptions.getEnabled()
- Parameters:
enabled
- The current status of the logs in Amazon CloudWatch Logs for a build project.- Returns:
this
-
encrypted
Sets the value ofS3LoggingOptions.getEncrypted()
- Parameters:
encrypted
- Encrypt the S3 build log output.- Returns:
this
-
prefix
Sets the value ofS3LoggingOptions.getPrefix()
- Parameters:
prefix
- The path prefix for S3 logs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<S3LoggingOptions>
- Returns:
- a new instance of
S3LoggingOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-