// *** 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.iot.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;


public final class IoTHubSkuArgs extends com.pulumi.resources.ResourceArgs {

    public static final IoTHubSkuArgs Empty = new IoTHubSkuArgs();

    /**
     * The number of provisioned IoT Hub units.
     * 
     * &gt; **NOTE:** Only one IotHub can be on the `Free` tier per subscription.
     * 
     */
    @Import(name="capacity", required=true)
    private Output<Integer> capacity;

    /**
     * @return The number of provisioned IoT Hub units.
     * 
     * &gt; **NOTE:** Only one IotHub can be on the `Free` tier per subscription.
     * 
     */
    public Output<Integer> capacity() {
        return this.capacity;
    }

    /**
     * The name of the sku. Possible values are `B1`, `B2`, `B3`, `F1`, `S1`, `S2`, and `S3`.
     * 
     */
    @Import(name="name", required=true)
    private Output<String> name;

    /**
     * @return The name of the sku. Possible values are `B1`, `B2`, `B3`, `F1`, `S1`, `S2`, and `S3`.
     * 
     */
    public Output<String> name() {
        return this.name;
    }

    private IoTHubSkuArgs() {}

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

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

    public static final class Builder {
        private IoTHubSkuArgs $;

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

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

        /**
         * @param capacity The number of provisioned IoT Hub units.
         * 
         * &gt; **NOTE:** Only one IotHub can be on the `Free` tier per subscription.
         * 
         * @return builder
         * 
         */
        public Builder capacity(Output<Integer> capacity) {
            $.capacity = capacity;
            return this;
        }

        /**
         * @param capacity The number of provisioned IoT Hub units.
         * 
         * &gt; **NOTE:** Only one IotHub can be on the `Free` tier per subscription.
         * 
         * @return builder
         * 
         */
        public Builder capacity(Integer capacity) {
            return capacity(Output.of(capacity));
        }

        /**
         * @param name The name of the sku. Possible values are `B1`, `B2`, `B3`, `F1`, `S1`, `S2`, and `S3`.
         * 
         * @return builder
         * 
         */
        public Builder name(Output<String> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the sku. Possible values are `B1`, `B2`, `B3`, `F1`, `S1`, `S2`, and `S3`.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        public IoTHubSkuArgs build() {
            $.capacity = Objects.requireNonNull($.capacity, "expected parameter 'capacity' to be non-null");
            $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null");
            return $;
        }
    }

}
