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

com.pulumi.azurenative.insights.outputs.WindowsEventLogDataSourceResponse Maven / Gradle / Ivy

There is a newer version: 2.82.0
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.azurenative.insights.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class WindowsEventLogDataSourceResponse {
    /**
     * @return A friendly name for the data source.
     * This name should be unique across all data sources (regardless of type) within the data collection rule.
     * 
     */
    private @Nullable String name;
    /**
     * @return List of streams that this data source will be sent to.
     * A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to.
     * 
     */
    private @Nullable List streams;
    /**
     * @return A list of Windows Event Log queries in XPATH format.
     * 
     */
    private @Nullable List xPathQueries;

    private WindowsEventLogDataSourceResponse() {}
    /**
     * @return A friendly name for the data source.
     * This name should be unique across all data sources (regardless of type) within the data collection rule.
     * 
     */
    public Optional name() {
        return Optional.ofNullable(this.name);
    }
    /**
     * @return List of streams that this data source will be sent to.
     * A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to.
     * 
     */
    public List streams() {
        return this.streams == null ? List.of() : this.streams;
    }
    /**
     * @return A list of Windows Event Log queries in XPATH format.
     * 
     */
    public List xPathQueries() {
        return this.xPathQueries == null ? List.of() : this.xPathQueries;
    }

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

    public static Builder builder(WindowsEventLogDataSourceResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String name;
        private @Nullable List streams;
        private @Nullable List xPathQueries;
        public Builder() {}
        public Builder(WindowsEventLogDataSourceResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.name = defaults.name;
    	      this.streams = defaults.streams;
    	      this.xPathQueries = defaults.xPathQueries;
        }

        @CustomType.Setter
        public Builder name(@Nullable String name) {

            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder streams(@Nullable List streams) {

            this.streams = streams;
            return this;
        }
        public Builder streams(String... streams) {
            return streams(List.of(streams));
        }
        @CustomType.Setter
        public Builder xPathQueries(@Nullable List xPathQueries) {

            this.xPathQueries = xPathQueries;
            return this;
        }
        public Builder xPathQueries(String... xPathQueries) {
            return xPathQueries(List.of(xPathQueries));
        }
        public WindowsEventLogDataSourceResponse build() {
            final var _resultValue = new WindowsEventLogDataSourceResponse();
            _resultValue.name = name;
            _resultValue.streams = streams;
            _resultValue.xPathQueries = xPathQueries;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy