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

com.pulumi.azurenative.insights.inputs.ExtensionDataSourceArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.inputs;

import com.pulumi.azurenative.insights.enums.KnownExtensionDataSourceStreams;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Definition of which data will be collected from a separate VM extension that integrates with the Azure Monitor Agent.
 * Collected from either Windows and Linux machines, depending on which extension is defined.
 * 
 */
public final class ExtensionDataSourceArgs extends com.pulumi.resources.ResourceArgs {

    public static final ExtensionDataSourceArgs Empty = new ExtensionDataSourceArgs();

    /**
     * The name of the VM extension.
     * 
     */
    @Import(name="extensionName", required=true)
    private Output extensionName;

    /**
     * @return The name of the VM extension.
     * 
     */
    public Output extensionName() {
        return this.extensionName;
    }

    /**
     * The extension settings. The format is specific for particular extension.
     * 
     */
    @Import(name="extensionSettings")
    private @Nullable Output extensionSettings;

    /**
     * @return The extension settings. The format is specific for particular extension.
     * 
     */
    public Optional> extensionSettings() {
        return Optional.ofNullable(this.extensionSettings);
    }

    /**
     * The list of data sources this extension needs data from.
     * 
     */
    @Import(name="inputDataSources")
    private @Nullable Output> inputDataSources;

    /**
     * @return The list of data sources this extension needs data from.
     * 
     */
    public Optional>> inputDataSources() {
        return Optional.ofNullable(this.inputDataSources);
    }

    /**
     * A friendly name for the data source.
     * This name should be unique across all data sources (regardless of type) within the data collection rule.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @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);
    }

    /**
     * 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.
     * 
     */
    @Import(name="streams")
    private @Nullable Output>> streams;

    /**
     * @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 Optional>>> streams() {
        return Optional.ofNullable(this.streams);
    }

    private ExtensionDataSourceArgs() {}

    private ExtensionDataSourceArgs(ExtensionDataSourceArgs $) {
        this.extensionName = $.extensionName;
        this.extensionSettings = $.extensionSettings;
        this.inputDataSources = $.inputDataSources;
        this.name = $.name;
        this.streams = $.streams;
    }

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

    public static final class Builder {
        private ExtensionDataSourceArgs $;

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

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

        /**
         * @param extensionName The name of the VM extension.
         * 
         * @return builder
         * 
         */
        public Builder extensionName(Output extensionName) {
            $.extensionName = extensionName;
            return this;
        }

        /**
         * @param extensionName The name of the VM extension.
         * 
         * @return builder
         * 
         */
        public Builder extensionName(String extensionName) {
            return extensionName(Output.of(extensionName));
        }

        /**
         * @param extensionSettings The extension settings. The format is specific for particular extension.
         * 
         * @return builder
         * 
         */
        public Builder extensionSettings(@Nullable Output extensionSettings) {
            $.extensionSettings = extensionSettings;
            return this;
        }

        /**
         * @param extensionSettings The extension settings. The format is specific for particular extension.
         * 
         * @return builder
         * 
         */
        public Builder extensionSettings(Object extensionSettings) {
            return extensionSettings(Output.of(extensionSettings));
        }

        /**
         * @param inputDataSources The list of data sources this extension needs data from.
         * 
         * @return builder
         * 
         */
        public Builder inputDataSources(@Nullable Output> inputDataSources) {
            $.inputDataSources = inputDataSources;
            return this;
        }

        /**
         * @param inputDataSources The list of data sources this extension needs data from.
         * 
         * @return builder
         * 
         */
        public Builder inputDataSources(List inputDataSources) {
            return inputDataSources(Output.of(inputDataSources));
        }

        /**
         * @param inputDataSources The list of data sources this extension needs data from.
         * 
         * @return builder
         * 
         */
        public Builder inputDataSources(String... inputDataSources) {
            return inputDataSources(List.of(inputDataSources));
        }

        /**
         * @param name A friendly name for the data source.
         * This name should be unique across all data sources (regardless of type) within the data collection rule.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name A friendly name for the data source.
         * This name should be unique across all data sources (regardless of type) within the data collection rule.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param streams 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.
         * 
         * @return builder
         * 
         */
        public Builder streams(@Nullable Output>> streams) {
            $.streams = streams;
            return this;
        }

        /**
         * @param streams 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.
         * 
         * @return builder
         * 
         */
        public Builder streams(List> streams) {
            return streams(Output.of(streams));
        }

        /**
         * @param streams 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.
         * 
         * @return builder
         * 
         */
        public Builder streams(Either... streams) {
            return streams(List.of(streams));
        }

        public ExtensionDataSourceArgs build() {
            if ($.extensionName == null) {
                throw new MissingRequiredPropertyException("ExtensionDataSourceArgs", "extensionName");
            }
            return $;
        }
    }

}