// *** 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.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class PoolStartTaskUserIdentityAutoUser {
    /**
     * @return The elevation level of the user identity under which the start task runs. Possible values are `Admin` or `NonAdmin`. Defaults to `NonAdmin`.
     * 
     */
    private @Nullable String elevationLevel;
    /**
     * @return The scope of the user identity under which the start task runs. Possible values are `Task` or `Pool`. Defaults to `Task`.
     * 
     */
    private @Nullable String scope;

    private PoolStartTaskUserIdentityAutoUser() {}
    /**
     * @return The elevation level of the user identity under which the start task runs. Possible values are `Admin` or `NonAdmin`. Defaults to `NonAdmin`.
     * 
     */
    public Optional<String> elevationLevel() {
        return Optional.ofNullable(this.elevationLevel);
    }
    /**
     * @return The scope of the user identity under which the start task runs. Possible values are `Task` or `Pool`. Defaults to `Task`.
     * 
     */
    public Optional<String> scope() {
        return Optional.ofNullable(this.scope);
    }

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

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

        @CustomType.Setter
        public Builder elevationLevel(@Nullable String elevationLevel) {
            this.elevationLevel = elevationLevel;
            return this;
        }
        @CustomType.Setter
        public Builder scope(@Nullable String scope) {
            this.scope = scope;
            return this;
        }
        public PoolStartTaskUserIdentityAutoUser build() {
            final var o = new PoolStartTaskUserIdentityAutoUser();
            o.elevationLevel = elevationLevel;
            o.scope = scope;
            return o;
        }
    }
}
