All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.vsphere.outputs.ComputeClusterVsanFaultDomain Maven / Gradle / Ivy

There is a newer version: 4.13.0-alpha.1731738919
Show newest version
// *** 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