Class CfnProject.CloudWatchLogsConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codebuild.CfnProject.CloudWatchLogsConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProject.CloudWatchLogsConfigProperty>
- Enclosing interface:
CfnProject.CloudWatchLogsConfigProperty
@Stability(Stable)
public static final class CfnProject.CloudWatchLogsConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProject.CloudWatchLogsConfigProperty>
A builder for
CfnProject.CloudWatchLogsConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnProject.CloudWatchLogsConfigProperty.getGroupName()Sets the value ofCfnProject.CloudWatchLogsConfigProperty.getStatus()streamName(String streamName) Sets the value ofCfnProject.CloudWatchLogsConfigProperty.getStreamName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
status
Sets the value ofCfnProject.CloudWatchLogsConfigProperty.getStatus()- Parameters:
status- The current status of the logs in CloudWatch Logs for a build project. Valid values are:. This parameter is required.ENABLED: CloudWatch Logs are enabled for this build project.DISABLED: CloudWatch Logs are not enabled for this build project.
- Returns:
this
-
groupName
@Stability(Stable) public CfnProject.CloudWatchLogsConfigProperty.Builder groupName(String groupName) Sets the value ofCfnProject.CloudWatchLogsConfigProperty.getGroupName()- Parameters:
groupName- The group name of the logs in CloudWatch Logs. For more information, see Working with Log Groups and Log Streams .- Returns:
this
-
streamName
@Stability(Stable) public CfnProject.CloudWatchLogsConfigProperty.Builder streamName(String streamName) Sets the value ofCfnProject.CloudWatchLogsConfigProperty.getStreamName()- Parameters:
streamName- The prefix of the stream name of the CloudWatch Logs. For more information, see Working with Log Groups and Log Streams .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnProject.CloudWatchLogsConfigProperty>- Returns:
- a new instance of
CfnProject.CloudWatchLogsConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-