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

com.pulumi.azure.batch.outputs.PoolStartTaskUserIdentity Maven / Gradle / Ivy

// *** 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.outputs;

import com.pulumi.azure.batch.outputs.PoolStartTaskUserIdentityAutoUser;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class PoolStartTaskUserIdentity {
    /**
     * @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.
     * 
     */
    private @Nullable PoolStartTaskUserIdentityAutoUser autoUser;
    /**
     * @return The username to be used by the Batch pool start task.
     * 
     */
    private @Nullable String userName;

    private PoolStartTaskUserIdentity() {}
    /**
     * @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);
    }
    /**
     * @return The username to be used by the Batch pool start task.
     * 
     */
    public Optional userName() {
        return Optional.ofNullable(this.userName);
    }

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

    public static Builder builder(PoolStartTaskUserIdentity defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable PoolStartTaskUserIdentityAutoUser autoUser;
        private @Nullable String userName;
        public Builder() {}
        public Builder(PoolStartTaskUserIdentity defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.autoUser = defaults.autoUser;
    	      this.userName = defaults.userName;
        }

        @CustomType.Setter
        public Builder autoUser(@Nullable PoolStartTaskUserIdentityAutoUser autoUser) {

            this.autoUser = autoUser;
            return this;
        }
        @CustomType.Setter
        public Builder userName(@Nullable String userName) {

            this.userName = userName;
            return this;
        }
        public PoolStartTaskUserIdentity build() {
            final var _resultValue = new PoolStartTaskUserIdentity();
            _resultValue.autoUser = autoUser;
            _resultValue.userName = userName;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy