// *** 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.aws.mskconnect.outputs;

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

@CustomType
public final class ConnectorCapacityAutoscalingScaleOutPolicy {
    /**
     * @return The CPU utilization percentage threshold at which you want connector scale out to be triggered.
     * 
     */
    private @Nullable Integer cpuUtilizationPercentage;

    private ConnectorCapacityAutoscalingScaleOutPolicy() {}
    /**
     * @return The CPU utilization percentage threshold at which you want connector scale out to be triggered.
     * 
     */
    public Optional<Integer> cpuUtilizationPercentage() {
        return Optional.ofNullable(this.cpuUtilizationPercentage);
    }

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

    public static Builder builder(ConnectorCapacityAutoscalingScaleOutPolicy defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer cpuUtilizationPercentage;
        public Builder() {}
        public Builder(ConnectorCapacityAutoscalingScaleOutPolicy defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.cpuUtilizationPercentage = defaults.cpuUtilizationPercentage;
        }

        @CustomType.Setter
        public Builder cpuUtilizationPercentage(@Nullable Integer cpuUtilizationPercentage) {
            this.cpuUtilizationPercentage = cpuUtilizationPercentage;
            return this;
        }
        public ConnectorCapacityAutoscalingScaleOutPolicy build() {
            final var o = new ConnectorCapacityAutoscalingScaleOutPolicy();
            o.cpuUtilizationPercentage = cpuUtilizationPercentage;
            return o;
        }
    }
}
