com.pulumi.aws.opsworks.outputs.MysqlLayerCloudwatchConfiguration 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.opsworks.outputs;
import com.pulumi.aws.opsworks.outputs.MysqlLayerCloudwatchConfigurationLogStream;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class MysqlLayerCloudwatchConfiguration {
private @Nullable Boolean enabled;
private @Nullable List logStreams;
private MysqlLayerCloudwatchConfiguration() {}
public Optional enabled() {
return Optional.ofNullable(this.enabled);
}
public List logStreams() {
return this.logStreams == null ? List.of() : this.logStreams;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(MysqlLayerCloudwatchConfiguration defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean enabled;
private @Nullable List logStreams;
public Builder() {}
public Builder(MysqlLayerCloudwatchConfiguration defaults) {
Objects.requireNonNull(defaults);
this.enabled = defaults.enabled;
this.logStreams = defaults.logStreams;
}
@CustomType.Setter
public Builder enabled(@Nullable Boolean enabled) {
this.enabled = enabled;
return this;
}
@CustomType.Setter
public Builder logStreams(@Nullable List logStreams) {
this.logStreams = logStreams;
return this;
}
public Builder logStreams(MysqlLayerCloudwatchConfigurationLogStream... logStreams) {
return logStreams(List.of(logStreams));
}
public MysqlLayerCloudwatchConfiguration build() {
final var _resultValue = new MysqlLayerCloudwatchConfiguration();
_resultValue.enabled = enabled;
_resultValue.logStreams = logStreams;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy