com.pulumi.aws.directconnect.inputs.GetLocationArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** 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