com.pulumi.aws.codebuild.outputs.ProjectLogsConfigCloudwatchLogs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.codebuild.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ProjectLogsConfigCloudwatchLogs {
/**
* @return Group name of the logs in CloudWatch Logs.
*
*/
private @Nullable String groupName;
/**
* @return Current status of logs in CloudWatch Logs for a build project. Valid values: `ENABLED`, `DISABLED`. Defaults to `ENABLED`.
*
*/
private @Nullable String status;
/**
* @return Prefix of the log stream name of the logs in CloudWatch Logs.
*
*/
private @Nullable String streamName;
private ProjectLogsConfigCloudwatchLogs() {}
/**
* @return Group name of the logs in CloudWatch Logs.
*
*/
public Optional groupName() {
return Optional.ofNullable(this.groupName);
}
/**
* @return Current status of logs in CloudWatch Logs for a build project. Valid values: `ENABLED`, `DISABLED`. Defaults to `ENABLED`.
*
*/
public Optional status() {
return Optional.ofNullable(this.status);
}
/**
* @return Prefix of the log stream name of the logs in CloudWatch Logs.
*
*/
public Optional streamName() {
return Optional.ofNullable(this.streamName);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ProjectLogsConfigCloudwatchLogs defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String groupName;
private @Nullable String status;
private @Nullable String streamName;
public Builder() {}
public Builder(ProjectLogsConfigCloudwatchLogs defaults) {
Objects.requireNonNull(defaults);
this.groupName = defaults.groupName;
this.status = defaults.status;
this.streamName = defaults.streamName;
}
@CustomType.Setter
public Builder groupName(@Nullable String groupName) {
this.groupName = groupName;
return this;
}
@CustomType.Setter
public Builder status(@Nullable String status) {
this.status = status;
return this;
}
@CustomType.Setter
public Builder streamName(@Nullable String streamName) {
this.streamName = streamName;
return this;
}
public ProjectLogsConfigCloudwatchLogs build() {
final var _resultValue = new ProjectLogsConfigCloudwatchLogs();
_resultValue.groupName = groupName;
_resultValue.status = status;
_resultValue.streamName = streamName;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy