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

com.pulumi.azurenative.apimanagement.inputs.ApiManagementServiceSkuPropertiesArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.apimanagement.inputs;

import com.pulumi.azurenative.apimanagement.enums.SkuType;
import com.pulumi.core.Either;
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;


/**
 * API Management service resource SKU properties.
 * 
 */
public final class ApiManagementServiceSkuPropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final ApiManagementServiceSkuPropertiesArgs Empty = new ApiManagementServiceSkuPropertiesArgs();

    /**
     * Capacity of the SKU (number of deployed units of the SKU). For Consumption SKU capacity must be specified as 0.
     * 
     */
    @Import(name="capacity", required=true)
    private Output capacity;

    /**
     * @return Capacity of the SKU (number of deployed units of the SKU). For Consumption SKU capacity must be specified as 0.
     * 
     */
    public Output capacity() {
        return this.capacity;
    }

    /**
     * Name of the Sku.
     * 
     */
    @Import(name="name", required=true)
    private Output> name;

    /**
     * @return Name of the Sku.
     * 
     */
    public Output> name() {
        return this.name;
    }

    private ApiManagementServiceSkuPropertiesArgs() {}

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

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

    public static final class Builder {
        private ApiManagementServiceSkuPropertiesArgs $;

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

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

        /**
         * @param capacity Capacity of the SKU (number of deployed units of the SKU). For Consumption SKU capacity must be specified as 0.
         * 
         * @return builder
         * 
         */
        public Builder capacity(Output capacity) {
            $.capacity = capacity;
            return this;
        }

        /**
         * @param capacity Capacity of the SKU (number of deployed units of the SKU). For Consumption SKU capacity must be specified as 0.
         * 
         * @return builder
         * 
         */
        public Builder capacity(Integer capacity) {
            return capacity(Output.of(capacity));
        }

        /**
         * @param name Name of the Sku.
         * 
         * @return builder
         * 
         */
        public Builder name(Output> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the Sku.
         * 
         * @return builder
         * 
         */
        public Builder name(Either name) {
            return name(Output.of(name));
        }

        /**
         * @param name Name of the Sku.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Either.ofLeft(name));
        }

        /**
         * @param name Name of the Sku.
         * 
         * @return builder
         * 
         */
        public Builder name(SkuType name) {
            return name(Either.ofRight(name));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy