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

com.pulumi.azurenative.dbforpostgresql.AdministratorArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.dbforpostgresql.enums.PrincipalType;
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 AdministratorArgs extends com.pulumi.resources.ResourceArgs {

    public static final AdministratorArgs Empty = new AdministratorArgs();

    /**
     * Guid of the objectId for the administrator.
     * 
     */
    @Import(name="objectId")
    private @Nullable Output objectId;

    /**
     * @return Guid of the objectId for the administrator.
     * 
     */
    public Optional> objectId() {
        return Optional.ofNullable(this.objectId);
    }

    /**
     * Active Directory administrator principal name.
     * 
     */
    @Import(name="principalName")
    private @Nullable Output principalName;

    /**
     * @return Active Directory administrator principal name.
     * 
     */
    public Optional> principalName() {
        return Optional.ofNullable(this.principalName);
    }

    /**
     * The principal type used to represent the type of Active Directory Administrator.
     * 
     */
    @Import(name="principalType")
    private @Nullable Output> principalType;

    /**
     * @return The principal type used to represent the type of Active Directory Administrator.
     * 
     */
    public Optional>> principalType() {
        return Optional.ofNullable(this.principalType);
    }

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

    /**
     * The tenantId of the Active Directory administrator.
     * 
     */
    @Import(name="tenantId")
    private @Nullable Output tenantId;

    /**
     * @return The tenantId of the Active Directory administrator.
     * 
     */
    public Optional> tenantId() {
        return Optional.ofNullable(this.tenantId);
    }

    private AdministratorArgs() {}

    private AdministratorArgs(AdministratorArgs $) {
        this.objectId = $.objectId;
        this.principalName = $.principalName;
        this.principalType = $.principalType;
        this.resourceGroupName = $.resourceGroupName;
        this.serverName = $.serverName;
        this.tenantId = $.tenantId;
    }

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

    public static final class Builder {
        private AdministratorArgs $;

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

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

        /**
         * @param objectId Guid of the objectId for the administrator.
         * 
         * @return builder
         * 
         */
        public Builder objectId(@Nullable Output objectId) {
            $.objectId = objectId;
            return this;
        }

        /**
         * @param objectId Guid of the objectId for the administrator.
         * 
         * @return builder
         * 
         */
        public Builder objectId(String objectId) {
            return objectId(Output.of(objectId));
        }

        /**
         * @param principalName Active Directory administrator principal name.
         * 
         * @return builder
         * 
         */
        public Builder principalName(@Nullable Output principalName) {
            $.principalName = principalName;
            return this;
        }

        /**
         * @param principalName Active Directory administrator principal name.
         * 
         * @return builder
         * 
         */
        public Builder principalName(String principalName) {
            return principalName(Output.of(principalName));
        }

        /**
         * @param principalType The principal type used to represent the type of Active Directory Administrator.
         * 
         * @return builder
         * 
         */
        public Builder principalType(@Nullable Output> principalType) {
            $.principalType = principalType;
            return this;
        }

        /**
         * @param principalType The principal type used to represent the type of Active Directory Administrator.
         * 
         * @return builder
         * 
         */
        public Builder principalType(Either principalType) {
            return principalType(Output.of(principalType));
        }

        /**
         * @param principalType The principal type used to represent the type of Active Directory Administrator.
         * 
         * @return builder
         * 
         */
        public Builder principalType(String principalType) {
            return principalType(Either.ofLeft(principalType));
        }

        /**
         * @param principalType The principal type used to represent the type of Active Directory Administrator.
         * 
         * @return builder
         * 
         */
        public Builder principalType(PrincipalType principalType) {
            return principalType(Either.ofRight(principalType));
        }

        /**
         * @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 tenantId The tenantId of the Active Directory administrator.
         * 
         * @return builder
         * 
         */
        public Builder tenantId(@Nullable Output tenantId) {
            $.tenantId = tenantId;
            return this;
        }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy