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

com.pulumi.azurenative.dbformysql.AzureADAdministratorArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.dbformysql.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 AzureADAdministratorArgs extends com.pulumi.resources.ResourceArgs {

    public static final AzureADAdministratorArgs Empty = new AzureADAdministratorArgs();

    /**
     * The name of the Azure AD Administrator.
     * 
     */
    @Import(name="administratorName")
    private @Nullable Output administratorName;

    /**
     * @return The name of the Azure AD Administrator.
     * 
     */
    public Optional> administratorName() {
        return Optional.ofNullable(this.administratorName);
    }

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

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

    /**
     * The resource id of the identity used for AAD Authentication.
     * 
     */
    @Import(name="identityResourceId")
    private @Nullable Output identityResourceId;

    /**
     * @return The resource id of the identity used for AAD Authentication.
     * 
     */
    public Optional> identityResourceId() {
        return Optional.ofNullable(this.identityResourceId);
    }

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

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

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    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")
    private @Nullable Output sid;

    /**
     * @return SID (object ID) of the server administrator.
     * 
     */
    public Optional> sid() {
        return Optional.ofNullable(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 AzureADAdministratorArgs() {}

    private AzureADAdministratorArgs(AzureADAdministratorArgs $) {
        this.administratorName = $.administratorName;
        this.administratorType = $.administratorType;
        this.identityResourceId = $.identityResourceId;
        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(AzureADAdministratorArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private AzureADAdministratorArgs $;

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

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

        /**
         * @param administratorName The name of the Azure AD Administrator.
         * 
         * @return builder
         * 
         */
        public Builder administratorName(@Nullable Output administratorName) {
            $.administratorName = administratorName;
            return this;
        }

        /**
         * @param administratorName The name of the Azure AD 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(@Nullable 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 identityResourceId The resource id of the identity used for AAD Authentication.
         * 
         * @return builder
         * 
         */
        public Builder identityResourceId(@Nullable Output identityResourceId) {
            $.identityResourceId = identityResourceId;
            return this;
        }

        /**
         * @param identityResourceId The resource id of the identity used for AAD Authentication.
         * 
         * @return builder
         * 
         */
        public Builder identityResourceId(String identityResourceId) {
            return identityResourceId(Output.of(identityResourceId));
        }

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

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @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(@Nullable 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 AzureADAdministratorArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("AzureADAdministratorArgs", "resourceGroupName");
            }
            if ($.serverName == null) {
                throw new MissingRequiredPropertyException("AzureADAdministratorArgs", "serverName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy