com.pulumi.alicloud.pvtz.outputs.GetZonesResult 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.pvtz.outputs;
import com.pulumi.alicloud.pvtz.outputs.GetZonesZone;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetZonesResult {
private @Nullable Boolean enableDetails;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return A list of zone IDs.
*
*/
private List ids;
private @Nullable String keyword;
private @Nullable String lang;
private @Nullable String nameRegex;
/**
* @return A list of zone names.
*
*/
private List names;
private @Nullable String outputFile;
private @Nullable String queryRegionId;
private @Nullable String queryVpcId;
/**
* @return The Id of resource group which the Private Zone belongs.
*
*/
private @Nullable String resourceGroupId;
private @Nullable String searchMode;
/**
* @return A list of zones. Each element contains the following attributes:
*
*/
private List zones;
private GetZonesResult() {}
public Optional enableDetails() {
return Optional.ofNullable(this.enableDetails);
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return A list of zone IDs.
*
*/
public List ids() {
return this.ids;
}
public Optional keyword() {
return Optional.ofNullable(this.keyword);
}
public Optional lang() {
return Optional.ofNullable(this.lang);
}
public Optional nameRegex() {
return Optional.ofNullable(this.nameRegex);
}
/**
* @return A list of zone names.
*
*/
public List names() {
return this.names;
}
public Optional outputFile() {
return Optional.ofNullable(this.outputFile);
}
public Optional queryRegionId() {
return Optional.ofNullable(this.queryRegionId);
}
public Optional queryVpcId() {
return Optional.ofNullable(this.queryVpcId);
}
/**
* @return The Id of resource group which the Private Zone belongs.
*
*/
public Optional resourceGroupId() {
return Optional.ofNullable(this.resourceGroupId);
}
public Optional searchMode() {
return Optional.ofNullable(this.searchMode);
}
/**
* @return A list of zones. Each element contains the following attributes:
*
*/
public List zones() {
return this.zones;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetZonesResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean enableDetails;
private String id;
private List ids;
private @Nullable String keyword;
private @Nullable String lang;
private @Nullable String nameRegex;
private List names;
private @Nullable String outputFile;
private @Nullable String queryRegionId;
private @Nullable String queryVpcId;
private @Nullable String resourceGroupId;
private @Nullable String searchMode;
private List zones;
public Builder() {}
public Builder(GetZonesResult defaults) {
Objects.requireNonNull(defaults);
this.enableDetails = defaults.enableDetails;
this.id = defaults.id;
this.ids = defaults.ids;
this.keyword = defaults.keyword;
this.lang = defaults.lang;
this.nameRegex = defaults.nameRegex;
this.names = defaults.names;
this.outputFile = defaults.outputFile;
this.queryRegionId = defaults.queryRegionId;
this.queryVpcId = defaults.queryVpcId;
this.resourceGroupId = defaults.resourceGroupId;
this.searchMode = defaults.searchMode;
this.zones = defaults.zones;
}
@CustomType.Setter
public Builder enableDetails(@Nullable Boolean enableDetails) {
this.enableDetails = enableDetails;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetZonesResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder ids(List ids) {
if (ids == null) {
throw new MissingRequiredPropertyException("GetZonesResult", "ids");
}
this.ids = ids;
return this;
}
public Builder ids(String... ids) {
return ids(List.of(ids));
}
@CustomType.Setter
public Builder keyword(@Nullable String keyword) {
this.keyword = keyword;
return this;
}
@CustomType.Setter
public Builder lang(@Nullable String lang) {
this.lang = lang;
return this;
}
@CustomType.Setter
public Builder nameRegex(@Nullable String nameRegex) {
this.nameRegex = nameRegex;
return this;
}
@CustomType.Setter
public Builder names(List names) {
if (names == null) {
throw new MissingRequiredPropertyException("GetZonesResult", "names");
}
this.names = names;
return this;
}
public Builder names(String... names) {
return names(List.of(names));
}
@CustomType.Setter
public Builder outputFile(@Nullable String outputFile) {
this.outputFile = outputFile;
return this;
}
@CustomType.Setter
public Builder queryRegionId(@Nullable String queryRegionId) {
this.queryRegionId = queryRegionId;
return this;
}
@CustomType.Setter
public Builder queryVpcId(@Nullable String queryVpcId) {
this.queryVpcId = queryVpcId;
return this;
}
@CustomType.Setter
public Builder resourceGroupId(@Nullable String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
@CustomType.Setter
public Builder searchMode(@Nullable String searchMode) {
this.searchMode = searchMode;
return this;
}
@CustomType.Setter
public Builder zones(List zones) {
if (zones == null) {
throw new MissingRequiredPropertyException("GetZonesResult", "zones");
}
this.zones = zones;
return this;
}
public Builder zones(GetZonesZone... zones) {
return zones(List.of(zones));
}
public GetZonesResult build() {
final var _resultValue = new GetZonesResult();
_resultValue.enableDetails = enableDetails;
_resultValue.id = id;
_resultValue.ids = ids;
_resultValue.keyword = keyword;
_resultValue.lang = lang;
_resultValue.nameRegex = nameRegex;
_resultValue.names = names;
_resultValue.outputFile = outputFile;
_resultValue.queryRegionId = queryRegionId;
_resultValue.queryVpcId = queryVpcId;
_resultValue.resourceGroupId = resourceGroupId;
_resultValue.searchMode = searchMode;
_resultValue.zones = zones;
return _resultValue;
}
}
}