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

com.pulumi.azurenative.datacatalog.inputs.PrincipalsArgs 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.datacatalog.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;


/**
 * User principals.
 * 
 */
public final class PrincipalsArgs extends com.pulumi.resources.ResourceArgs {

    public static final PrincipalsArgs Empty = new PrincipalsArgs();

    /**
     * Object Id for the user
     * 
     */
    @Import(name="objectId")
    private @Nullable Output objectId;

    /**
     * @return Object Id for the user
     * 
     */
    public Optional> objectId() {
        return Optional.ofNullable(this.objectId);
    }

    /**
     * UPN of the user.
     * 
     */
    @Import(name="upn")
    private @Nullable Output upn;

    /**
     * @return UPN of the user.
     * 
     */
    public Optional> upn() {
        return Optional.ofNullable(this.upn);
    }

    private PrincipalsArgs() {}

    private PrincipalsArgs(PrincipalsArgs $) {
        this.objectId = $.objectId;
        this.upn = $.upn;
    }

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

    public static final class Builder {
        private PrincipalsArgs $;

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

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

        /**
         * @param objectId Object Id for the user
         * 
         * @return builder
         * 
         */
        public Builder objectId(@Nullable Output objectId) {
            $.objectId = objectId;
            return this;
        }

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

        /**
         * @param upn UPN of the user.
         * 
         * @return builder
         * 
         */
        public Builder upn(@Nullable Output upn) {
            $.upn = upn;
            return this;
        }

        /**
         * @param upn UPN of the user.
         * 
         * @return builder
         * 
         */
        public Builder upn(String upn) {
            return upn(Output.of(upn));
        }

        public PrincipalsArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy