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

com.pulumi.azurenative.insights.outputs.ExtensionDataSourceResponse 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.azurenative.insights.outputs;

import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class ExtensionDataSourceResponse {
    /**
     * @return The name of the VM extension.
     * 
     */
    private String extensionName;
    /**
     * @return The extension settings. The format is specific for particular extension.
     * 
     */
    private @Nullable Object extensionSettings;
    /**
     * @return The list of data sources this extension needs data from.
     * 
     */
    private @Nullable List inputDataSources;
    /**
     * @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;

    private ExtensionDataSourceResponse() {}
    /**
     * @return The name of the VM extension.
     * 
     */
    public String extensionName() {
        return this.extensionName;
    }
    /**
     * @return The extension settings. The format is specific for particular extension.
     * 
     */
    public Optional extensionSettings() {
        return Optional.ofNullable(this.extensionSettings);
    }
    /**
     * @return The list of data sources this extension needs data from.
     * 
     */
    public List inputDataSources() {
        return this.inputDataSources == null ? List.of() : this.inputDataSources;
    }
    /**
     * @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;
    }

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

    public static Builder builder(ExtensionDataSourceResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String extensionName;
        private @Nullable Object extensionSettings;
        private @Nullable List inputDataSources;
        private @Nullable String name;
        private @Nullable List streams;
        public Builder() {}
        public Builder(ExtensionDataSourceResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.extensionName = defaults.extensionName;
    	      this.extensionSettings = defaults.extensionSettings;
    	      this.inputDataSources = defaults.inputDataSources;
    	      this.name = defaults.name;
    	      this.streams = defaults.streams;
        }

        @CustomType.Setter
        public Builder extensionName(String extensionName) {
            if (extensionName == null) {
              throw new MissingRequiredPropertyException("ExtensionDataSourceResponse", "extensionName");
            }
            this.extensionName = extensionName;
            return this;
        }
        @CustomType.Setter
        public Builder extensionSettings(@Nullable Object extensionSettings) {

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

            this.inputDataSources = inputDataSources;
            return this;
        }
        public Builder inputDataSources(String... inputDataSources) {
            return inputDataSources(List.of(inputDataSources));
        }
        @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));
        }
        public ExtensionDataSourceResponse build() {
            final var _resultValue = new ExtensionDataSourceResponse();
            _resultValue.extensionName = extensionName;
            _resultValue.extensionSettings = extensionSettings;
            _resultValue.inputDataSources = inputDataSources;
            _resultValue.name = name;
            _resultValue.streams = streams;
            return _resultValue;
        }
    }
}