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

com.pulumi.azurenative.datalakeanalytics.ComputePolicyArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.datalakeanalytics;

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;


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

    public static final ComputePolicyArgs Empty = new ComputePolicyArgs();

    /**
     * The name of the Data Lake Analytics account.
     * 
     */
    @Import(name="accountName", required=true)
    private Output accountName;

    /**
     * @return The name of the Data Lake Analytics account.
     * 
     */
    public Output accountName() {
        return this.accountName;
    }

    /**
     * The name of the compute policy to create or update.
     * 
     */
    @Import(name="computePolicyName")
    private @Nullable Output computePolicyName;

    /**
     * @return The name of the compute policy to create or update.
     * 
     */
    public Optional> computePolicyName() {
        return Optional.ofNullable(this.computePolicyName);
    }

    /**
     * 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 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;
    }

    /**
     * The name of the Azure resource group.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the Azure resource group.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    private ComputePolicyArgs() {}

    private ComputePolicyArgs(ComputePolicyArgs $) {
        this.accountName = $.accountName;
        this.computePolicyName = $.computePolicyName;
        this.maxDegreeOfParallelismPerJob = $.maxDegreeOfParallelismPerJob;
        this.minPriorityPerJob = $.minPriorityPerJob;
        this.objectId = $.objectId;
        this.objectType = $.objectType;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private ComputePolicyArgs $;

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

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

        /**
         * @param accountName The name of the Data Lake Analytics account.
         * 
         * @return builder
         * 
         */
        public Builder accountName(Output accountName) {
            $.accountName = accountName;
            return this;
        }

        /**
         * @param accountName The name of the Data Lake Analytics account.
         * 
         * @return builder
         * 
         */
        public Builder accountName(String accountName) {
            return accountName(Output.of(accountName));
        }

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

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

        /**
         * @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 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));
        }

        /**
         * @param resourceGroupName The name of the Azure resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the Azure resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy