com.pulumi.alicloud.eci.outputs.GetZonesZone Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud 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.alicloud.eci.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 GetZonesZone {
/**
* @return The endpoint of the region.
*
*/
private String regionEndpoint;
/**
* @return The list of available zone ids.
*
*/
private List zoneIds;
private GetZonesZone() {}
/**
* @return The endpoint of the region.
*
*/
public String regionEndpoint() {
return this.regionEndpoint;
}
/**
* @return The list of available zone ids.
*
*/
public List zoneIds() {
return this.zoneIds;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetZonesZone defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String regionEndpoint;
private List zoneIds;
public Builder() {}
public Builder(GetZonesZone defaults) {
Objects.requireNonNull(defaults);
this.regionEndpoint = defaults.regionEndpoint;
this.zoneIds = defaults.zoneIds;
}
@CustomType.Setter
public Builder regionEndpoint(String regionEndpoint) {
if (regionEndpoint == null) {
throw new MissingRequiredPropertyException("GetZonesZone", "regionEndpoint");
}
this.regionEndpoint = regionEndpoint;
return this;
}
@CustomType.Setter
public Builder zoneIds(List zoneIds) {
if (zoneIds == null) {
throw new MissingRequiredPropertyException("GetZonesZone", "zoneIds");
}
this.zoneIds = zoneIds;
return this;
}
public Builder zoneIds(String... zoneIds) {
return zoneIds(List.of(zoneIds));
}
public GetZonesZone build() {
final var _resultValue = new GetZonesZone();
_resultValue.regionEndpoint = regionEndpoint;
_resultValue.zoneIds = zoneIds;
return _resultValue;
}
}
}