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

com.pulumi.azurenative.monitor.inputs.ExporterArgs 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.monitor.inputs;

import com.pulumi.azurenative.monitor.enums.ExporterType;
import com.pulumi.azurenative.monitor.inputs.AzureMonitorWorkspaceLogsExporterArgs;
import com.pulumi.azurenative.monitor.inputs.TcpExporterArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Exporter Info.
 * 
 */
public final class ExporterArgs extends com.pulumi.resources.ResourceArgs {

    public static final ExporterArgs Empty = new ExporterArgs();

    /**
     * Azure Monitor Workspace Logs specific configurations.
     * 
     */
    @Import(name="azureMonitorWorkspaceLogs")
    private @Nullable Output azureMonitorWorkspaceLogs;

    /**
     * @return Azure Monitor Workspace Logs specific configurations.
     * 
     */
    public Optional> azureMonitorWorkspaceLogs() {
        return Optional.ofNullable(this.azureMonitorWorkspaceLogs);
    }

    /**
     * The name of exporter.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The name of exporter.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * TCP based exporter. Used for pipelineGroup exporter.
     * 
     */
    @Import(name="tcp")
    private @Nullable Output tcp;

    /**
     * @return TCP based exporter. Used for pipelineGroup exporter.
     * 
     */
    public Optional> tcp() {
        return Optional.ofNullable(this.tcp);
    }

    /**
     * The type of exporter.
     * 
     */
    @Import(name="type", required=true)
    private Output> type;

    /**
     * @return The type of exporter.
     * 
     */
    public Output> type() {
        return this.type;
    }

    private ExporterArgs() {}

    private ExporterArgs(ExporterArgs $) {
        this.azureMonitorWorkspaceLogs = $.azureMonitorWorkspaceLogs;
        this.name = $.name;
        this.tcp = $.tcp;
        this.type = $.type;
    }

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

    public static final class Builder {
        private ExporterArgs $;

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

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

        /**
         * @param azureMonitorWorkspaceLogs Azure Monitor Workspace Logs specific configurations.
         * 
         * @return builder
         * 
         */
        public Builder azureMonitorWorkspaceLogs(@Nullable Output azureMonitorWorkspaceLogs) {
            $.azureMonitorWorkspaceLogs = azureMonitorWorkspaceLogs;
            return this;
        }

        /**
         * @param azureMonitorWorkspaceLogs Azure Monitor Workspace Logs specific configurations.
         * 
         * @return builder
         * 
         */
        public Builder azureMonitorWorkspaceLogs(AzureMonitorWorkspaceLogsExporterArgs azureMonitorWorkspaceLogs) {
            return azureMonitorWorkspaceLogs(Output.of(azureMonitorWorkspaceLogs));
        }

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

        /**
         * @param name The name of exporter.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param tcp TCP based exporter. Used for pipelineGroup exporter.
         * 
         * @return builder
         * 
         */
        public Builder tcp(@Nullable Output tcp) {
            $.tcp = tcp;
            return this;
        }

        /**
         * @param tcp TCP based exporter. Used for pipelineGroup exporter.
         * 
         * @return builder
         * 
         */
        public Builder tcp(TcpExporterArgs tcp) {
            return tcp(Output.of(tcp));
        }

        /**
         * @param type The type of exporter.
         * 
         * @return builder
         * 
         */
        public Builder type(Output> type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The type of exporter.
         * 
         * @return builder
         * 
         */
        public Builder type(Either type) {
            return type(Output.of(type));
        }

        /**
         * @param type The type of exporter.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Either.ofLeft(type));
        }

        /**
         * @param type The type of exporter.
         * 
         * @return builder
         * 
         */
        public Builder type(ExporterType type) {
            return type(Either.ofRight(type));
        }

        public ExporterArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("ExporterArgs", "name");
            }
            if ($.type == null) {
                throw new MissingRequiredPropertyException("ExporterArgs", "type");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy