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

com.pulumi.azurenative.azuredata.SqlServerArgs 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.azuredata;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SqlServerArgs Empty = new SqlServerArgs();

    /**
     * Cores of the Sql Server.
     * 
     */
    @Import(name="cores")
    private @Nullable Output cores;

    /**
     * @return Cores of the Sql Server.
     * 
     */
    public Optional> cores() {
        return Optional.ofNullable(this.cores);
    }

    /**
     * Sql Server Edition.
     * 
     */
    @Import(name="edition")
    private @Nullable Output edition;

    /**
     * @return Sql Server Edition.
     * 
     */
    public Optional> edition() {
        return Optional.ofNullable(this.edition);
    }

    /**
     * Sql Server Json Property Bag.
     * 
     */
    @Import(name="propertyBag")
    private @Nullable Output propertyBag;

    /**
     * @return Sql Server Json Property Bag.
     * 
     */
    public Optional> propertyBag() {
        return Optional.ofNullable(this.propertyBag);
    }

    /**
     * ID for Parent Sql Server Registration.
     * 
     */
    @Import(name="registrationID")
    private @Nullable Output registrationID;

    /**
     * @return ID for Parent Sql Server Registration.
     * 
     */
    public Optional> registrationID() {
        return Optional.ofNullable(this.registrationID);
    }

    /**
     * Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Name of the SQL Server.
     * 
     */
    @Import(name="sqlServerName")
    private @Nullable Output sqlServerName;

    /**
     * @return Name of the SQL Server.
     * 
     */
    public Optional> sqlServerName() {
        return Optional.ofNullable(this.sqlServerName);
    }

    /**
     * Name of the SQL Server registration.
     * 
     */
    @Import(name="sqlServerRegistrationName", required=true)
    private Output sqlServerRegistrationName;

    /**
     * @return Name of the SQL Server registration.
     * 
     */
    public Output sqlServerRegistrationName() {
        return this.sqlServerRegistrationName;
    }

    /**
     * Version of the Sql Server.
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return Version of the Sql Server.
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    private SqlServerArgs() {}

    private SqlServerArgs(SqlServerArgs $) {
        this.cores = $.cores;
        this.edition = $.edition;
        this.propertyBag = $.propertyBag;
        this.registrationID = $.registrationID;
        this.resourceGroupName = $.resourceGroupName;
        this.sqlServerName = $.sqlServerName;
        this.sqlServerRegistrationName = $.sqlServerRegistrationName;
        this.version = $.version;
    }

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

    public static final class Builder {
        private SqlServerArgs $;

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

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

        /**
         * @param cores Cores of the Sql Server.
         * 
         * @return builder
         * 
         */
        public Builder cores(@Nullable Output cores) {
            $.cores = cores;
            return this;
        }

        /**
         * @param cores Cores of the Sql Server.
         * 
         * @return builder
         * 
         */
        public Builder cores(Integer cores) {
            return cores(Output.of(cores));
        }

        /**
         * @param edition Sql Server Edition.
         * 
         * @return builder
         * 
         */
        public Builder edition(@Nullable Output edition) {
            $.edition = edition;
            return this;
        }

        /**
         * @param edition Sql Server Edition.
         * 
         * @return builder
         * 
         */
        public Builder edition(String edition) {
            return edition(Output.of(edition));
        }

        /**
         * @param propertyBag Sql Server Json Property Bag.
         * 
         * @return builder
         * 
         */
        public Builder propertyBag(@Nullable Output propertyBag) {
            $.propertyBag = propertyBag;
            return this;
        }

        /**
         * @param propertyBag Sql Server Json Property Bag.
         * 
         * @return builder
         * 
         */
        public Builder propertyBag(String propertyBag) {
            return propertyBag(Output.of(propertyBag));
        }

        /**
         * @param registrationID ID for Parent Sql Server Registration.
         * 
         * @return builder
         * 
         */
        public Builder registrationID(@Nullable Output registrationID) {
            $.registrationID = registrationID;
            return this;
        }

        /**
         * @param registrationID ID for Parent Sql Server Registration.
         * 
         * @return builder
         * 
         */
        public Builder registrationID(String registrationID) {
            return registrationID(Output.of(registrationID));
        }

        /**
         * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param sqlServerName Name of the SQL Server.
         * 
         * @return builder
         * 
         */
        public Builder sqlServerName(@Nullable Output sqlServerName) {
            $.sqlServerName = sqlServerName;
            return this;
        }

        /**
         * @param sqlServerName Name of the SQL Server.
         * 
         * @return builder
         * 
         */
        public Builder sqlServerName(String sqlServerName) {
            return sqlServerName(Output.of(sqlServerName));
        }

        /**
         * @param sqlServerRegistrationName Name of the SQL Server registration.
         * 
         * @return builder
         * 
         */
        public Builder sqlServerRegistrationName(Output sqlServerRegistrationName) {
            $.sqlServerRegistrationName = sqlServerRegistrationName;
            return this;
        }

        /**
         * @param sqlServerRegistrationName Name of the SQL Server registration.
         * 
         * @return builder
         * 
         */
        public Builder sqlServerRegistrationName(String sqlServerRegistrationName) {
            return sqlServerRegistrationName(Output.of(sqlServerRegistrationName));
        }

        /**
         * @param version Version of the Sql Server.
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version Version of the Sql Server.
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy