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

com.pulumi.azurenative.azurefleet.inputs.VmSizeProfileArgs 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.azurefleet.inputs;

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;


/**
 * Specifications about a VM Size. This will also contain the corresponding rank and weight in future.
 * 
 */
public final class VmSizeProfileArgs extends com.pulumi.resources.ResourceArgs {

    public static final VmSizeProfileArgs Empty = new VmSizeProfileArgs();

    /**
     * The Sku name (e.g. 'Standard_DS1_v2')
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The Sku name (e.g. 'Standard_DS1_v2')
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * The rank of the VM size. This is used with 'RegularPriorityAllocationStrategy.Prioritized'
     * The lower the number, the higher the priority. Starting with 0.
     * 
     */
    @Import(name="rank")
    private @Nullable Output rank;

    /**
     * @return The rank of the VM size. This is used with 'RegularPriorityAllocationStrategy.Prioritized'
     * The lower the number, the higher the priority. Starting with 0.
     * 
     */
    public Optional> rank() {
        return Optional.ofNullable(this.rank);
    }

    private VmSizeProfileArgs() {}

    private VmSizeProfileArgs(VmSizeProfileArgs $) {
        this.name = $.name;
        this.rank = $.rank;
    }

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

    public static final class Builder {
        private VmSizeProfileArgs $;

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

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

        /**
         * @param name The Sku name (e.g. 'Standard_DS1_v2')
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The Sku name (e.g. 'Standard_DS1_v2')
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param rank The rank of the VM size. This is used with 'RegularPriorityAllocationStrategy.Prioritized'
         * The lower the number, the higher the priority. Starting with 0.
         * 
         * @return builder
         * 
         */
        public Builder rank(@Nullable Output rank) {
            $.rank = rank;
            return this;
        }

        /**
         * @param rank The rank of the VM size. This is used with 'RegularPriorityAllocationStrategy.Prioritized'
         * The lower the number, the higher the priority. Starting with 0.
         * 
         * @return builder
         * 
         */
        public Builder rank(Integer rank) {
            return rank(Output.of(rank));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy