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

com.pulumi.azure.batch.inputs.PoolStartTaskUserIdentityArgs 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.batch.inputs;

import com.pulumi.azure.batch.inputs.PoolStartTaskUserIdentityAutoUserArgs;
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;


public final class PoolStartTaskUserIdentityArgs extends com.pulumi.resources.ResourceArgs {

    public static final PoolStartTaskUserIdentityArgs Empty = new PoolStartTaskUserIdentityArgs();

    /**
     * A `auto_user` block that describes the user identity under which the start task runs as defined below.
     * 
     * > **Please Note:** `user_name` and `auto_user` blocks cannot be used both at the same time, but you need to define one or the other.
     * 
     */
    @Import(name="autoUser")
    private @Nullable Output autoUser;

    /**
     * @return A `auto_user` block that describes the user identity under which the start task runs as defined below.
     * 
     * > **Please Note:** `user_name` and `auto_user` blocks cannot be used both at the same time, but you need to define one or the other.
     * 
     */
    public Optional> autoUser() {
        return Optional.ofNullable(this.autoUser);
    }

    /**
     * The username to be used by the Batch pool start task.
     * 
     */
    @Import(name="userName")
    private @Nullable Output userName;

    /**
     * @return The username to be used by the Batch pool start task.
     * 
     */
    public Optional> userName() {
        return Optional.ofNullable(this.userName);
    }

    private PoolStartTaskUserIdentityArgs() {}

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

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

    public static final class Builder {
        private PoolStartTaskUserIdentityArgs $;

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

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

        /**
         * @param autoUser A `auto_user` block that describes the user identity under which the start task runs as defined below.
         * 
         * > **Please Note:** `user_name` and `auto_user` blocks cannot be used both at the same time, but you need to define one or the other.
         * 
         * @return builder
         * 
         */
        public Builder autoUser(@Nullable Output autoUser) {
            $.autoUser = autoUser;
            return this;
        }

        /**
         * @param autoUser A `auto_user` block that describes the user identity under which the start task runs as defined below.
         * 
         * > **Please Note:** `user_name` and `auto_user` blocks cannot be used both at the same time, but you need to define one or the other.
         * 
         * @return builder
         * 
         */
        public Builder autoUser(PoolStartTaskUserIdentityAutoUserArgs autoUser) {
            return autoUser(Output.of(autoUser));
        }

        /**
         * @param userName The username to be used by the Batch pool start task.
         * 
         * @return builder
         * 
         */
        public Builder userName(@Nullable Output userName) {
            $.userName = userName;
            return this;
        }

        /**
         * @param userName The username to be used by the Batch pool start task.
         * 
         * @return builder
         * 
         */
        public Builder userName(String userName) {
            return userName(Output.of(userName));
        }

        public PoolStartTaskUserIdentityArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy