// *** 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 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<String> locationCode;

    /**
     * @return Code for the location to retrieve.
     * 
     */
    public Output<String> 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<String> 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() {
            $.locationCode = Objects.requireNonNull($.locationCode, "expected parameter 'locationCode' to be non-null");
            return $;
        }
    }

}
