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

com.pulumi.azurenative.datafactory.inputs.SynapseNotebookReferenceArgs Maven / Gradle / Ivy

The 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.datafactory.inputs;

import com.pulumi.azurenative.datafactory.enums.NotebookReferenceType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.Objects;


/**
 * Synapse notebook reference type.
 * 
 */
public final class SynapseNotebookReferenceArgs extends com.pulumi.resources.ResourceArgs {

    public static final SynapseNotebookReferenceArgs Empty = new SynapseNotebookReferenceArgs();

    /**
     * Reference notebook name. Type: string (or Expression with resultType string).
     * 
     */
    @Import(name="referenceName", required=true)
    private Output referenceName;

    /**
     * @return Reference notebook name. Type: string (or Expression with resultType string).
     * 
     */
    public Output referenceName() {
        return this.referenceName;
    }

    /**
     * Synapse notebook reference type.
     * 
     */
    @Import(name="type", required=true)
    private Output> type;

    /**
     * @return Synapse notebook reference type.
     * 
     */
    public Output> type() {
        return this.type;
    }

    private SynapseNotebookReferenceArgs() {}

    private SynapseNotebookReferenceArgs(SynapseNotebookReferenceArgs $) {
        this.referenceName = $.referenceName;
        this.type = $.type;
    }

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

    public static final class Builder {
        private SynapseNotebookReferenceArgs $;

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

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

        /**
         * @param referenceName Reference notebook name. Type: string (or Expression with resultType string).
         * 
         * @return builder
         * 
         */
        public Builder referenceName(Output referenceName) {
            $.referenceName = referenceName;
            return this;
        }

        /**
         * @param referenceName Reference notebook name. Type: string (or Expression with resultType string).
         * 
         * @return builder
         * 
         */
        public Builder referenceName(Object referenceName) {
            return referenceName(Output.of(referenceName));
        }

        /**
         * @param type Synapse notebook reference type.
         * 
         * @return builder
         * 
         */
        public Builder type(Output> type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Synapse notebook reference type.
         * 
         * @return builder
         * 
         */
        public Builder type(Either type) {
            return type(Output.of(type));
        }

        /**
         * @param type Synapse notebook reference type.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Either.ofLeft(type));
        }

        /**
         * @param type Synapse notebook reference type.
         * 
         * @return builder
         * 
         */
        public Builder type(NotebookReferenceType type) {
            return type(Either.ofRight(type));
        }

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

}