// *** 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.Double;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class MetastoreServiceScalingConfig {
    /**
     * @return Metastore instance sizes.
     * Possible values are: `EXTRA_SMALL`, `SMALL`, `MEDIUM`, `LARGE`, `EXTRA_LARGE`.
     * 
     */
    private @Nullable String instanceSize;
    /**
     * @return Scaling factor, in increments of 0.1 for values less than 1.0, and increments of 1.0 for values greater than 1.0.
     * 
     */
    private @Nullable Double scalingFactor;

    private MetastoreServiceScalingConfig() {}
    /**
     * @return Metastore instance sizes.
     * Possible values are: `EXTRA_SMALL`, `SMALL`, `MEDIUM`, `LARGE`, `EXTRA_LARGE`.
     * 
     */
    public Optional<String> instanceSize() {
        return Optional.ofNullable(this.instanceSize);
    }
    /**
     * @return Scaling factor, in increments of 0.1 for values less than 1.0, and increments of 1.0 for values greater than 1.0.
     * 
     */
    public Optional<Double> scalingFactor() {
        return Optional.ofNullable(this.scalingFactor);
    }

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

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

        @CustomType.Setter
        public Builder instanceSize(@Nullable String instanceSize) {
            this.instanceSize = instanceSize;
            return this;
        }
        @CustomType.Setter
        public Builder scalingFactor(@Nullable Double scalingFactor) {
            this.scalingFactor = scalingFactor;
            return this;
        }
        public MetastoreServiceScalingConfig build() {
            final var o = new MetastoreServiceScalingConfig();
            o.instanceSize = instanceSize;
            o.scalingFactor = scalingFactor;
            return o;
        }
    }
}
