All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.opsworks.inputs.NodejsAppLayerCloudwatchConfigurationLogStreamArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show newest version
// *** 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.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final NodejsAppLayerCloudwatchConfigurationLogStreamArgs Empty = new NodejsAppLayerCloudwatchConfigurationLogStreamArgs();

    @Import(name="batchCount")
    private @Nullable Output batchCount;

    public Optional> batchCount() {
        return Optional.ofNullable(this.batchCount);
    }

    @Import(name="batchSize")
    private @Nullable Output batchSize;

    public Optional> batchSize() {
        return Optional.ofNullable(this.batchSize);
    }

    @Import(name="bufferDuration")
    private @Nullable Output bufferDuration;

    public Optional> bufferDuration() {
        return Optional.ofNullable(this.bufferDuration);
    }

    @Import(name="datetimeFormat")
    private @Nullable Output datetimeFormat;

    public Optional> datetimeFormat() {
        return Optional.ofNullable(this.datetimeFormat);
    }

    @Import(name="encoding")
    private @Nullable Output encoding;

    public Optional> encoding() {
        return Optional.ofNullable(this.encoding);
    }

    @Import(name="file", required=true)
    private Output file;

    public Output file() {
        return this.file;
    }

    @Import(name="fileFingerprintLines")
    private @Nullable Output fileFingerprintLines;

    public Optional> fileFingerprintLines() {
        return Optional.ofNullable(this.fileFingerprintLines);
    }

    @Import(name="initialPosition")
    private @Nullable Output initialPosition;

    public Optional> initialPosition() {
        return Optional.ofNullable(this.initialPosition);
    }

    @Import(name="logGroupName", required=true)
    private Output logGroupName;

    public Output logGroupName() {
        return this.logGroupName;
    }

    @Import(name="multilineStartPattern")
    private @Nullable Output multilineStartPattern;

    public Optional> multilineStartPattern() {
        return Optional.ofNullable(this.multilineStartPattern);
    }

    @Import(name="timeZone")
    private @Nullable Output timeZone;

    public Optional> timeZone() {
        return Optional.ofNullable(this.timeZone);
    }

    private NodejsAppLayerCloudwatchConfigurationLogStreamArgs() {}

    private NodejsAppLayerCloudwatchConfigurationLogStreamArgs(NodejsAppLayerCloudwatchConfigurationLogStreamArgs $) {
        this.batchCount = $.batchCount;
        this.batchSize = $.batchSize;
        this.bufferDuration = $.bufferDuration;
        this.datetimeFormat = $.datetimeFormat;
        this.encoding = $.encoding;
        this.file = $.file;
        this.fileFingerprintLines = $.fileFingerprintLines;
        this.initialPosition = $.initialPosition;
        this.logGroupName = $.logGroupName;
        this.multilineStartPattern = $.multilineStartPattern;
        this.timeZone = $.timeZone;
    }

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

    public static final class Builder {
        private NodejsAppLayerCloudwatchConfigurationLogStreamArgs $;

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

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

        public Builder batchCount(@Nullable Output batchCount) {
            $.batchCount = batchCount;
            return this;
        }

        public Builder batchCount(Integer batchCount) {
            return batchCount(Output.of(batchCount));
        }

        public Builder batchSize(@Nullable Output batchSize) {
            $.batchSize = batchSize;
            return this;
        }

        public Builder batchSize(Integer batchSize) {
            return batchSize(Output.of(batchSize));
        }

        public Builder bufferDuration(@Nullable Output bufferDuration) {
            $.bufferDuration = bufferDuration;
            return this;
        }

        public Builder bufferDuration(Integer bufferDuration) {
            return bufferDuration(Output.of(bufferDuration));
        }

        public Builder datetimeFormat(@Nullable Output datetimeFormat) {
            $.datetimeFormat = datetimeFormat;
            return this;
        }

        public Builder datetimeFormat(String datetimeFormat) {
            return datetimeFormat(Output.of(datetimeFormat));
        }

        public Builder encoding(@Nullable Output encoding) {
            $.encoding = encoding;
            return this;
        }

        public Builder encoding(String encoding) {
            return encoding(Output.of(encoding));
        }

        public Builder file(Output file) {
            $.file = file;
            return this;
        }

        public Builder file(String file) {
            return file(Output.of(file));
        }

        public Builder fileFingerprintLines(@Nullable Output fileFingerprintLines) {
            $.fileFingerprintLines = fileFingerprintLines;
            return this;
        }

        public Builder fileFingerprintLines(String fileFingerprintLines) {
            return fileFingerprintLines(Output.of(fileFingerprintLines));
        }

        public Builder initialPosition(@Nullable Output initialPosition) {
            $.initialPosition = initialPosition;
            return this;
        }

        public Builder initialPosition(String initialPosition) {
            return initialPosition(Output.of(initialPosition));
        }

        public Builder logGroupName(Output logGroupName) {
            $.logGroupName = logGroupName;
            return this;
        }

        public Builder logGroupName(String logGroupName) {
            return logGroupName(Output.of(logGroupName));
        }

        public Builder multilineStartPattern(@Nullable Output multilineStartPattern) {
            $.multilineStartPattern = multilineStartPattern;
            return this;
        }

        public Builder multilineStartPattern(String multilineStartPattern) {
            return multilineStartPattern(Output.of(multilineStartPattern));
        }

        public Builder timeZone(@Nullable Output timeZone) {
            $.timeZone = timeZone;
            return this;
        }

        public Builder timeZone(String timeZone) {
            return timeZone(Output.of(timeZone));
        }

        public NodejsAppLayerCloudwatchConfigurationLogStreamArgs build() {
            if ($.file == null) {
                throw new MissingRequiredPropertyException("NodejsAppLayerCloudwatchConfigurationLogStreamArgs", "file");
            }
            if ($.logGroupName == null) {
                throw new MissingRequiredPropertyException("NodejsAppLayerCloudwatchConfigurationLogStreamArgs", "logGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy