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

com.pulumi.aws.opsworks.outputs.JavaAppLayerCloudwatchConfigurationLogStream 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.outputs;

import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class JavaAppLayerCloudwatchConfigurationLogStream {
    private @Nullable Integer batchCount;
    private @Nullable Integer batchSize;
    private @Nullable Integer bufferDuration;
    private @Nullable String datetimeFormat;
    private @Nullable String encoding;
    private String file;
    private @Nullable String fileFingerprintLines;
    private @Nullable String initialPosition;
    private String logGroupName;
    private @Nullable String multilineStartPattern;
    private @Nullable String timeZone;

    private JavaAppLayerCloudwatchConfigurationLogStream() {}
    public Optional batchCount() {
        return Optional.ofNullable(this.batchCount);
    }
    public Optional batchSize() {
        return Optional.ofNullable(this.batchSize);
    }
    public Optional bufferDuration() {
        return Optional.ofNullable(this.bufferDuration);
    }
    public Optional datetimeFormat() {
        return Optional.ofNullable(this.datetimeFormat);
    }
    public Optional encoding() {
        return Optional.ofNullable(this.encoding);
    }
    public String file() {
        return this.file;
    }
    public Optional fileFingerprintLines() {
        return Optional.ofNullable(this.fileFingerprintLines);
    }
    public Optional initialPosition() {
        return Optional.ofNullable(this.initialPosition);
    }
    public String logGroupName() {
        return this.logGroupName;
    }
    public Optional multilineStartPattern() {
        return Optional.ofNullable(this.multilineStartPattern);
    }
    public Optional timeZone() {
        return Optional.ofNullable(this.timeZone);
    }

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

    public static Builder builder(JavaAppLayerCloudwatchConfigurationLogStream defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer batchCount;
        private @Nullable Integer batchSize;
        private @Nullable Integer bufferDuration;
        private @Nullable String datetimeFormat;
        private @Nullable String encoding;
        private String file;
        private @Nullable String fileFingerprintLines;
        private @Nullable String initialPosition;
        private String logGroupName;
        private @Nullable String multilineStartPattern;
        private @Nullable String timeZone;
        public Builder() {}
        public Builder(JavaAppLayerCloudwatchConfigurationLogStream defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.batchCount = defaults.batchCount;
    	      this.batchSize = defaults.batchSize;
    	      this.bufferDuration = defaults.bufferDuration;
    	      this.datetimeFormat = defaults.datetimeFormat;
    	      this.encoding = defaults.encoding;
    	      this.file = defaults.file;
    	      this.fileFingerprintLines = defaults.fileFingerprintLines;
    	      this.initialPosition = defaults.initialPosition;
    	      this.logGroupName = defaults.logGroupName;
    	      this.multilineStartPattern = defaults.multilineStartPattern;
    	      this.timeZone = defaults.timeZone;
        }

        @CustomType.Setter
        public Builder batchCount(@Nullable Integer batchCount) {

            this.batchCount = batchCount;
            return this;
        }
        @CustomType.Setter
        public Builder batchSize(@Nullable Integer batchSize) {

            this.batchSize = batchSize;
            return this;
        }
        @CustomType.Setter
        public Builder bufferDuration(@Nullable Integer bufferDuration) {

            this.bufferDuration = bufferDuration;
            return this;
        }
        @CustomType.Setter
        public Builder datetimeFormat(@Nullable String datetimeFormat) {

            this.datetimeFormat = datetimeFormat;
            return this;
        }
        @CustomType.Setter
        public Builder encoding(@Nullable String encoding) {

            this.encoding = encoding;
            return this;
        }
        @CustomType.Setter
        public Builder file(String file) {
            if (file == null) {
              throw new MissingRequiredPropertyException("JavaAppLayerCloudwatchConfigurationLogStream", "file");
            }
            this.file = file;
            return this;
        }
        @CustomType.Setter
        public Builder fileFingerprintLines(@Nullable String fileFingerprintLines) {

            this.fileFingerprintLines = fileFingerprintLines;
            return this;
        }
        @CustomType.Setter
        public Builder initialPosition(@Nullable String initialPosition) {

            this.initialPosition = initialPosition;
            return this;
        }
        @CustomType.Setter
        public Builder logGroupName(String logGroupName) {
            if (logGroupName == null) {
              throw new MissingRequiredPropertyException("JavaAppLayerCloudwatchConfigurationLogStream", "logGroupName");
            }
            this.logGroupName = logGroupName;
            return this;
        }
        @CustomType.Setter
        public Builder multilineStartPattern(@Nullable String multilineStartPattern) {

            this.multilineStartPattern = multilineStartPattern;
            return this;
        }
        @CustomType.Setter
        public Builder timeZone(@Nullable String timeZone) {

            this.timeZone = timeZone;
            return this;
        }
        public JavaAppLayerCloudwatchConfigurationLogStream build() {
            final var _resultValue = new JavaAppLayerCloudwatchConfigurationLogStream();
            _resultValue.batchCount = batchCount;
            _resultValue.batchSize = batchSize;
            _resultValue.bufferDuration = bufferDuration;
            _resultValue.datetimeFormat = datetimeFormat;
            _resultValue.encoding = encoding;
            _resultValue.file = file;
            _resultValue.fileFingerprintLines = fileFingerprintLines;
            _resultValue.initialPosition = initialPosition;
            _resultValue.logGroupName = logGroupName;
            _resultValue.multilineStartPattern = multilineStartPattern;
            _resultValue.timeZone = timeZone;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy