// *** 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.inputs;

import com.pulumi.aws.opsworks.inputs.CustomLayerCloudwatchConfigurationLogStreamArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class CustomLayerCloudwatchConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final CustomLayerCloudwatchConfigurationArgs Empty = new CustomLayerCloudwatchConfigurationArgs();

    @Import(name="enabled")
    private @Nullable Output<Boolean> enabled;

    public Optional<Output<Boolean>> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * A block the specifies how an opsworks logs look like. See Log Streams.
     * 
     */
    @Import(name="logStreams")
    private @Nullable Output<List<CustomLayerCloudwatchConfigurationLogStreamArgs>> logStreams;

    /**
     * @return A block the specifies how an opsworks logs look like. See Log Streams.
     * 
     */
    public Optional<Output<List<CustomLayerCloudwatchConfigurationLogStreamArgs>>> logStreams() {
        return Optional.ofNullable(this.logStreams);
    }

    private CustomLayerCloudwatchConfigurationArgs() {}

    private CustomLayerCloudwatchConfigurationArgs(CustomLayerCloudwatchConfigurationArgs $) {
        this.enabled = $.enabled;
        this.logStreams = $.logStreams;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(CustomLayerCloudwatchConfigurationArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private CustomLayerCloudwatchConfigurationArgs $;

        public Builder() {
            $ = new CustomLayerCloudwatchConfigurationArgs();
        }

        public Builder(CustomLayerCloudwatchConfigurationArgs defaults) {
            $ = new CustomLayerCloudwatchConfigurationArgs(Objects.requireNonNull(defaults));
        }

        public Builder enabled(@Nullable Output<Boolean> enabled) {
            $.enabled = enabled;
            return this;
        }

        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param logStreams A block the specifies how an opsworks logs look like. See Log Streams.
         * 
         * @return builder
         * 
         */
        public Builder logStreams(@Nullable Output<List<CustomLayerCloudwatchConfigurationLogStreamArgs>> logStreams) {
            $.logStreams = logStreams;
            return this;
        }

        /**
         * @param logStreams A block the specifies how an opsworks logs look like. See Log Streams.
         * 
         * @return builder
         * 
         */
        public Builder logStreams(List<CustomLayerCloudwatchConfigurationLogStreamArgs> logStreams) {
            return logStreams(Output.of(logStreams));
        }

        /**
         * @param logStreams A block the specifies how an opsworks logs look like. See Log Streams.
         * 
         * @return builder
         * 
         */
        public Builder logStreams(CustomLayerCloudwatchConfigurationLogStreamArgs... logStreams) {
            return logStreams(List.of(logStreams));
        }

        public CustomLayerCloudwatchConfigurationArgs build() {
            return $;
        }
    }

}
