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

com.pulumi.digitalocean.inputs.AppSpecServiceAutoscalingMetricsArgs Maven / Gradle / Ivy

There is a newer version: 4.35.0
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.digitalocean.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.digitalocean.inputs.AppSpecServiceAutoscalingMetricsCpuArgs;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class AppSpecServiceAutoscalingMetricsArgs extends com.pulumi.resources.ResourceArgs {

    public static final AppSpecServiceAutoscalingMetricsArgs Empty = new AppSpecServiceAutoscalingMetricsArgs();

    /**
     * Settings for scaling the component based on CPU utilization.
     * 
     */
    @Import(name="cpu")
    private @Nullable Output cpu;

    /**
     * @return Settings for scaling the component based on CPU utilization.
     * 
     */
    public Optional> cpu() {
        return Optional.ofNullable(this.cpu);
    }

    private AppSpecServiceAutoscalingMetricsArgs() {}

    private AppSpecServiceAutoscalingMetricsArgs(AppSpecServiceAutoscalingMetricsArgs $) {
        this.cpu = $.cpu;
    }

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

    public static final class Builder {
        private AppSpecServiceAutoscalingMetricsArgs $;

        public Builder() {
            $ = new AppSpecServiceAutoscalingMetricsArgs();
        }

        public Builder(AppSpecServiceAutoscalingMetricsArgs defaults) {
            $ = new AppSpecServiceAutoscalingMetricsArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param cpu Settings for scaling the component based on CPU utilization.
         * 
         * @return builder
         * 
         */
        public Builder cpu(@Nullable Output cpu) {
            $.cpu = cpu;
            return this;
        }

        /**
         * @param cpu Settings for scaling the component based on CPU utilization.
         * 
         * @return builder
         * 
         */
        public Builder cpu(AppSpecServiceAutoscalingMetricsCpuArgs cpu) {
            return cpu(Output.of(cpu));
        }

        public AppSpecServiceAutoscalingMetricsArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy