com.pulumi.linode.outputs.GetRegionResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of linode Show documentation
Show all versions of linode Show documentation
A Pulumi package for creating and managing linode 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.linode.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.linode.outputs.GetRegionPlacementGroupLimit;
import com.pulumi.linode.outputs.GetRegionResolver;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class GetRegionResult {
/**
* @return A list of capabilities of this region.
*
*/
private List capabilities;
/**
* @return The country the region resides in.
*
*/
private String country;
private String id;
/**
* @return Detailed location information for this Region, including city, state or region, and country.
*
*/
private String label;
private List placementGroupLimits;
private @Nullable List resolvers;
/**
* @return The type of this region.
*
*/
private String siteType;
/**
* @return This region’s current operational status (ok or outage).
*
*/
private String status;
private GetRegionResult() {}
/**
* @return A list of capabilities of this region.
*
*/
public List capabilities() {
return this.capabilities;
}
/**
* @return The country the region resides in.
*
*/
public String country() {
return this.country;
}
public String id() {
return this.id;
}
/**
* @return Detailed location information for this Region, including city, state or region, and country.
*
*/
public String label() {
return this.label;
}
public List placementGroupLimits() {
return this.placementGroupLimits;
}
public List resolvers() {
return this.resolvers == null ? List.of() : this.resolvers;
}
/**
* @return The type of this region.
*
*/
public String siteType() {
return this.siteType;
}
/**
* @return This region’s current operational status (ok or outage).
*
*/
public String status() {
return this.status;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetRegionResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List capabilities;
private String country;
private String id;
private String label;
private List placementGroupLimits;
private @Nullable List resolvers;
private String siteType;
private String status;
public Builder() {}
public Builder(GetRegionResult defaults) {
Objects.requireNonNull(defaults);
this.capabilities = defaults.capabilities;
this.country = defaults.country;
this.id = defaults.id;
this.label = defaults.label;
this.placementGroupLimits = defaults.placementGroupLimits;
this.resolvers = defaults.resolvers;
this.siteType = defaults.siteType;
this.status = defaults.status;
}
@CustomType.Setter
public Builder capabilities(List capabilities) {
if (capabilities == null) {
throw new MissingRequiredPropertyException("GetRegionResult", "capabilities");
}
this.capabilities = capabilities;
return this;
}
public Builder capabilities(String... capabilities) {
return capabilities(List.of(capabilities));
}
@CustomType.Setter
public Builder country(String country) {
if (country == null) {
throw new MissingRequiredPropertyException("GetRegionResult", "country");
}
this.country = country;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetRegionResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder label(String label) {
if (label == null) {
throw new MissingRequiredPropertyException("GetRegionResult", "label");
}
this.label = label;
return this;
}
@CustomType.Setter
public Builder placementGroupLimits(List placementGroupLimits) {
if (placementGroupLimits == null) {
throw new MissingRequiredPropertyException("GetRegionResult", "placementGroupLimits");
}
this.placementGroupLimits = placementGroupLimits;
return this;
}
public Builder placementGroupLimits(GetRegionPlacementGroupLimit... placementGroupLimits) {
return placementGroupLimits(List.of(placementGroupLimits));
}
@CustomType.Setter
public Builder resolvers(@Nullable List resolvers) {
this.resolvers = resolvers;
return this;
}
public Builder resolvers(GetRegionResolver... resolvers) {
return resolvers(List.of(resolvers));
}
@CustomType.Setter
public Builder siteType(String siteType) {
if (siteType == null) {
throw new MissingRequiredPropertyException("GetRegionResult", "siteType");
}
this.siteType = siteType;
return this;
}
@CustomType.Setter
public Builder status(String status) {
if (status == null) {
throw new MissingRequiredPropertyException("GetRegionResult", "status");
}
this.status = status;
return this;
}
public GetRegionResult build() {
final var _resultValue = new GetRegionResult();
_resultValue.capabilities = capabilities;
_resultValue.country = country;
_resultValue.id = id;
_resultValue.label = label;
_resultValue.placementGroupLimits = placementGroupLimits;
_resultValue.resolvers = resolvers;
_resultValue.siteType = siteType;
_resultValue.status = status;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy