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

com.pulumi.azurenative.azurefleet.inputs.RegularPriorityProfileArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.azurefleet.inputs;

import com.pulumi.azurenative.azurefleet.enums.RegularPriorityAllocationStrategy;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Configuration Options for Regular instances in Compute Fleet.
 * 
 */
public final class RegularPriorityProfileArgs extends com.pulumi.resources.ResourceArgs {

    public static final RegularPriorityProfileArgs Empty = new RegularPriorityProfileArgs();

    /**
     * Allocation strategy to follow when determining the VM sizes distribution for Regular VMs.
     * 
     */
    @Import(name="allocationStrategy")
    private @Nullable Output> allocationStrategy;

    /**
     * @return Allocation strategy to follow when determining the VM sizes distribution for Regular VMs.
     * 
     */
    public Optional>> allocationStrategy() {
        return Optional.ofNullable(this.allocationStrategy);
    }

    /**
     * Total capacity to achieve. It is currently in terms of number of VMs.
     * 
     */
    @Import(name="capacity")
    private @Nullable Output capacity;

    /**
     * @return Total capacity to achieve. It is currently in terms of number of VMs.
     * 
     */
    public Optional> capacity() {
        return Optional.ofNullable(this.capacity);
    }

    /**
     * Minimum capacity to achieve which cannot be updated. If we will not be able to "guarantee" minimum capacity, we will reject the request in the sync path itself.
     * 
     */
    @Import(name="minCapacity")
    private @Nullable Output minCapacity;

    /**
     * @return Minimum capacity to achieve which cannot be updated. If we will not be able to "guarantee" minimum capacity, we will reject the request in the sync path itself.
     * 
     */
    public Optional> minCapacity() {
        return Optional.ofNullable(this.minCapacity);
    }

    private RegularPriorityProfileArgs() {}

    private RegularPriorityProfileArgs(RegularPriorityProfileArgs $) {
        this.allocationStrategy = $.allocationStrategy;
        this.capacity = $.capacity;
        this.minCapacity = $.minCapacity;
    }

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

    public static final class Builder {
        private RegularPriorityProfileArgs $;

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

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

        /**
         * @param allocationStrategy Allocation strategy to follow when determining the VM sizes distribution for Regular VMs.
         * 
         * @return builder
         * 
         */
        public Builder allocationStrategy(@Nullable Output> allocationStrategy) {
            $.allocationStrategy = allocationStrategy;
            return this;
        }

        /**
         * @param allocationStrategy Allocation strategy to follow when determining the VM sizes distribution for Regular VMs.
         * 
         * @return builder
         * 
         */
        public Builder allocationStrategy(Either allocationStrategy) {
            return allocationStrategy(Output.of(allocationStrategy));
        }

        /**
         * @param allocationStrategy Allocation strategy to follow when determining the VM sizes distribution for Regular VMs.
         * 
         * @return builder
         * 
         */
        public Builder allocationStrategy(String allocationStrategy) {
            return allocationStrategy(Either.ofLeft(allocationStrategy));
        }

        /**
         * @param allocationStrategy Allocation strategy to follow when determining the VM sizes distribution for Regular VMs.
         * 
         * @return builder
         * 
         */
        public Builder allocationStrategy(RegularPriorityAllocationStrategy allocationStrategy) {
            return allocationStrategy(Either.ofRight(allocationStrategy));
        }

        /**
         * @param capacity Total capacity to achieve. It is currently in terms of number of VMs.
         * 
         * @return builder
         * 
         */
        public Builder capacity(@Nullable Output capacity) {
            $.capacity = capacity;
            return this;
        }

        /**
         * @param capacity Total capacity to achieve. It is currently in terms of number of VMs.
         * 
         * @return builder
         * 
         */
        public Builder capacity(Integer capacity) {
            return capacity(Output.of(capacity));
        }

        /**
         * @param minCapacity Minimum capacity to achieve which cannot be updated. If we will not be able to "guarantee" minimum capacity, we will reject the request in the sync path itself.
         * 
         * @return builder
         * 
         */
        public Builder minCapacity(@Nullable Output minCapacity) {
            $.minCapacity = minCapacity;
            return this;
        }

        /**
         * @param minCapacity Minimum capacity to achieve which cannot be updated. If we will not be able to "guarantee" minimum capacity, we will reject the request in the sync path itself.
         * 
         * @return builder
         * 
         */
        public Builder minCapacity(Integer minCapacity) {
            return minCapacity(Output.of(minCapacity));
        }

        public RegularPriorityProfileArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy