Class CfnProject.LogsConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codebuild.CfnProject.LogsConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProject.LogsConfigProperty>
- Enclosing interface:
- CfnProject.LogsConfigProperty
@Stability(Stable)
public static final class CfnProject.LogsConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProject.LogsConfigProperty>
A builder for
CfnProject.LogsConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cloudWatchLogs(IResolvable cloudWatchLogs) Sets the value ofCfnProject.LogsConfigProperty.getCloudWatchLogs()cloudWatchLogs(CfnProject.CloudWatchLogsConfigProperty cloudWatchLogs) Sets the value ofCfnProject.LogsConfigProperty.getCloudWatchLogs()s3Logs(IResolvable s3Logs) Sets the value ofCfnProject.LogsConfigProperty.getS3Logs()Sets the value ofCfnProject.LogsConfigProperty.getS3Logs()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cloudWatchLogs
@Stability(Stable) public CfnProject.LogsConfigProperty.Builder cloudWatchLogs(IResolvable cloudWatchLogs) Sets the value ofCfnProject.LogsConfigProperty.getCloudWatchLogs()- Parameters:
cloudWatchLogs- Information about CloudWatch Logs for a build project. CloudWatch Logs are enabled by default.- Returns:
this
-
cloudWatchLogs
@Stability(Stable) public CfnProject.LogsConfigProperty.Builder cloudWatchLogs(CfnProject.CloudWatchLogsConfigProperty cloudWatchLogs) Sets the value ofCfnProject.LogsConfigProperty.getCloudWatchLogs()- Parameters:
cloudWatchLogs- Information about CloudWatch Logs for a build project. CloudWatch Logs are enabled by default.- Returns:
this
-
s3Logs
Sets the value ofCfnProject.LogsConfigProperty.getS3Logs()- Parameters:
s3Logs- Information about logs built to an S3 bucket for a build project. S3 logs are not enabled by default.- Returns:
this
-
s3Logs
@Stability(Stable) public CfnProject.LogsConfigProperty.Builder s3Logs(CfnProject.S3LogsConfigProperty s3Logs) Sets the value ofCfnProject.LogsConfigProperty.getS3Logs()- Parameters:
s3Logs- Information about logs built to an S3 bucket for a build project. S3 logs are not enabled by default.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnProject.LogsConfigProperty>- Returns:
- a new instance of
CfnProject.LogsConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-