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

com.pulumi.azurenative.datalakeanalytics.inputs.CreateComputePolicyWithAccountParametersArgs 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.azurenative.datalakeanalytics.inputs;

import com.pulumi.azurenative.datalakeanalytics.enums.AADObjectType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The parameters used to create a new compute policy while creating a new Data Lake Analytics account.
 * 
 */
public final class CreateComputePolicyWithAccountParametersArgs extends com.pulumi.resources.ResourceArgs {

    public static final CreateComputePolicyWithAccountParametersArgs Empty = new CreateComputePolicyWithAccountParametersArgs();

    /**
     * The maximum degree of parallelism per job this user can use to submit jobs. This property, the min priority per job property, or both must be passed.
     * 
     */
    @Import(name="maxDegreeOfParallelismPerJob")
    private @Nullable Output maxDegreeOfParallelismPerJob;

    /**
     * @return The maximum degree of parallelism per job this user can use to submit jobs. This property, the min priority per job property, or both must be passed.
     * 
     */
    public Optional> maxDegreeOfParallelismPerJob() {
        return Optional.ofNullable(this.maxDegreeOfParallelismPerJob);
    }

    /**
     * The minimum priority per job this user can use to submit jobs. This property, the max degree of parallelism per job property, or both must be passed.
     * 
     */
    @Import(name="minPriorityPerJob")
    private @Nullable Output minPriorityPerJob;

    /**
     * @return The minimum priority per job this user can use to submit jobs. This property, the max degree of parallelism per job property, or both must be passed.
     * 
     */
    public Optional> minPriorityPerJob() {
        return Optional.ofNullable(this.minPriorityPerJob);
    }

    /**
     * The unique name of the compute policy to create.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The unique name of the compute policy to create.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * The AAD object identifier for the entity to create a policy for.
     * 
     */
    @Import(name="objectId", required=true)
    private Output objectId;

    /**
     * @return The AAD object identifier for the entity to create a policy for.
     * 
     */
    public Output objectId() {
        return this.objectId;
    }

    /**
     * The type of AAD object the object identifier refers to.
     * 
     */
    @Import(name="objectType", required=true)
    private Output> objectType;

    /**
     * @return The type of AAD object the object identifier refers to.
     * 
     */
    public Output> objectType() {
        return this.objectType;
    }

    private CreateComputePolicyWithAccountParametersArgs() {}

    private CreateComputePolicyWithAccountParametersArgs(CreateComputePolicyWithAccountParametersArgs $) {
        this.maxDegreeOfParallelismPerJob = $.maxDegreeOfParallelismPerJob;
        this.minPriorityPerJob = $.minPriorityPerJob;
        this.name = $.name;
        this.objectId = $.objectId;
        this.objectType = $.objectType;
    }

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

    public static final class Builder {
        private CreateComputePolicyWithAccountParametersArgs $;

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

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

        /**
         * @param maxDegreeOfParallelismPerJob The maximum degree of parallelism per job this user can use to submit jobs. This property, the min priority per job property, or both must be passed.
         * 
         * @return builder
         * 
         */
        public Builder maxDegreeOfParallelismPerJob(@Nullable Output maxDegreeOfParallelismPerJob) {
            $.maxDegreeOfParallelismPerJob = maxDegreeOfParallelismPerJob;
            return this;
        }

        /**
         * @param maxDegreeOfParallelismPerJob The maximum degree of parallelism per job this user can use to submit jobs. This property, the min priority per job property, or both must be passed.
         * 
         * @return builder
         * 
         */
        public Builder maxDegreeOfParallelismPerJob(Integer maxDegreeOfParallelismPerJob) {
            return maxDegreeOfParallelismPerJob(Output.of(maxDegreeOfParallelismPerJob));
        }

        /**
         * @param minPriorityPerJob The minimum priority per job this user can use to submit jobs. This property, the max degree of parallelism per job property, or both must be passed.
         * 
         * @return builder
         * 
         */
        public Builder minPriorityPerJob(@Nullable Output minPriorityPerJob) {
            $.minPriorityPerJob = minPriorityPerJob;
            return this;
        }

        /**
         * @param minPriorityPerJob The minimum priority per job this user can use to submit jobs. This property, the max degree of parallelism per job property, or both must be passed.
         * 
         * @return builder
         * 
         */
        public Builder minPriorityPerJob(Integer minPriorityPerJob) {
            return minPriorityPerJob(Output.of(minPriorityPerJob));
        }

        /**
         * @param name The unique name of the compute policy to create.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The unique name of the compute policy to create.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param objectId The AAD object identifier for the entity to create a policy for.
         * 
         * @return builder
         * 
         */
        public Builder objectId(Output objectId) {
            $.objectId = objectId;
            return this;
        }

        /**
         * @param objectId The AAD object identifier for the entity to create a policy for.
         * 
         * @return builder
         * 
         */
        public Builder objectId(String objectId) {
            return objectId(Output.of(objectId));
        }

        /**
         * @param objectType The type of AAD object the object identifier refers to.
         * 
         * @return builder
         * 
         */
        public Builder objectType(Output> objectType) {
            $.objectType = objectType;
            return this;
        }

        /**
         * @param objectType The type of AAD object the object identifier refers to.
         * 
         * @return builder
         * 
         */
        public Builder objectType(Either objectType) {
            return objectType(Output.of(objectType));
        }

        /**
         * @param objectType The type of AAD object the object identifier refers to.
         * 
         * @return builder
         * 
         */
        public Builder objectType(String objectType) {
            return objectType(Either.ofLeft(objectType));
        }

        /**
         * @param objectType The type of AAD object the object identifier refers to.
         * 
         * @return builder
         * 
         */
        public Builder objectType(AADObjectType objectType) {
            return objectType(Either.ofRight(objectType));
        }

        public CreateComputePolicyWithAccountParametersArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("CreateComputePolicyWithAccountParametersArgs", "name");
            }
            if ($.objectId == null) {
                throw new MissingRequiredPropertyException("CreateComputePolicyWithAccountParametersArgs", "objectId");
            }
            if ($.objectType == null) {
                throw new MissingRequiredPropertyException("CreateComputePolicyWithAccountParametersArgs", "objectType");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy