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

com.pulumi.sumologic.CloudwatchSourceArgs Maven / Gradle / Ivy

The 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.sumologic;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.sumologic.inputs.CloudwatchSourceAuthenticationArgs;
import com.pulumi.sumologic.inputs.CloudwatchSourceDefaultDateFormatArgs;
import com.pulumi.sumologic.inputs.CloudwatchSourceFilterArgs;
import com.pulumi.sumologic.inputs.CloudwatchSourcePathArgs;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final CloudwatchSourceArgs Empty = new CloudwatchSourceArgs();

    /**
     * Authentication details for connecting to the S3 bucket.
     * 
     */
    @Import(name="authentication", required=true)
    private Output authentication;

    /**
     * @return Authentication details for connecting to the S3 bucket.
     * 
     */
    public Output authentication() {
        return this.authentication;
    }

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

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

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

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

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

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

    /**
     * The content-type of the collected data. Details can be found in the [Sumologic documentation for hosted sources](https://help.sumologic.com/Send_Data/Sources/03Use_JSON_to_Configure_Sources/JSON_Parameters_for_Hosted_Sources).
     * 
     */
    @Import(name="contentType", required=true)
    private Output contentType;

    /**
     * @return The content-type of the collected data. Details can be found in the [Sumologic documentation for hosted sources](https://help.sumologic.com/Send_Data/Sources/03Use_JSON_to_Configure_Sources/JSON_Parameters_for_Hosted_Sources).
     * 
     */
    public Output contentType() {
        return this.contentType;
    }

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

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

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

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

    @Import(name="defaultDateFormats")
    private @Nullable Output> defaultDateFormats;

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

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

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

    @Import(name="fields")
    private @Nullable Output> fields;

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

    @Import(name="filters")
    private @Nullable Output> filters;

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * The location to scan for new data.
     * 
     */
    @Import(name="path", required=true)
    private Output path;

    /**
     * @return The location to scan for new data.
     * 
     */
    public Output path() {
        return this.path;
    }

    /**
     * When set to true, the scanner is paused. To disable, set to false.
     * 
     */
    @Import(name="paused")
    private @Nullable Output paused;

    /**
     * @return When set to true, the scanner is paused. To disable, set to false.
     * 
     */
    public Optional> paused() {
        return Optional.ofNullable(this.paused);
    }

    /**
     * Time interval in milliseconds of scans for new data. The default is 300000 and the minimum value is 1000 milliseconds.
     * 
     */
    @Import(name="scanInterval")
    private @Nullable Output scanInterval;

    /**
     * @return Time interval in milliseconds of scans for new data. The default is 300000 and the minimum value is 1000 milliseconds.
     * 
     */
    public Optional> scanInterval() {
        return Optional.ofNullable(this.scanInterval);
    }

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

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

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

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

    private CloudwatchSourceArgs() {}

    private CloudwatchSourceArgs(CloudwatchSourceArgs $) {
        this.authentication = $.authentication;
        this.automaticDateParsing = $.automaticDateParsing;
        this.category = $.category;
        this.collectorId = $.collectorId;
        this.contentType = $.contentType;
        this.cutoffRelativeTime = $.cutoffRelativeTime;
        this.cutoffTimestamp = $.cutoffTimestamp;
        this.defaultDateFormats = $.defaultDateFormats;
        this.description = $.description;
        this.fields = $.fields;
        this.filters = $.filters;
        this.forceTimezone = $.forceTimezone;
        this.hashAlgorithm = $.hashAlgorithm;
        this.hostName = $.hostName;
        this.manualPrefixRegexp = $.manualPrefixRegexp;
        this.multilineProcessingEnabled = $.multilineProcessingEnabled;
        this.name = $.name;
        this.path = $.path;
        this.paused = $.paused;
        this.scanInterval = $.scanInterval;
        this.timezone = $.timezone;
        this.useAutolineMatching = $.useAutolineMatching;
    }

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

    public static final class Builder {
        private CloudwatchSourceArgs $;

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

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

        /**
         * @param authentication Authentication details for connecting to the S3 bucket.
         * 
         * @return builder
         * 
         */
        public Builder authentication(Output authentication) {
            $.authentication = authentication;
            return this;
        }

        /**
         * @param authentication Authentication details for connecting to the S3 bucket.
         * 
         * @return builder
         * 
         */
        public Builder authentication(CloudwatchSourceAuthenticationArgs authentication) {
            return authentication(Output.of(authentication));
        }

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

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

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

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

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

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

        /**
         * @param contentType The content-type of the collected data. Details can be found in the [Sumologic documentation for hosted sources](https://help.sumologic.com/Send_Data/Sources/03Use_JSON_to_Configure_Sources/JSON_Parameters_for_Hosted_Sources).
         * 
         * @return builder
         * 
         */
        public Builder contentType(Output contentType) {
            $.contentType = contentType;
            return this;
        }

        /**
         * @param contentType The content-type of the collected data. Details can be found in the [Sumologic documentation for hosted sources](https://help.sumologic.com/Send_Data/Sources/03Use_JSON_to_Configure_Sources/JSON_Parameters_for_Hosted_Sources).
         * 
         * @return builder
         * 
         */
        public Builder contentType(String contentType) {
            return contentType(Output.of(contentType));
        }

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

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

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

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

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

        public Builder defaultDateFormats(List defaultDateFormats) {
            return defaultDateFormats(Output.of(defaultDateFormats));
        }

        public Builder defaultDateFormats(CloudwatchSourceDefaultDateFormatArgs... defaultDateFormats) {
            return defaultDateFormats(List.of(defaultDateFormats));
        }

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

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

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

        public Builder fields(Map fields) {
            return fields(Output.of(fields));
        }

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

        public Builder filters(List filters) {
            return filters(Output.of(filters));
        }

        public Builder filters(CloudwatchSourceFilterArgs... filters) {
            return filters(List.of(filters));
        }

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

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

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

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

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

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

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

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

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

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

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

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

        /**
         * @param path The location to scan for new data.
         * 
         * @return builder
         * 
         */
        public Builder path(Output path) {
            $.path = path;
            return this;
        }

        /**
         * @param path The location to scan for new data.
         * 
         * @return builder
         * 
         */
        public Builder path(CloudwatchSourcePathArgs path) {
            return path(Output.of(path));
        }

        /**
         * @param paused When set to true, the scanner is paused. To disable, set to false.
         * 
         * @return builder
         * 
         */
        public Builder paused(@Nullable Output paused) {
            $.paused = paused;
            return this;
        }

        /**
         * @param paused When set to true, the scanner is paused. To disable, set to false.
         * 
         * @return builder
         * 
         */
        public Builder paused(Boolean paused) {
            return paused(Output.of(paused));
        }

        /**
         * @param scanInterval Time interval in milliseconds of scans for new data. The default is 300000 and the minimum value is 1000 milliseconds.
         * 
         * @return builder
         * 
         */
        public Builder scanInterval(@Nullable Output scanInterval) {
            $.scanInterval = scanInterval;
            return this;
        }

        /**
         * @param scanInterval Time interval in milliseconds of scans for new data. The default is 300000 and the minimum value is 1000 milliseconds.
         * 
         * @return builder
         * 
         */
        public Builder scanInterval(Integer scanInterval) {
            return scanInterval(Output.of(scanInterval));
        }

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

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

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

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

        public CloudwatchSourceArgs build() {
            if ($.authentication == null) {
                throw new MissingRequiredPropertyException("CloudwatchSourceArgs", "authentication");
            }
            if ($.collectorId == null) {
                throw new MissingRequiredPropertyException("CloudwatchSourceArgs", "collectorId");
            }
            if ($.contentType == null) {
                throw new MissingRequiredPropertyException("CloudwatchSourceArgs", "contentType");
            }
            if ($.path == null) {
                throw new MissingRequiredPropertyException("CloudwatchSourceArgs", "path");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy