com.pulumi.scm.outputs.RegionGeoLocation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scm Show documentation
Show all versions of scm Show documentation
A Pulumi package for managing resources on Strata Cloud Manager.
// *** 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.scm.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.util.Objects;
@CustomType
public final class RegionGeoLocation {
/**
* @return latitude coordinate. Value must be between -90 and 90.
*
*/
private Double latitude;
/**
* @return longitude coordinate. Value must be between -180 and 180.
*
*/
private Double longitude;
private RegionGeoLocation() {}
/**
* @return latitude coordinate. Value must be between -90 and 90.
*
*/
public Double latitude() {
return this.latitude;
}
/**
* @return longitude coordinate. Value must be between -180 and 180.
*
*/
public Double longitude() {
return this.longitude;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RegionGeoLocation defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Double latitude;
private Double longitude;
public Builder() {}
public Builder(RegionGeoLocation defaults) {
Objects.requireNonNull(defaults);
this.latitude = defaults.latitude;
this.longitude = defaults.longitude;
}
@CustomType.Setter
public Builder latitude(Double latitude) {
if (latitude == null) {
throw new MissingRequiredPropertyException("RegionGeoLocation", "latitude");
}
this.latitude = latitude;
return this;
}
@CustomType.Setter
public Builder longitude(Double longitude) {
if (longitude == null) {
throw new MissingRequiredPropertyException("RegionGeoLocation", "longitude");
}
this.longitude = longitude;
return this;
}
public RegionGeoLocation build() {
final var _resultValue = new RegionGeoLocation();
_resultValue.latitude = latitude;
_resultValue.longitude = longitude;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy