Class CloudWatchLoggingOptions.Builder
java.lang.Object
software.amazon.awscdk.services.codebuild.CloudWatchLoggingOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudWatchLoggingOptions>
- Enclosing interface:
CloudWatchLoggingOptions
@Stability(Stable)
public static final class CloudWatchLoggingOptions.Builder
extends Object
implements software.amazon.jsii.Builder<CloudWatchLoggingOptions>
A builder for
CloudWatchLoggingOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCloudWatchLoggingOptions.getEnabled()
Sets the value ofCloudWatchLoggingOptions.getLogGroup()
Sets the value ofCloudWatchLoggingOptions.getPrefix()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
Sets the value ofCloudWatchLoggingOptions.getEnabled()
- Parameters:
enabled
- The current status of the logs in Amazon CloudWatch Logs for a build project.- Returns:
this
-
logGroup
Sets the value ofCloudWatchLoggingOptions.getLogGroup()
- Parameters:
logGroup
- The Log Group to send logs to.- Returns:
this
-
prefix
Sets the value ofCloudWatchLoggingOptions.getPrefix()
- Parameters:
prefix
- The prefix of the stream name of the Amazon CloudWatch Logs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CloudWatchLoggingOptions>
- Returns:
- a new instance of
CloudWatchLoggingOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-