Class CfnProject.S3LogsConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codebuild.CfnProject.S3LogsConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProject.S3LogsConfigProperty>
- Enclosing interface:
CfnProject.S3LogsConfigProperty
@Stability(Stable)
public static final class CfnProject.S3LogsConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProject.S3LogsConfigProperty>
A builder for
CfnProject.S3LogsConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.encryptionDisabled
(Boolean encryptionDisabled) Sets the value ofCfnProject.S3LogsConfigProperty.getEncryptionDisabled()
encryptionDisabled
(IResolvable encryptionDisabled) Sets the value ofCfnProject.S3LogsConfigProperty.getEncryptionDisabled()
Sets the value ofCfnProject.S3LogsConfigProperty.getLocation()
Sets the value ofCfnProject.S3LogsConfigProperty.getStatus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
status
Sets the value ofCfnProject.S3LogsConfigProperty.getStatus()
- Parameters:
status
- The current status of the S3 build logs. Valid values are:. This parameter is required.ENABLED
: S3 build logs are enabled for this build project.DISABLED
: S3 build logs are not enabled for this build project.
- Returns:
this
-
encryptionDisabled
@Stability(Stable) public CfnProject.S3LogsConfigProperty.Builder encryptionDisabled(Boolean encryptionDisabled) Sets the value ofCfnProject.S3LogsConfigProperty.getEncryptionDisabled()
- Parameters:
encryptionDisabled
- Set to true if you do not want your S3 build log output encrypted. By default S3 build logs are encrypted.- Returns:
this
-
encryptionDisabled
@Stability(Stable) public CfnProject.S3LogsConfigProperty.Builder encryptionDisabled(IResolvable encryptionDisabled) Sets the value ofCfnProject.S3LogsConfigProperty.getEncryptionDisabled()
- Parameters:
encryptionDisabled
- Set to true if you do not want your S3 build log output encrypted. By default S3 build logs are encrypted.- Returns:
this
-
location
Sets the value ofCfnProject.S3LogsConfigProperty.getLocation()
- Parameters:
location
- The ARN of an S3 bucket and the path prefix for S3 logs. If your Amazon S3 bucket name ismy-bucket
, and your path prefix isbuild-log
, then acceptable formats aremy-bucket/build-log
orarn:aws:s3:::my-bucket/build-log
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnProject.S3LogsConfigProperty>
- Returns:
- a new instance of
CfnProject.S3LogsConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-