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

com.pulumi.azurenative.monitor.inputs.PipelineArgs 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.PipelineType;
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.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Pipeline Info.
 * 
 */
public final class PipelineArgs extends com.pulumi.resources.ResourceArgs {

    public static final PipelineArgs Empty = new PipelineArgs();

    /**
     * Reference to exporters configured for the pipeline.
     * 
     */
    @Import(name="exporters", required=true)
    private Output> exporters;

    /**
     * @return Reference to exporters configured for the pipeline.
     * 
     */
    public Output> exporters() {
        return this.exporters;
    }

    /**
     * Name of the pipeline.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return Name of the pipeline.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * Reference to processors configured for the pipeline.
     * 
     */
    @Import(name="processors")
    private @Nullable Output> processors;

    /**
     * @return Reference to processors configured for the pipeline.
     * 
     */
    public Optional>> processors() {
        return Optional.ofNullable(this.processors);
    }

    /**
     * Reference to receivers configured for the pipeline.
     * 
     */
    @Import(name="receivers", required=true)
    private Output> receivers;

    /**
     * @return Reference to receivers configured for the pipeline.
     * 
     */
    public Output> receivers() {
        return this.receivers;
    }

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

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

    private PipelineArgs() {}

    private PipelineArgs(PipelineArgs $) {
        this.exporters = $.exporters;
        this.name = $.name;
        this.processors = $.processors;
        this.receivers = $.receivers;
        this.type = $.type;
    }

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

    public static final class Builder {
        private PipelineArgs $;

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

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

        /**
         * @param exporters Reference to exporters configured for the pipeline.
         * 
         * @return builder
         * 
         */
        public Builder exporters(Output> exporters) {
            $.exporters = exporters;
            return this;
        }

        /**
         * @param exporters Reference to exporters configured for the pipeline.
         * 
         * @return builder
         * 
         */
        public Builder exporters(List exporters) {
            return exporters(Output.of(exporters));
        }

        /**
         * @param exporters Reference to exporters configured for the pipeline.
         * 
         * @return builder
         * 
         */
        public Builder exporters(String... exporters) {
            return exporters(List.of(exporters));
        }

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

        /**
         * @param name Name of the pipeline.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param processors Reference to processors configured for the pipeline.
         * 
         * @return builder
         * 
         */
        public Builder processors(@Nullable Output> processors) {
            $.processors = processors;
            return this;
        }

        /**
         * @param processors Reference to processors configured for the pipeline.
         * 
         * @return builder
         * 
         */
        public Builder processors(List processors) {
            return processors(Output.of(processors));
        }

        /**
         * @param processors Reference to processors configured for the pipeline.
         * 
         * @return builder
         * 
         */
        public Builder processors(String... processors) {
            return processors(List.of(processors));
        }

        /**
         * @param receivers Reference to receivers configured for the pipeline.
         * 
         * @return builder
         * 
         */
        public Builder receivers(Output> receivers) {
            $.receivers = receivers;
            return this;
        }

        /**
         * @param receivers Reference to receivers configured for the pipeline.
         * 
         * @return builder
         * 
         */
        public Builder receivers(List receivers) {
            return receivers(Output.of(receivers));
        }

        /**
         * @param receivers Reference to receivers configured for the pipeline.
         * 
         * @return builder
         * 
         */
        public Builder receivers(String... receivers) {
            return receivers(List.of(receivers));
        }

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

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

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy