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

com.pulumi.splunk.inputs.OutputsTcpSyslogState Maven / Gradle / Ivy

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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.splunk.inputs.OutputsTcpSyslogAclArgs;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final OutputsTcpSyslogState Empty = new OutputsTcpSyslogState();

    /**
     * The app/user context that is the namespace for the resource
     * 
     */
    @Import(name="acl")
    private @Nullable Output acl;

    /**
     * @return The app/user context that is the namespace for the resource
     * 
     */
    public Optional> acl() {
        return Optional.ofNullable(this.acl);
    }

    /**
     * If true, disables global syslog settings.
     * 
     */
    @Import(name="disabled")
    private @Nullable Output disabled;

    /**
     * @return If true, disables global syslog settings.
     * 
     */
    public Optional> disabled() {
        return Optional.ofNullable(this.disabled);
    }

    /**
     * Name of the syslog output group. This is name used when creating syslog configuration in outputs.conf.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the syslog output group. This is name used when creating syslog configuration in outputs.conf.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Sets syslog priority value. The priority value should specified as an integer. See $SPLUNK_HOME/etc/system/README/outputs.conf.spec for details.
     * 
     */
    @Import(name="priority")
    private @Nullable Output priority;

    /**
     * @return Sets syslog priority value. The priority value should specified as an integer. See $SPLUNK_HOME/etc/system/README/outputs.conf.spec for details.
     * 
     */
    public Optional> priority() {
        return Optional.ofNullable(this.priority);
    }

    /**
     * host:port of the server where syslog data should be sent
     * 
     */
    @Import(name="server")
    private @Nullable Output server;

    /**
     * @return host:port of the server where syslog data should be sent
     * 
     */
    public Optional> server() {
        return Optional.ofNullable(this.server);
    }

    /**
     * Specifies a rule for handling data in addition to that provided by the "syslog" sourcetype. By default, there is no value for syslogSourceType.
     * <br>This string is used as a substring match against the sourcetype key. For example, if the string is set to 'syslog', then all source types containing the string "syslog" receives this special treatment.
     * To match a source type explicitly, use the pattern "sourcetype::sourcetype_name." For example
     * syslogSourcetype = sourcetype::apache_common
     * Data that is "syslog" or matches this setting is assumed to already be in syslog format.
     * Data that does not match the rules has a header, potentially a timestamp, and a hostname added to the front of the event. This is how Splunk software causes arbitrary log data to match syslog expectations.
     * 
     */
    @Import(name="syslogSourcetype")
    private @Nullable Output syslogSourcetype;

    /**
     * @return Specifies a rule for handling data in addition to that provided by the "syslog" sourcetype. By default, there is no value for syslogSourceType.
     * <br>This string is used as a substring match against the sourcetype key. For example, if the string is set to 'syslog', then all source types containing the string "syslog" receives this special treatment.
     * To match a source type explicitly, use the pattern "sourcetype::sourcetype_name." For example
     * syslogSourcetype = sourcetype::apache_common
     * Data that is "syslog" or matches this setting is assumed to already be in syslog format.
     * Data that does not match the rules has a header, potentially a timestamp, and a hostname added to the front of the event. This is how Splunk software causes arbitrary log data to match syslog expectations.
     * 
     */
    public Optional> syslogSourcetype() {
        return Optional.ofNullable(this.syslogSourcetype);
    }

    /**
     * Format of timestamp to add at start of the events to be forwarded.
     * The format is a strftime-style timestamp formatting string. See $SPLUNK_HOME/etc/system/README/outputs.conf.spec for details.
     * 
     */
    @Import(name="timestampFormat")
    private @Nullable Output timestampFormat;

    /**
     * @return Format of timestamp to add at start of the events to be forwarded.
     * The format is a strftime-style timestamp formatting string. See $SPLUNK_HOME/etc/system/README/outputs.conf.spec for details.
     * 
     */
    public Optional> timestampFormat() {
        return Optional.ofNullable(this.timestampFormat);
    }

    /**
     * Protocol to use to send syslog data. Valid values: (tcp | udp ).
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return Protocol to use to send syslog data. Valid values: (tcp | udp ).
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    private OutputsTcpSyslogState() {}

    private OutputsTcpSyslogState(OutputsTcpSyslogState $) {
        this.acl = $.acl;
        this.disabled = $.disabled;
        this.name = $.name;
        this.priority = $.priority;
        this.server = $.server;
        this.syslogSourcetype = $.syslogSourcetype;
        this.timestampFormat = $.timestampFormat;
        this.type = $.type;
    }

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

    public static final class Builder {
        private OutputsTcpSyslogState $;

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

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

        /**
         * @param acl The app/user context that is the namespace for the resource
         * 
         * @return builder
         * 
         */
        public Builder acl(@Nullable Output acl) {
            $.acl = acl;
            return this;
        }

        /**
         * @param acl The app/user context that is the namespace for the resource
         * 
         * @return builder
         * 
         */
        public Builder acl(OutputsTcpSyslogAclArgs acl) {
            return acl(Output.of(acl));
        }

        /**
         * @param disabled If true, disables global syslog settings.
         * 
         * @return builder
         * 
         */
        public Builder disabled(@Nullable Output disabled) {
            $.disabled = disabled;
            return this;
        }

        /**
         * @param disabled If true, disables global syslog settings.
         * 
         * @return builder
         * 
         */
        public Builder disabled(Boolean disabled) {
            return disabled(Output.of(disabled));
        }

        /**
         * @param name Name of the syslog output group. This is name used when creating syslog configuration in outputs.conf.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the syslog output group. This is name used when creating syslog configuration in outputs.conf.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param priority Sets syslog priority value. The priority value should specified as an integer. See $SPLUNK_HOME/etc/system/README/outputs.conf.spec for details.
         * 
         * @return builder
         * 
         */
        public Builder priority(@Nullable Output priority) {
            $.priority = priority;
            return this;
        }

        /**
         * @param priority Sets syslog priority value. The priority value should specified as an integer. See $SPLUNK_HOME/etc/system/README/outputs.conf.spec for details.
         * 
         * @return builder
         * 
         */
        public Builder priority(Integer priority) {
            return priority(Output.of(priority));
        }

        /**
         * @param server host:port of the server where syslog data should be sent
         * 
         * @return builder
         * 
         */
        public Builder server(@Nullable Output server) {
            $.server = server;
            return this;
        }

        /**
         * @param server host:port of the server where syslog data should be sent
         * 
         * @return builder
         * 
         */
        public Builder server(String server) {
            return server(Output.of(server));
        }

        /**
         * @param syslogSourcetype Specifies a rule for handling data in addition to that provided by the "syslog" sourcetype. By default, there is no value for syslogSourceType.
         * <br>This string is used as a substring match against the sourcetype key. For example, if the string is set to 'syslog', then all source types containing the string "syslog" receives this special treatment.
         * To match a source type explicitly, use the pattern "sourcetype::sourcetype_name." For example
         * syslogSourcetype = sourcetype::apache_common
         * Data that is "syslog" or matches this setting is assumed to already be in syslog format.
         * Data that does not match the rules has a header, potentially a timestamp, and a hostname added to the front of the event. This is how Splunk software causes arbitrary log data to match syslog expectations.
         * 
         * @return builder
         * 
         */
        public Builder syslogSourcetype(@Nullable Output syslogSourcetype) {
            $.syslogSourcetype = syslogSourcetype;
            return this;
        }

        /**
         * @param syslogSourcetype Specifies a rule for handling data in addition to that provided by the "syslog" sourcetype. By default, there is no value for syslogSourceType.
         * <br>This string is used as a substring match against the sourcetype key. For example, if the string is set to 'syslog', then all source types containing the string "syslog" receives this special treatment.
         * To match a source type explicitly, use the pattern "sourcetype::sourcetype_name." For example
         * syslogSourcetype = sourcetype::apache_common
         * Data that is "syslog" or matches this setting is assumed to already be in syslog format.
         * Data that does not match the rules has a header, potentially a timestamp, and a hostname added to the front of the event. This is how Splunk software causes arbitrary log data to match syslog expectations.
         * 
         * @return builder
         * 
         */
        public Builder syslogSourcetype(String syslogSourcetype) {
            return syslogSourcetype(Output.of(syslogSourcetype));
        }

        /**
         * @param timestampFormat Format of timestamp to add at start of the events to be forwarded.
         * The format is a strftime-style timestamp formatting string. See $SPLUNK_HOME/etc/system/README/outputs.conf.spec for details.
         * 
         * @return builder
         * 
         */
        public Builder timestampFormat(@Nullable Output timestampFormat) {
            $.timestampFormat = timestampFormat;
            return this;
        }

        /**
         * @param timestampFormat Format of timestamp to add at start of the events to be forwarded.
         * The format is a strftime-style timestamp formatting string. See $SPLUNK_HOME/etc/system/README/outputs.conf.spec for details.
         * 
         * @return builder
         * 
         */
        public Builder timestampFormat(String timestampFormat) {
            return timestampFormat(Output.of(timestampFormat));
        }

        /**
         * @param type Protocol to use to send syslog data. Valid values: (tcp | udp ).
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Protocol to use to send syslog data. Valid values: (tcp | udp ).
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public OutputsTcpSyslogState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy