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

com.equinix.pulumi.metal.inputs.GetMetroArgs 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.equinix.pulumi.metal.inputs.GetMetroCapacityArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class GetMetroArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetMetroArgs Empty = new GetMetroArgs();

    /**
     * One or more device plans for which the metro must have capacity.
     * 
     */
    @Import(name="capacities")
    private @Nullable Output> capacities;

    /**
     * @return One or more device plans for which the metro must have capacity.
     * 
     */
    public Optional>> capacities() {
        return Optional.ofNullable(this.capacities);
    }

    /**
     * The metro code to search for.
     * 
     */
    @Import(name="code", required=true)
    private Output code;

    /**
     * @return The metro code to search for.
     * 
     */
    public Output code() {
        return this.code;
    }

    private GetMetroArgs() {}

    private GetMetroArgs(GetMetroArgs $) {
        this.capacities = $.capacities;
        this.code = $.code;
    }

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

    public static final class Builder {
        private GetMetroArgs $;

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

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

        /**
         * @param capacities One or more device plans for which the metro must have capacity.
         * 
         * @return builder
         * 
         */
        public Builder capacities(@Nullable Output> capacities) {
            $.capacities = capacities;
            return this;
        }

        /**
         * @param capacities One or more device plans for which the metro must have capacity.
         * 
         * @return builder
         * 
         */
        public Builder capacities(List capacities) {
            return capacities(Output.of(capacities));
        }

        /**
         * @param capacities One or more device plans for which the metro must have capacity.
         * 
         * @return builder
         * 
         */
        public Builder capacities(GetMetroCapacityArgs... capacities) {
            return capacities(List.of(capacities));
        }

        /**
         * @param code The metro code to search for.
         * 
         * @return builder
         * 
         */
        public Builder code(Output code) {
            $.code = code;
            return this;
        }

        /**
         * @param code The metro code to search for.
         * 
         * @return builder
         * 
         */
        public Builder code(String code) {
            return code(Output.of(code));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy