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

com.pulumi.azurenative.machinelearning.inputs.ResourceSkuArgs 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.machinelearning.inputs;

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;


/**
 * The SKU of a resource.
 * 
 */
public final class ResourceSkuArgs extends com.pulumi.resources.ResourceArgs {

    public static final ResourceSkuArgs Empty = new ResourceSkuArgs();

    /**
     * The scale-out capacity of the resource. 1 is 1x, 2 is 2x, etc. This impacts the quantities and cost of any commitment plan resource.
     * 
     */
    @Import(name="capacity")
    private @Nullable Output capacity;

    /**
     * @return The scale-out capacity of the resource. 1 is 1x, 2 is 2x, etc. This impacts the quantities and cost of any commitment plan resource.
     * 
     */
    public Optional> capacity() {
        return Optional.ofNullable(this.capacity);
    }

    /**
     * The SKU name. Along with tier, uniquely identifies the SKU.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The SKU name. Along with tier, uniquely identifies the SKU.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The SKU tier. Along with name, uniquely identifies the SKU.
     * 
     */
    @Import(name="tier")
    private @Nullable Output tier;

    /**
     * @return The SKU tier. Along with name, uniquely identifies the SKU.
     * 
     */
    public Optional> tier() {
        return Optional.ofNullable(this.tier);
    }

    private ResourceSkuArgs() {}

    private ResourceSkuArgs(ResourceSkuArgs $) {
        this.capacity = $.capacity;
        this.name = $.name;
        this.tier = $.tier;
    }

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

    public static final class Builder {
        private ResourceSkuArgs $;

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

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

        /**
         * @param capacity The scale-out capacity of the resource. 1 is 1x, 2 is 2x, etc. This impacts the quantities and cost of any commitment plan resource.
         * 
         * @return builder
         * 
         */
        public Builder capacity(@Nullable Output capacity) {
            $.capacity = capacity;
            return this;
        }

        /**
         * @param capacity The scale-out capacity of the resource. 1 is 1x, 2 is 2x, etc. This impacts the quantities and cost of any commitment plan resource.
         * 
         * @return builder
         * 
         */
        public Builder capacity(Integer capacity) {
            return capacity(Output.of(capacity));
        }

        /**
         * @param name The SKU name. Along with tier, uniquely identifies the SKU.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The SKU name. Along with tier, uniquely identifies the SKU.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param tier The SKU tier. Along with name, uniquely identifies the SKU.
         * 
         * @return builder
         * 
         */
        public Builder tier(@Nullable Output tier) {
            $.tier = tier;
            return this;
        }

        /**
         * @param tier The SKU tier. Along with name, uniquely identifies the SKU.
         * 
         * @return builder
         * 
         */
        public Builder tier(String tier) {
            return tier(Output.of(tier));
        }

        public ResourceSkuArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy