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

com.pulumi.azure.mssql.inputs.ServerAzureadAdministratorArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.mssql.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
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();

    /**
     * Specifies whether only AD Users and administrators (e.g. `azuread_administrator[0].login_username`) can be used to login, or also local database users (e.g. `administrator_login`). When `true`, the `administrator_login` and `administrator_login_password` properties can be omitted.
     * 
     */
    @Import(name="azureadAuthenticationOnly")
    private @Nullable Output azureadAuthenticationOnly;

    /**
     * @return Specifies whether only AD Users and administrators (e.g. `azuread_administrator[0].login_username`) can be used to login, or also local database users (e.g. `administrator_login`). When `true`, the `administrator_login` and `administrator_login_password` properties can be omitted.
     * 
     */
    public Optional> azureadAuthenticationOnly() {
        return Optional.ofNullable(this.azureadAuthenticationOnly);
    }

    /**
     * The login username of the Azure AD Administrator of this SQL Server.
     * 
     */
    @Import(name="loginUsername", required=true)
    private Output loginUsername;

    /**
     * @return The login username of the Azure AD Administrator of this SQL Server.
     * 
     */
    public Output loginUsername() {
        return this.loginUsername;
    }

    /**
     * The object id of the Azure AD Administrator of this SQL Server.
     * 
     */
    @Import(name="objectId", required=true)
    private Output objectId;

    /**
     * @return The object id of the Azure AD Administrator of this SQL Server.
     * 
     */
    public Output objectId() {
        return this.objectId;
    }

    /**
     * The tenant id of the Azure AD Administrator of this SQL Server.
     * 
     */
    @Import(name="tenantId")
    private @Nullable Output tenantId;

    /**
     * @return The tenant id of the Azure AD Administrator of this SQL Server.
     * 
     */
    public Optional> tenantId() {
        return Optional.ofNullable(this.tenantId);
    }

    private ServerAzureadAdministratorArgs() {}

    private ServerAzureadAdministratorArgs(ServerAzureadAdministratorArgs $) {
        this.azureadAuthenticationOnly = $.azureadAuthenticationOnly;
        this.loginUsername = $.loginUsername;
        this.objectId = $.objectId;
        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 azureadAuthenticationOnly Specifies whether only AD Users and administrators (e.g. `azuread_administrator[0].login_username`) can be used to login, or also local database users (e.g. `administrator_login`). When `true`, the `administrator_login` and `administrator_login_password` properties can be omitted.
         * 
         * @return builder
         * 
         */
        public Builder azureadAuthenticationOnly(@Nullable Output azureadAuthenticationOnly) {
            $.azureadAuthenticationOnly = azureadAuthenticationOnly;
            return this;
        }

        /**
         * @param azureadAuthenticationOnly Specifies whether only AD Users and administrators (e.g. `azuread_administrator[0].login_username`) can be used to login, or also local database users (e.g. `administrator_login`). When `true`, the `administrator_login` and `administrator_login_password` properties can be omitted.
         * 
         * @return builder
         * 
         */
        public Builder azureadAuthenticationOnly(Boolean azureadAuthenticationOnly) {
            return azureadAuthenticationOnly(Output.of(azureadAuthenticationOnly));
        }

        /**
         * @param loginUsername The login username of the Azure AD Administrator of this SQL Server.
         * 
         * @return builder
         * 
         */
        public Builder loginUsername(Output loginUsername) {
            $.loginUsername = loginUsername;
            return this;
        }

        /**
         * @param loginUsername The login username of the Azure AD Administrator of this SQL Server.
         * 
         * @return builder
         * 
         */
        public Builder loginUsername(String loginUsername) {
            return loginUsername(Output.of(loginUsername));
        }

        /**
         * @param objectId The object id of the Azure AD Administrator of this SQL Server.
         * 
         * @return builder
         * 
         */
        public Builder objectId(Output objectId) {
            $.objectId = objectId;
            return this;
        }

        /**
         * @param objectId The object id of the Azure AD Administrator of this SQL Server.
         * 
         * @return builder
         * 
         */
        public Builder objectId(String objectId) {
            return objectId(Output.of(objectId));
        }

        /**
         * @param tenantId The tenant id of the Azure AD Administrator of this SQL Server.
         * 
         * @return builder
         * 
         */
        public Builder tenantId(@Nullable Output tenantId) {
            $.tenantId = tenantId;
            return this;
        }

        /**
         * @param tenantId The tenant id of the Azure AD Administrator of this SQL Server.
         * 
         * @return builder
         * 
         */
        public Builder tenantId(String tenantId) {
            return tenantId(Output.of(tenantId));
        }

        public ServerAzureadAdministratorArgs build() {
            if ($.loginUsername == null) {
                throw new MissingRequiredPropertyException("ServerAzureadAdministratorArgs", "loginUsername");
            }
            if ($.objectId == null) {
                throw new MissingRequiredPropertyException("ServerAzureadAdministratorArgs", "objectId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy