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

com.pulumi.azurenative.devcenter.inputs.SkuArgs 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.devcenter.inputs;

import com.pulumi.azurenative.devcenter.enums.SkuTier;
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;


/**
 * The resource model definition representing SKU
 * 
 */
public final class SkuArgs extends com.pulumi.resources.ResourceArgs {

    public static final SkuArgs Empty = new SkuArgs();

    /**
     * If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
     * 
     */
    @Import(name="capacity")
    private @Nullable Output capacity;

    /**
     * @return If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
     * 
     */
    public Optional> capacity() {
        return Optional.ofNullable(this.capacity);
    }

    /**
     * If the service has different generations of hardware, for the same SKU, then that can be captured here.
     * 
     */
    @Import(name="family")
    private @Nullable Output family;

    /**
     * @return If the service has different generations of hardware, for the same SKU, then that can be captured here.
     * 
     */
    public Optional> family() {
        return Optional.ofNullable(this.family);
    }

    /**
     * The name of the SKU. E.g. P3. It is typically a letter+number code
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The name of the SKU. E.g. P3. It is typically a letter+number code
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
     * 
     */
    @Import(name="size")
    private @Nullable Output size;

    /**
     * @return The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
     * 
     */
    public Optional> size() {
        return Optional.ofNullable(this.size);
    }

    /**
     * This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.
     * 
     */
    @Import(name="tier")
    private @Nullable Output tier;

    /**
     * @return This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.
     * 
     */
    public Optional> tier() {
        return Optional.ofNullable(this.tier);
    }

    private SkuArgs() {}

    private SkuArgs(SkuArgs $) {
        this.capacity = $.capacity;
        this.family = $.family;
        this.name = $.name;
        this.size = $.size;
        this.tier = $.tier;
    }

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

    public static final class Builder {
        private SkuArgs $;

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

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

        /**
         * @param capacity If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
         * 
         * @return builder
         * 
         */
        public Builder capacity(@Nullable Output capacity) {
            $.capacity = capacity;
            return this;
        }

        /**
         * @param capacity If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
         * 
         * @return builder
         * 
         */
        public Builder capacity(Integer capacity) {
            return capacity(Output.of(capacity));
        }

        /**
         * @param family If the service has different generations of hardware, for the same SKU, then that can be captured here.
         * 
         * @return builder
         * 
         */
        public Builder family(@Nullable Output family) {
            $.family = family;
            return this;
        }

        /**
         * @param family If the service has different generations of hardware, for the same SKU, then that can be captured here.
         * 
         * @return builder
         * 
         */
        public Builder family(String family) {
            return family(Output.of(family));
        }

        /**
         * @param name The name of the SKU. E.g. P3. It is typically a letter+number code
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the SKU. E.g. P3. It is typically a letter+number code
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param size The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
         * 
         * @return builder
         * 
         */
        public Builder size(@Nullable Output size) {
            $.size = size;
            return this;
        }

        /**
         * @param size The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
         * 
         * @return builder
         * 
         */
        public Builder size(String size) {
            return size(Output.of(size));
        }

        /**
         * @param tier This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.
         * 
         * @return builder
         * 
         */
        public Builder tier(@Nullable Output tier) {
            $.tier = tier;
            return this;
        }

        /**
         * @param tier This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.
         * 
         * @return builder
         * 
         */
        public Builder tier(SkuTier tier) {
            return tier(Output.of(tier));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy