com.pulumi.alicloud.ecs.outputs.GetEcsDedicatedHostClustersResult 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.ecs.outputs;
import com.pulumi.alicloud.ecs.outputs.GetEcsDedicatedHostClustersCluster;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
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 GetEcsDedicatedHostClustersResult {
private List clusters;
private @Nullable List dedicatedHostClusterIds;
private @Nullable String dedicatedHostClusterName;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private List ids;
private @Nullable String nameRegex;
private List names;
private @Nullable String outputFile;
private @Nullable Map tags;
private @Nullable String zoneId;
private GetEcsDedicatedHostClustersResult() {}
public List clusters() {
return this.clusters;
}
public List dedicatedHostClusterIds() {
return this.dedicatedHostClusterIds == null ? List.of() : this.dedicatedHostClusterIds;
}
public Optional dedicatedHostClusterName() {
return Optional.ofNullable(this.dedicatedHostClusterName);
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
public List ids() {
return this.ids;
}
public Optional nameRegex() {
return Optional.ofNullable(this.nameRegex);
}
public List names() {
return this.names;
}
public Optional outputFile() {
return Optional.ofNullable(this.outputFile);
}
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
public Optional zoneId() {
return Optional.ofNullable(this.zoneId);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetEcsDedicatedHostClustersResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List clusters;
private @Nullable List dedicatedHostClusterIds;
private @Nullable String dedicatedHostClusterName;
private String id;
private List ids;
private @Nullable String nameRegex;
private List names;
private @Nullable String outputFile;
private @Nullable Map tags;
private @Nullable String zoneId;
public Builder() {}
public Builder(GetEcsDedicatedHostClustersResult defaults) {
Objects.requireNonNull(defaults);
this.clusters = defaults.clusters;
this.dedicatedHostClusterIds = defaults.dedicatedHostClusterIds;
this.dedicatedHostClusterName = defaults.dedicatedHostClusterName;
this.id = defaults.id;
this.ids = defaults.ids;
this.nameRegex = defaults.nameRegex;
this.names = defaults.names;
this.outputFile = defaults.outputFile;
this.tags = defaults.tags;
this.zoneId = defaults.zoneId;
}
@CustomType.Setter
public Builder clusters(List clusters) {
if (clusters == null) {
throw new MissingRequiredPropertyException("GetEcsDedicatedHostClustersResult", "clusters");
}
this.clusters = clusters;
return this;
}
public Builder clusters(GetEcsDedicatedHostClustersCluster... clusters) {
return clusters(List.of(clusters));
}
@CustomType.Setter
public Builder dedicatedHostClusterIds(@Nullable List dedicatedHostClusterIds) {
this.dedicatedHostClusterIds = dedicatedHostClusterIds;
return this;
}
public Builder dedicatedHostClusterIds(String... dedicatedHostClusterIds) {
return dedicatedHostClusterIds(List.of(dedicatedHostClusterIds));
}
@CustomType.Setter
public Builder dedicatedHostClusterName(@Nullable String dedicatedHostClusterName) {
this.dedicatedHostClusterName = dedicatedHostClusterName;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetEcsDedicatedHostClustersResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder ids(List ids) {
if (ids == null) {
throw new MissingRequiredPropertyException("GetEcsDedicatedHostClustersResult", "ids");
}
this.ids = ids;
return this;
}
public Builder ids(String... ids) {
return ids(List.of(ids));
}
@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("GetEcsDedicatedHostClustersResult", "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 tags(@Nullable Map tags) {
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder zoneId(@Nullable String zoneId) {
this.zoneId = zoneId;
return this;
}
public GetEcsDedicatedHostClustersResult build() {
final var _resultValue = new GetEcsDedicatedHostClustersResult();
_resultValue.clusters = clusters;
_resultValue.dedicatedHostClusterIds = dedicatedHostClusterIds;
_resultValue.dedicatedHostClusterName = dedicatedHostClusterName;
_resultValue.id = id;
_resultValue.ids = ids;
_resultValue.nameRegex = nameRegex;
_resultValue.names = names;
_resultValue.outputFile = outputFile;
_resultValue.tags = tags;
_resultValue.zoneId = zoneId;
return _resultValue;
}
}
}