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

com.pulumi.vsphere.outputs.GetDatastoreClusterResult 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.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetDatastoreClusterResult {
    private @Nullable String datacenterId;
    /**
     * @return (Optional) The names of the datastores included in the specific
     * cluster.
     * 
     */
    private List datastores;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    private String name;

    private GetDatastoreClusterResult() {}
    public Optional datacenterId() {
        return Optional.ofNullable(this.datacenterId);
    }
    /**
     * @return (Optional) The names of the datastores included in the specific
     * cluster.
     * 
     */
    public List datastores() {
        return this.datastores;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    public String name() {
        return this.name;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(GetDatastoreClusterResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String datacenterId;
        private List datastores;
        private String id;
        private String name;
        public Builder() {}
        public Builder(GetDatastoreClusterResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.datacenterId = defaults.datacenterId;
    	      this.datastores = defaults.datastores;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
        }

        @CustomType.Setter
        public Builder datacenterId(@Nullable String datacenterId) {

            this.datacenterId = datacenterId;
            return this;
        }
        @CustomType.Setter
        public Builder datastores(List datastores) {
            if (datastores == null) {
              throw new MissingRequiredPropertyException("GetDatastoreClusterResult", "datastores");
            }
            this.datastores = datastores;
            return this;
        }
        public Builder datastores(String... datastores) {
            return datastores(List.of(datastores));
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetDatastoreClusterResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetDatastoreClusterResult", "name");
            }
            this.name = name;
            return this;
        }
        public GetDatastoreClusterResult build() {
            final var _resultValue = new GetDatastoreClusterResult();
            _resultValue.datacenterId = datacenterId;
            _resultValue.datastores = datastores;
            _resultValue.id = id;
            _resultValue.name = name;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy