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

com.pulumi.azure.compute.outputs.OrchestratedVirtualMachineScaleSetPriorityMix Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.compute.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class OrchestratedVirtualMachineScaleSetPriorityMix {
    /**
     * @return Specifies the base number of VMs of `Regular` priority that will be created before any VMs of priority `Spot` are created. Possible values are integers between `0` and `1000`. Defaults to `0`.
     * 
     */
    private @Nullable Integer baseRegularCount;
    /**
     * @return Specifies the desired percentage of VM instances that are of `Regular` priority after the base count has been reached. Possible values are integers between `0` and `100`. Defaults to `0`.
     * 
     */
    private @Nullable Integer regularPercentageAboveBase;

    private OrchestratedVirtualMachineScaleSetPriorityMix() {}
    /**
     * @return Specifies the base number of VMs of `Regular` priority that will be created before any VMs of priority `Spot` are created. Possible values are integers between `0` and `1000`. Defaults to `0`.
     * 
     */
    public Optional baseRegularCount() {
        return Optional.ofNullable(this.baseRegularCount);
    }
    /**
     * @return Specifies the desired percentage of VM instances that are of `Regular` priority after the base count has been reached. Possible values are integers between `0` and `100`. Defaults to `0`.
     * 
     */
    public Optional regularPercentageAboveBase() {
        return Optional.ofNullable(this.regularPercentageAboveBase);
    }

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

    public static Builder builder(OrchestratedVirtualMachineScaleSetPriorityMix defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer baseRegularCount;
        private @Nullable Integer regularPercentageAboveBase;
        public Builder() {}
        public Builder(OrchestratedVirtualMachineScaleSetPriorityMix defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.baseRegularCount = defaults.baseRegularCount;
    	      this.regularPercentageAboveBase = defaults.regularPercentageAboveBase;
        }

        @CustomType.Setter
        public Builder baseRegularCount(@Nullable Integer baseRegularCount) {

            this.baseRegularCount = baseRegularCount;
            return this;
        }
        @CustomType.Setter
        public Builder regularPercentageAboveBase(@Nullable Integer regularPercentageAboveBase) {

            this.regularPercentageAboveBase = regularPercentageAboveBase;
            return this;
        }
        public OrchestratedVirtualMachineScaleSetPriorityMix build() {
            final var _resultValue = new OrchestratedVirtualMachineScaleSetPriorityMix();
            _resultValue.baseRegularCount = baseRegularCount;
            _resultValue.regularPercentageAboveBase = regularPercentageAboveBase;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy