com.pulumi.consul.outputs.GetDatacentersResult Maven / Gradle / Ivy
// *** 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.consul.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetDatacentersResult {
/**
* @return The list of datacenters known. The datacenters will be sorted
* in ascending order based on the estimated median round trip time from the server
* to the servers in that datacenter.
*
*/
private List datacenters;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private GetDatacentersResult() {}
/**
* @return The list of datacenters known. The datacenters will be sorted
* in ascending order based on the estimated median round trip time from the server
* to the servers in that datacenter.
*
*/
public List datacenters() {
return this.datacenters;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetDatacentersResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List datacenters;
private String id;
public Builder() {}
public Builder(GetDatacentersResult defaults) {
Objects.requireNonNull(defaults);
this.datacenters = defaults.datacenters;
this.id = defaults.id;
}
@CustomType.Setter
public Builder datacenters(List datacenters) {
if (datacenters == null) {
throw new MissingRequiredPropertyException("GetDatacentersResult", "datacenters");
}
this.datacenters = datacenters;
return this;
}
public Builder datacenters(String... datacenters) {
return datacenters(List.of(datacenters));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetDatacentersResult", "id");
}
this.id = id;
return this;
}
public GetDatacentersResult build() {
final var _resultValue = new GetDatacentersResult();
_resultValue.datacenters = datacenters;
_resultValue.id = id;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy