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

com.pulumi.azurenative.sql.ServerAzureADAdministratorArgs Maven / Gradle / Ivy

There is a newer version: 2.89.2
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.sql;

import com.pulumi.azurenative.sql.enums.AdministratorType;
import com.pulumi.core.Either;
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 ServerAzureADAdministratorArgs extends com.pulumi.resources.ResourceArgs {

    public static final ServerAzureADAdministratorArgs Empty = new ServerAzureADAdministratorArgs();

    /**
     * The name of server active directory administrator.
     * 
     */
    @Import(name="administratorName")
    private @Nullable Output administratorName;

    /**
     * @return The name of server active directory administrator.
     * 
     */
    public Optional> administratorName() {
        return Optional.ofNullable(this.administratorName);
    }

    /**
     * Type of the sever administrator.
     * 
     */
    @Import(name="administratorType", required=true)
    private Output> administratorType;

    /**
     * @return Type of the sever administrator.
     * 
     */
    public Output> administratorType() {
        return this.administratorType;
    }

    /**
     * Login name of the server administrator.
     * 
     */
    @Import(name="login", required=true)
    private Output login;

    /**
     * @return Login name of the server administrator.
     * 
     */
    public Output login() {
        return this.login;
    }

    /**
     * The 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 The 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;
    }

    /**
     * The name of the server.
     * 
     */
    @Import(name="serverName", required=true)
    private Output serverName;

    /**
     * @return The name of the server.
     * 
     */
    public Output serverName() {
        return this.serverName;
    }

    /**
     * SID (object ID) of the server administrator.
     * 
     */
    @Import(name="sid", required=true)
    private Output sid;

    /**
     * @return SID (object ID) of the server administrator.
     * 
     */
    public Output sid() {
        return this.sid;
    }

    /**
     * Tenant ID of the administrator.
     * 
     */
    @Import(name="tenantId")
    private @Nullable Output tenantId;

    /**
     * @return Tenant ID of the administrator.
     * 
     */
    public Optional> tenantId() {
        return Optional.ofNullable(this.tenantId);
    }

    private ServerAzureADAdministratorArgs() {}

    private ServerAzureADAdministratorArgs(ServerAzureADAdministratorArgs $) {
        this.administratorName = $.administratorName;
        this.administratorType = $.administratorType;
        this.login = $.login;
        this.resourceGroupName = $.resourceGroupName;
        this.serverName = $.serverName;
        this.sid = $.sid;
        this.tenantId = $.tenantId;
    }

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

    public static final class Builder {
        private ServerAzureADAdministratorArgs $;

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

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

        /**
         * @param administratorName The name of server active directory administrator.
         * 
         * @return builder
         * 
         */
        public Builder administratorName(@Nullable Output administratorName) {
            $.administratorName = administratorName;
            return this;
        }

        /**
         * @param administratorName The name of server active directory administrator.
         * 
         * @return builder
         * 
         */
        public Builder administratorName(String administratorName) {
            return administratorName(Output.of(administratorName));
        }

        /**
         * @param administratorType Type of the sever administrator.
         * 
         * @return builder
         * 
         */
        public Builder administratorType(Output> administratorType) {
            $.administratorType = administratorType;
            return this;
        }

        /**
         * @param administratorType Type of the sever administrator.
         * 
         * @return builder
         * 
         */
        public Builder administratorType(Either administratorType) {
            return administratorType(Output.of(administratorType));
        }

        /**
         * @param administratorType Type of the sever administrator.
         * 
         * @return builder
         * 
         */
        public Builder administratorType(String administratorType) {
            return administratorType(Either.ofLeft(administratorType));
        }

        /**
         * @param administratorType Type of the sever administrator.
         * 
         * @return builder
         * 
         */
        public Builder administratorType(AdministratorType administratorType) {
            return administratorType(Either.ofRight(administratorType));
        }

        /**
         * @param login Login name of the server administrator.
         * 
         * @return builder
         * 
         */
        public Builder login(Output login) {
            $.login = login;
            return this;
        }

        /**
         * @param login Login name of the server administrator.
         * 
         * @return builder
         * 
         */
        public Builder login(String login) {
            return login(Output.of(login));
        }

        /**
         * @param resourceGroupName The 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 The 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 serverName The name of the server.
         * 
         * @return builder
         * 
         */
        public Builder serverName(Output serverName) {
            $.serverName = serverName;
            return this;
        }

        /**
         * @param serverName The name of the server.
         * 
         * @return builder
         * 
         */
        public Builder serverName(String serverName) {
            return serverName(Output.of(serverName));
        }

        /**
         * @param sid SID (object ID) of the server administrator.
         * 
         * @return builder
         * 
         */
        public Builder sid(Output sid) {
            $.sid = sid;
            return this;
        }

        /**
         * @param sid SID (object ID) of the server administrator.
         * 
         * @return builder
         * 
         */
        public Builder sid(String sid) {
            return sid(Output.of(sid));
        }

        /**
         * @param tenantId Tenant ID of the administrator.
         * 
         * @return builder
         * 
         */
        public Builder tenantId(@Nullable Output tenantId) {
            $.tenantId = tenantId;
            return this;
        }

        /**
         * @param tenantId Tenant ID of the administrator.
         * 
         * @return builder
         * 
         */
        public Builder tenantId(String tenantId) {
            return tenantId(Output.of(tenantId));
        }

        public ServerAzureADAdministratorArgs build() {
            if ($.administratorType == null) {
                throw new MissingRequiredPropertyException("ServerAzureADAdministratorArgs", "administratorType");
            }
            if ($.login == null) {
                throw new MissingRequiredPropertyException("ServerAzureADAdministratorArgs", "login");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ServerAzureADAdministratorArgs", "resourceGroupName");
            }
            if ($.serverName == null) {
                throw new MissingRequiredPropertyException("ServerAzureADAdministratorArgs", "serverName");
            }
            if ($.sid == null) {
                throw new MissingRequiredPropertyException("ServerAzureADAdministratorArgs", "sid");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy