com.pulumi.alicloud.rds.outputs.GetInstanceEnginesInstanceEngineZoneId 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.rds.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 GetInstanceEnginesInstanceEngineZoneId {
/**
* @return The Zone to launch the DB instance
*
*/
private String id;
/**
* @return A list of sub zone ids which in the id - e.g If `id` is `cn-beijing-MAZ5(a,b)`, `sub_zone_ids` will be `["cn-beijing-a", "cn-beijing-b"]`.
*
*/
private List subZoneIds;
private GetInstanceEnginesInstanceEngineZoneId() {}
/**
* @return The Zone to launch the DB instance
*
*/
public String id() {
return this.id;
}
/**
* @return A list of sub zone ids which in the id - e.g If `id` is `cn-beijing-MAZ5(a,b)`, `sub_zone_ids` will be `["cn-beijing-a", "cn-beijing-b"]`.
*
*/
public List subZoneIds() {
return this.subZoneIds;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetInstanceEnginesInstanceEngineZoneId defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private List subZoneIds;
public Builder() {}
public Builder(GetInstanceEnginesInstanceEngineZoneId defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.subZoneIds = defaults.subZoneIds;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetInstanceEnginesInstanceEngineZoneId", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder subZoneIds(List subZoneIds) {
if (subZoneIds == null) {
throw new MissingRequiredPropertyException("GetInstanceEnginesInstanceEngineZoneId", "subZoneIds");
}
this.subZoneIds = subZoneIds;
return this;
}
public Builder subZoneIds(String... subZoneIds) {
return subZoneIds(List.of(subZoneIds));
}
public GetInstanceEnginesInstanceEngineZoneId build() {
final var _resultValue = new GetInstanceEnginesInstanceEngineZoneId();
_resultValue.id = id;
_resultValue.subZoneIds = subZoneIds;
return _resultValue;
}
}
}