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

com.pulumi.aws.directconnect.inputs.GetLocationArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
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.aws.directconnect.inputs;

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


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

    public static final GetLocationArgs Empty = new GetLocationArgs();

    /**
     * Code for the location to retrieve.
     * 
     */
    @Import(name="locationCode", required=true)
    private Output locationCode;

    /**
     * @return Code for the location to retrieve.
     * 
     */
    public Output locationCode() {
        return this.locationCode;
    }

    private GetLocationArgs() {}

    private GetLocationArgs(GetLocationArgs $) {
        this.locationCode = $.locationCode;
    }

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

    public static final class Builder {
        private GetLocationArgs $;

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

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

        /**
         * @param locationCode Code for the location to retrieve.
         * 
         * @return builder
         * 
         */
        public Builder locationCode(Output locationCode) {
            $.locationCode = locationCode;
            return this;
        }

        /**
         * @param locationCode Code for the location to retrieve.
         * 
         * @return builder
         * 
         */
        public Builder locationCode(String locationCode) {
            return locationCode(Output.of(locationCode));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy