// *** 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.azure.monitoring.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetDataCollectionRuleDataSourceExtension {
    /**
     * @return A JSON String which specifies the extension setting.
     * 
     */
    private String extensionJson;
    /**
     * @return The name of the VM extension.
     * 
     */
    private String extensionName;
    /**
     * @return Specifies a list of data sources this extension needs data from. An item should be a name of a supported data source which produces only one stream. Supported data sources type: `performance_counter`, `windows_event_log`,and `syslog`.
     * 
     */
    private List<String> inputDataSources;
    /**
     * @return Specifies the name of the Data Collection Rule.
     * 
     */
    private String name;
    /**
     * @return Specifies a 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 List<String> streams;

    private GetDataCollectionRuleDataSourceExtension() {}
    /**
     * @return A JSON String which specifies the extension setting.
     * 
     */
    public String extensionJson() {
        return this.extensionJson;
    }
    /**
     * @return The name of the VM extension.
     * 
     */
    public String extensionName() {
        return this.extensionName;
    }
    /**
     * @return Specifies a list of data sources this extension needs data from. An item should be a name of a supported data source which produces only one stream. Supported data sources type: `performance_counter`, `windows_event_log`,and `syslog`.
     * 
     */
    public List<String> inputDataSources() {
        return this.inputDataSources;
    }
    /**
     * @return Specifies the name of the Data Collection Rule.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Specifies a 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<String> streams() {
        return this.streams;
    }

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

    public static Builder builder(GetDataCollectionRuleDataSourceExtension defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String extensionJson;
        private String extensionName;
        private List<String> inputDataSources;
        private String name;
        private List<String> streams;
        public Builder() {}
        public Builder(GetDataCollectionRuleDataSourceExtension defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.extensionJson = defaults.extensionJson;
    	      this.extensionName = defaults.extensionName;
    	      this.inputDataSources = defaults.inputDataSources;
    	      this.name = defaults.name;
    	      this.streams = defaults.streams;
        }

        @CustomType.Setter
        public Builder extensionJson(String extensionJson) {
            this.extensionJson = Objects.requireNonNull(extensionJson);
            return this;
        }
        @CustomType.Setter
        public Builder extensionName(String extensionName) {
            this.extensionName = Objects.requireNonNull(extensionName);
            return this;
        }
        @CustomType.Setter
        public Builder inputDataSources(List<String> inputDataSources) {
            this.inputDataSources = Objects.requireNonNull(inputDataSources);
            return this;
        }
        public Builder inputDataSources(String... inputDataSources) {
            return inputDataSources(List.of(inputDataSources));
        }
        @CustomType.Setter
        public Builder name(String name) {
            this.name = Objects.requireNonNull(name);
            return this;
        }
        @CustomType.Setter
        public Builder streams(List<String> streams) {
            this.streams = Objects.requireNonNull(streams);
            return this;
        }
        public Builder streams(String... streams) {
            return streams(List.of(streams));
        }
        public GetDataCollectionRuleDataSourceExtension build() {
            final var o = new GetDataCollectionRuleDataSourceExtension();
            o.extensionJson = extensionJson;
            o.extensionName = extensionName;
            o.inputDataSources = inputDataSources;
            o.name = name;
            o.streams = streams;
            return o;
        }
    }
}
