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

com.pulumi.azurenative.streamanalytics.InputArgs 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.streamanalytics;

import com.pulumi.azurenative.streamanalytics.inputs.ReferenceInputPropertiesArgs;
import com.pulumi.azurenative.streamanalytics.inputs.StreamInputPropertiesArgs;
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;


public final class InputArgs extends com.pulumi.resources.ResourceArgs {

    public static final InputArgs Empty = new InputArgs();

    /**
     * The name of the input.
     * 
     */
    @Import(name="inputName")
    private @Nullable Output inputName;

    /**
     * @return The name of the input.
     * 
     */
    public Optional> inputName() {
        return Optional.ofNullable(this.inputName);
    }

    /**
     * The name of the streaming job.
     * 
     */
    @Import(name="jobName", required=true)
    private Output jobName;

    /**
     * @return The name of the streaming job.
     * 
     */
    public Output jobName() {
        return this.jobName;
    }

    /**
     * Resource name
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Resource name
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The properties that are associated with an input. Required on PUT (CreateOrReplace) requests.
     * 
     */
    @Import(name="properties")
    private @Nullable Output> properties;

    /**
     * @return The properties that are associated with an input. Required on PUT (CreateOrReplace) requests.
     * 
     */
    public Optional>> properties() {
        return Optional.ofNullable(this.properties);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    private InputArgs() {}

    private InputArgs(InputArgs $) {
        this.inputName = $.inputName;
        this.jobName = $.jobName;
        this.name = $.name;
        this.properties = $.properties;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private InputArgs $;

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

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

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

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

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

        /**
         * @param jobName The name of the streaming job.
         * 
         * @return builder
         * 
         */
        public Builder jobName(String jobName) {
            return jobName(Output.of(jobName));
        }

        /**
         * @param name Resource name
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

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

        /**
         * @param properties The properties that are associated with an input. Required on PUT (CreateOrReplace) requests.
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output> properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties The properties that are associated with an input. Required on PUT (CreateOrReplace) requests.
         * 
         * @return builder
         * 
         */
        public Builder properties(Either properties) {
            return properties(Output.of(properties));
        }

        /**
         * @param properties The properties that are associated with an input. Required on PUT (CreateOrReplace) requests.
         * 
         * @return builder
         * 
         */
        public Builder properties(ReferenceInputPropertiesArgs properties) {
            return properties(Either.ofLeft(properties));
        }

        /**
         * @param properties The properties that are associated with an input. Required on PUT (CreateOrReplace) requests.
         * 
         * @return builder
         * 
         */
        public Builder properties(StreamInputPropertiesArgs properties) {
            return properties(Either.ofRight(properties));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        public InputArgs build() {
            if ($.jobName == null) {
                throw new MissingRequiredPropertyException("InputArgs", "jobName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("InputArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy