// *** 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.azure.hdinsight.outputs;

import com.pulumi.azure.hdinsight.outputs.HBaseClusterMetastoresAmbari;
import com.pulumi.azure.hdinsight.outputs.HBaseClusterMetastoresHive;
import com.pulumi.azure.hdinsight.outputs.HBaseClusterMetastoresOozie;
import com.pulumi.core.annotations.CustomType;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class HBaseClusterMetastores {
    /**
     * @return An `ambari` block as defined below.
     * 
     */
    private @Nullable HBaseClusterMetastoresAmbari ambari;
    /**
     * @return A `hive` block as defined below.
     * 
     */
    private @Nullable HBaseClusterMetastoresHive hive;
    /**
     * @return An `oozie` block as defined below.
     * 
     */
    private @Nullable HBaseClusterMetastoresOozie oozie;

    private HBaseClusterMetastores() {}
    /**
     * @return An `ambari` block as defined below.
     * 
     */
    public Optional<HBaseClusterMetastoresAmbari> ambari() {
        return Optional.ofNullable(this.ambari);
    }
    /**
     * @return A `hive` block as defined below.
     * 
     */
    public Optional<HBaseClusterMetastoresHive> hive() {
        return Optional.ofNullable(this.hive);
    }
    /**
     * @return An `oozie` block as defined below.
     * 
     */
    public Optional<HBaseClusterMetastoresOozie> oozie() {
        return Optional.ofNullable(this.oozie);
    }

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

    public static Builder builder(HBaseClusterMetastores defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable HBaseClusterMetastoresAmbari ambari;
        private @Nullable HBaseClusterMetastoresHive hive;
        private @Nullable HBaseClusterMetastoresOozie oozie;
        public Builder() {}
        public Builder(HBaseClusterMetastores defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.ambari = defaults.ambari;
    	      this.hive = defaults.hive;
    	      this.oozie = defaults.oozie;
        }

        @CustomType.Setter
        public Builder ambari(@Nullable HBaseClusterMetastoresAmbari ambari) {
            this.ambari = ambari;
            return this;
        }
        @CustomType.Setter
        public Builder hive(@Nullable HBaseClusterMetastoresHive hive) {
            this.hive = hive;
            return this;
        }
        @CustomType.Setter
        public Builder oozie(@Nullable HBaseClusterMetastoresOozie oozie) {
            this.oozie = oozie;
            return this;
        }
        public HBaseClusterMetastores build() {
            final var o = new HBaseClusterMetastores();
            o.ambari = ambari;
            o.hive = hive;
            o.oozie = oozie;
            return o;
        }
    }
}
