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

com.pulumi.azurenative.documentdb.inputs.SqlStoredProcedureResourceArgs 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.documentdb.inputs;

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;


/**
 * Cosmos DB SQL storedProcedure resource object
 * 
 */
public final class SqlStoredProcedureResourceArgs extends com.pulumi.resources.ResourceArgs {

    public static final SqlStoredProcedureResourceArgs Empty = new SqlStoredProcedureResourceArgs();

    /**
     * Body of the Stored Procedure
     * 
     */
    @Import(name="body")
    private @Nullable Output body;

    /**
     * @return Body of the Stored Procedure
     * 
     */
    public Optional> body() {
        return Optional.ofNullable(this.body);
    }

    /**
     * Name of the Cosmos DB SQL storedProcedure
     * 
     */
    @Import(name="id", required=true)
    private Output id;

    /**
     * @return Name of the Cosmos DB SQL storedProcedure
     * 
     */
    public Output id() {
        return this.id;
    }

    private SqlStoredProcedureResourceArgs() {}

    private SqlStoredProcedureResourceArgs(SqlStoredProcedureResourceArgs $) {
        this.body = $.body;
        this.id = $.id;
    }

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

    public static final class Builder {
        private SqlStoredProcedureResourceArgs $;

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

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

        /**
         * @param body Body of the Stored Procedure
         * 
         * @return builder
         * 
         */
        public Builder body(@Nullable Output body) {
            $.body = body;
            return this;
        }

        /**
         * @param body Body of the Stored Procedure
         * 
         * @return builder
         * 
         */
        public Builder body(String body) {
            return body(Output.of(body));
        }

        /**
         * @param id Name of the Cosmos DB SQL storedProcedure
         * 
         * @return builder
         * 
         */
        public Builder id(Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id Name of the Cosmos DB SQL storedProcedure
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        public SqlStoredProcedureResourceArgs build() {
            if ($.id == null) {
                throw new MissingRequiredPropertyException("SqlStoredProcedureResourceArgs", "id");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy