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

com.pulumi.azurenative.monitor.inputs.ProcessorArgs 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.ProcessorType;
import com.pulumi.azurenative.monitor.inputs.BatchProcessorArgs;
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;


/**
 * Processor Info.
 * 
 */
public final class ProcessorArgs extends com.pulumi.resources.ResourceArgs {

    public static final ProcessorArgs Empty = new ProcessorArgs();

    /**
     * Batch processor configurations.
     * 
     */
    @Import(name="batch")
    private @Nullable Output batch;

    /**
     * @return Batch processor configurations.
     * 
     */
    public Optional> batch() {
        return Optional.ofNullable(this.batch);
    }

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

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

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

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

    private ProcessorArgs() {}

    private ProcessorArgs(ProcessorArgs $) {
        this.batch = $.batch;
        this.name = $.name;
        this.type = $.type;
    }

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

    public static final class Builder {
        private ProcessorArgs $;

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

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

        /**
         * @param batch Batch processor configurations.
         * 
         * @return builder
         * 
         */
        public Builder batch(@Nullable Output batch) {
            $.batch = batch;
            return this;
        }

        /**
         * @param batch Batch processor configurations.
         * 
         * @return builder
         * 
         */
        public Builder batch(BatchProcessorArgs batch) {
            return batch(Output.of(batch));
        }

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

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

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

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

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy