com.pulumi.vsphere.outputs.ComputeClusterVsanFaultDomain Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vsphere Show documentation
Show all versions of vsphere Show documentation
A Pulumi package for creating vsphere 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.vsphere.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.vsphere.outputs.ComputeClusterVsanFaultDomainFaultDomain;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class ComputeClusterVsanFaultDomain {
/**
* @return The configuration for single fault domain.
*
*/
private @Nullable List faultDomains;
private ComputeClusterVsanFaultDomain() {}
/**
* @return The configuration for single fault domain.
*
*/
public List faultDomains() {
return this.faultDomains == null ? List.of() : this.faultDomains;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ComputeClusterVsanFaultDomain defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List faultDomains;
public Builder() {}
public Builder(ComputeClusterVsanFaultDomain defaults) {
Objects.requireNonNull(defaults);
this.faultDomains = defaults.faultDomains;
}
@CustomType.Setter
public Builder faultDomains(@Nullable List faultDomains) {
this.faultDomains = faultDomains;
return this;
}
public Builder faultDomains(ComputeClusterVsanFaultDomainFaultDomain... faultDomains) {
return faultDomains(List.of(faultDomains));
}
public ComputeClusterVsanFaultDomain build() {
final var _resultValue = new ComputeClusterVsanFaultDomain();
_resultValue.faultDomains = faultDomains;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy