// *** 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.gcp.dataproc.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ClusterVirtualClusterConfigAuxiliaryServicesConfigSparkHistoryServerConfig {
    /**
     * @return Resource name of an existing Dataproc Cluster to act as a Spark History Server for the workload.
     * ***
     * 
     */
    private @Nullable String dataprocCluster;

    private ClusterVirtualClusterConfigAuxiliaryServicesConfigSparkHistoryServerConfig() {}
    /**
     * @return Resource name of an existing Dataproc Cluster to act as a Spark History Server for the workload.
     * ***
     * 
     */
    public Optional<String> dataprocCluster() {
        return Optional.ofNullable(this.dataprocCluster);
    }

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

    public static Builder builder(ClusterVirtualClusterConfigAuxiliaryServicesConfigSparkHistoryServerConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String dataprocCluster;
        public Builder() {}
        public Builder(ClusterVirtualClusterConfigAuxiliaryServicesConfigSparkHistoryServerConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.dataprocCluster = defaults.dataprocCluster;
        }

        @CustomType.Setter
        public Builder dataprocCluster(@Nullable String dataprocCluster) {
            this.dataprocCluster = dataprocCluster;
            return this;
        }
        public ClusterVirtualClusterConfigAuxiliaryServicesConfigSparkHistoryServerConfig build() {
            final var o = new ClusterVirtualClusterConfigAuxiliaryServicesConfigSparkHistoryServerConfig();
            o.dataprocCluster = dataprocCluster;
            return o;
        }
    }
}
