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

com.pulumi.azure.mssql.ServerDnsAliasArgs Maven / Gradle / Ivy

// *** 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.azure.mssql;

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 ServerDnsAliasArgs extends com.pulumi.resources.ResourceArgs {

    public static final ServerDnsAliasArgs Empty = new ServerDnsAliasArgs();

    /**
     * The ID of the mssql server. Changing this forces a new MSSQL Server DNS Alias to be created.
     * 
     */
    @Import(name="mssqlServerId", required=true)
    private Output mssqlServerId;

    /**
     * @return The ID of the mssql server. Changing this forces a new MSSQL Server DNS Alias to be created.
     * 
     */
    public Output mssqlServerId() {
        return this.mssqlServerId;
    }

    /**
     * The name which should be used for this MSSQL Server DNS Alias. Changing this forces a new MSSQL Server DNS Alias to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name which should be used for this MSSQL Server DNS Alias. Changing this forces a new MSSQL Server DNS Alias to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    private ServerDnsAliasArgs() {}

    private ServerDnsAliasArgs(ServerDnsAliasArgs $) {
        this.mssqlServerId = $.mssqlServerId;
        this.name = $.name;
    }

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

    public static final class Builder {
        private ServerDnsAliasArgs $;

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

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

        /**
         * @param mssqlServerId The ID of the mssql server. Changing this forces a new MSSQL Server DNS Alias to be created.
         * 
         * @return builder
         * 
         */
        public Builder mssqlServerId(Output mssqlServerId) {
            $.mssqlServerId = mssqlServerId;
            return this;
        }

        /**
         * @param mssqlServerId The ID of the mssql server. Changing this forces a new MSSQL Server DNS Alias to be created.
         * 
         * @return builder
         * 
         */
        public Builder mssqlServerId(String mssqlServerId) {
            return mssqlServerId(Output.of(mssqlServerId));
        }

        /**
         * @param name The name which should be used for this MSSQL Server DNS Alias. Changing this forces a new MSSQL Server DNS Alias to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name which should be used for this MSSQL Server DNS Alias. Changing this forces a new MSSQL Server DNS Alias to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy