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

com.pulumi.azure.mssql.inputs.ServerDnsAliasState 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.inputs;

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


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

    public static final ServerDnsAliasState Empty = new ServerDnsAliasState();

    /**
     * The fully qualified DNS record for alias.
     * 
     */
    @Import(name="dnsRecord")
    private @Nullable Output dnsRecord;

    /**
     * @return The fully qualified DNS record for alias.
     * 
     */
    public Optional> dnsRecord() {
        return Optional.ofNullable(this.dnsRecord);
    }

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

    /**
     * @return The ID of the mssql server. Changing this forces a new MSSQL Server DNS Alias to be created.
     * 
     */
    public Optional> mssqlServerId() {
        return Optional.ofNullable(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 ServerDnsAliasState() {}

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

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

    public static final class Builder {
        private ServerDnsAliasState $;

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

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

        /**
         * @param dnsRecord The fully qualified DNS record for alias.
         * 
         * @return builder
         * 
         */
        public Builder dnsRecord(@Nullable Output dnsRecord) {
            $.dnsRecord = dnsRecord;
            return this;
        }

        /**
         * @param dnsRecord The fully qualified DNS record for alias.
         * 
         * @return builder
         * 
         */
        public Builder dnsRecord(String dnsRecord) {
            return dnsRecord(Output.of(dnsRecord));
        }

        /**
         * @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(@Nullable 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 ServerDnsAliasState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy