com.pulumi.alicloud.gpdb.outputs.GetInstancesResult 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.gpdb.outputs;
import com.pulumi.alicloud.gpdb.outputs.GetInstancesInstance;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetInstancesResult {
private @Nullable String availabilityZone;
private @Nullable String dbInstanceCategories;
private @Nullable String dbInstanceModes;
private @Nullable String description;
private @Nullable Boolean enableDetails;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private List ids;
private @Nullable String instanceNetworkType;
private List instances;
private @Nullable String nameRegex;
private List names;
private @Nullable String outputFile;
private @Nullable String resourceGroupId;
private @Nullable String status;
private @Nullable Map tags;
private @Nullable String vswitchId;
private GetInstancesResult() {}
public Optional availabilityZone() {
return Optional.ofNullable(this.availabilityZone);
}
public Optional dbInstanceCategories() {
return Optional.ofNullable(this.dbInstanceCategories);
}
public Optional dbInstanceModes() {
return Optional.ofNullable(this.dbInstanceModes);
}
public Optional description() {
return Optional.ofNullable(this.description);
}
public Optional enableDetails() {
return Optional.ofNullable(this.enableDetails);
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
public List ids() {
return this.ids;
}
public Optional instanceNetworkType() {
return Optional.ofNullable(this.instanceNetworkType);
}
public List instances() {
return this.instances;
}
public Optional nameRegex() {
return Optional.ofNullable(this.nameRegex);
}
public List names() {
return this.names;
}
public Optional outputFile() {
return Optional.ofNullable(this.outputFile);
}
public Optional resourceGroupId() {
return Optional.ofNullable(this.resourceGroupId);
}
public Optional status() {
return Optional.ofNullable(this.status);
}
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
public Optional vswitchId() {
return Optional.ofNullable(this.vswitchId);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetInstancesResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String availabilityZone;
private @Nullable String dbInstanceCategories;
private @Nullable String dbInstanceModes;
private @Nullable String description;
private @Nullable Boolean enableDetails;
private String id;
private List ids;
private @Nullable String instanceNetworkType;
private List instances;
private @Nullable String nameRegex;
private List names;
private @Nullable String outputFile;
private @Nullable String resourceGroupId;
private @Nullable String status;
private @Nullable Map tags;
private @Nullable String vswitchId;
public Builder() {}
public Builder(GetInstancesResult defaults) {
Objects.requireNonNull(defaults);
this.availabilityZone = defaults.availabilityZone;
this.dbInstanceCategories = defaults.dbInstanceCategories;
this.dbInstanceModes = defaults.dbInstanceModes;
this.description = defaults.description;
this.enableDetails = defaults.enableDetails;
this.id = defaults.id;
this.ids = defaults.ids;
this.instanceNetworkType = defaults.instanceNetworkType;
this.instances = defaults.instances;
this.nameRegex = defaults.nameRegex;
this.names = defaults.names;
this.outputFile = defaults.outputFile;
this.resourceGroupId = defaults.resourceGroupId;
this.status = defaults.status;
this.tags = defaults.tags;
this.vswitchId = defaults.vswitchId;
}
@CustomType.Setter
public Builder availabilityZone(@Nullable String availabilityZone) {
this.availabilityZone = availabilityZone;
return this;
}
@CustomType.Setter
public Builder dbInstanceCategories(@Nullable String dbInstanceCategories) {
this.dbInstanceCategories = dbInstanceCategories;
return this;
}
@CustomType.Setter
public Builder dbInstanceModes(@Nullable String dbInstanceModes) {
this.dbInstanceModes = dbInstanceModes;
return this;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@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("GetInstancesResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder ids(List ids) {
if (ids == null) {
throw new MissingRequiredPropertyException("GetInstancesResult", "ids");
}
this.ids = ids;
return this;
}
public Builder ids(String... ids) {
return ids(List.of(ids));
}
@CustomType.Setter
public Builder instanceNetworkType(@Nullable String instanceNetworkType) {
this.instanceNetworkType = instanceNetworkType;
return this;
}
@CustomType.Setter
public Builder instances(List instances) {
if (instances == null) {
throw new MissingRequiredPropertyException("GetInstancesResult", "instances");
}
this.instances = instances;
return this;
}
public Builder instances(GetInstancesInstance... instances) {
return instances(List.of(instances));
}
@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("GetInstancesResult", "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 resourceGroupId(@Nullable String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
@CustomType.Setter
public Builder status(@Nullable String status) {
this.status = status;
return this;
}
@CustomType.Setter
public Builder tags(@Nullable Map tags) {
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder vswitchId(@Nullable String vswitchId) {
this.vswitchId = vswitchId;
return this;
}
public GetInstancesResult build() {
final var _resultValue = new GetInstancesResult();
_resultValue.availabilityZone = availabilityZone;
_resultValue.dbInstanceCategories = dbInstanceCategories;
_resultValue.dbInstanceModes = dbInstanceModes;
_resultValue.description = description;
_resultValue.enableDetails = enableDetails;
_resultValue.id = id;
_resultValue.ids = ids;
_resultValue.instanceNetworkType = instanceNetworkType;
_resultValue.instances = instances;
_resultValue.nameRegex = nameRegex;
_resultValue.names = names;
_resultValue.outputFile = outputFile;
_resultValue.resourceGroupId = resourceGroupId;
_resultValue.status = status;
_resultValue.tags = tags;
_resultValue.vswitchId = vswitchId;
return _resultValue;
}
}
}