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

com.pulumi.azurenative.batch.inputs.UserIdentityArgs 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.batch.inputs;

import com.pulumi.azurenative.batch.inputs.AutoUserSpecificationArgs;
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;


/**
 * Specify either the userName or autoUser property, but not both.
 * 
 */
public final class UserIdentityArgs extends com.pulumi.resources.ResourceArgs {

    public static final UserIdentityArgs Empty = new UserIdentityArgs();

    /**
     * The userName and autoUser properties are mutually exclusive; you must specify one but not both.
     * 
     */
    @Import(name="autoUser")
    private @Nullable Output autoUser;

    /**
     * @return The userName and autoUser properties are mutually exclusive; you must specify one but not both.
     * 
     */
    public Optional> autoUser() {
        return Optional.ofNullable(this.autoUser);
    }

    /**
     * The userName and autoUser properties are mutually exclusive; you must specify one but not both.
     * 
     */
    @Import(name="userName")
    private @Nullable Output userName;

    /**
     * @return The userName and autoUser properties are mutually exclusive; you must specify one but not both.
     * 
     */
    public Optional> userName() {
        return Optional.ofNullable(this.userName);
    }

    private UserIdentityArgs() {}

    private UserIdentityArgs(UserIdentityArgs $) {
        this.autoUser = $.autoUser;
        this.userName = $.userName;
    }

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

    public static final class Builder {
        private UserIdentityArgs $;

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

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

        /**
         * @param autoUser The userName and autoUser properties are mutually exclusive; you must specify one but not both.
         * 
         * @return builder
         * 
         */
        public Builder autoUser(@Nullable Output autoUser) {
            $.autoUser = autoUser;
            return this;
        }

        /**
         * @param autoUser The userName and autoUser properties are mutually exclusive; you must specify one but not both.
         * 
         * @return builder
         * 
         */
        public Builder autoUser(AutoUserSpecificationArgs autoUser) {
            return autoUser(Output.of(autoUser));
        }

        /**
         * @param userName The userName and autoUser properties are mutually exclusive; you must specify one but not both.
         * 
         * @return builder
         * 
         */
        public Builder userName(@Nullable Output userName) {
            $.userName = userName;
            return this;
        }

        /**
         * @param userName The userName and autoUser properties are mutually exclusive; you must specify one but not both.
         * 
         * @return builder
         * 
         */
        public Builder userName(String userName) {
            return userName(Output.of(userName));
        }

        public UserIdentityArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy