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

com.equinix.pulumi.metal.inputs.GetFacilityCapacityArgs Maven / Gradle / Ivy

There is a newer version: 0.19.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.equinix.pulumi.metal.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;


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

    public static final GetFacilityCapacityArgs Empty = new GetFacilityCapacityArgs();

    /**
     * Device plan that must be available in selected location.
     * 
     */
    @Import(name="plan", required=true)
    private Output plan;

    /**
     * @return Device plan that must be available in selected location.
     * 
     */
    public Output plan() {
        return this.plan;
    }

    /**
     * Minimun number of devices that must be available in selected location. Default is `1`.
     * 
     */
    @Import(name="quantity")
    private @Nullable Output quantity;

    /**
     * @return Minimun number of devices that must be available in selected location. Default is `1`.
     * 
     */
    public Optional> quantity() {
        return Optional.ofNullable(this.quantity);
    }

    private GetFacilityCapacityArgs() {}

    private GetFacilityCapacityArgs(GetFacilityCapacityArgs $) {
        this.plan = $.plan;
        this.quantity = $.quantity;
    }

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

    public static final class Builder {
        private GetFacilityCapacityArgs $;

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

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

        /**
         * @param plan Device plan that must be available in selected location.
         * 
         * @return builder
         * 
         */
        public Builder plan(Output plan) {
            $.plan = plan;
            return this;
        }

        /**
         * @param plan Device plan that must be available in selected location.
         * 
         * @return builder
         * 
         */
        public Builder plan(String plan) {
            return plan(Output.of(plan));
        }

        /**
         * @param quantity Minimun number of devices that must be available in selected location. Default is `1`.
         * 
         * @return builder
         * 
         */
        public Builder quantity(@Nullable Output quantity) {
            $.quantity = quantity;
            return this;
        }

        /**
         * @param quantity Minimun number of devices that must be available in selected location. Default is `1`.
         * 
         * @return builder
         * 
         */
        public Builder quantity(Integer quantity) {
            return quantity(Output.of(quantity));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy