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

com.pulumi.kubernetes.autoscaling.v2beta2.inputs.MetricValueStatusArgs Maven / Gradle / Ivy

There is a newer version: 4.19.0-alpha.1730750641
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.kubernetes.autoscaling.v2beta2.inputs;

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


/**
 * MetricValueStatus holds the current value for a metric
 * 
 */
public final class MetricValueStatusArgs extends com.pulumi.resources.ResourceArgs {

    public static final MetricValueStatusArgs Empty = new MetricValueStatusArgs();

    /**
     * currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.
     * 
     */
    @Import(name="averageUtilization")
    private @Nullable Output averageUtilization;

    /**
     * @return currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.
     * 
     */
    public Optional> averageUtilization() {
        return Optional.ofNullable(this.averageUtilization);
    }

    /**
     * averageValue is the current value of the average of the metric across all relevant pods (as a quantity)
     * 
     */
    @Import(name="averageValue")
    private @Nullable Output averageValue;

    /**
     * @return averageValue is the current value of the average of the metric across all relevant pods (as a quantity)
     * 
     */
    public Optional> averageValue() {
        return Optional.ofNullable(this.averageValue);
    }

    /**
     * value is the current value of the metric (as a quantity).
     * 
     */
    @Import(name="value")
    private @Nullable Output value;

    /**
     * @return value is the current value of the metric (as a quantity).
     * 
     */
    public Optional> value() {
        return Optional.ofNullable(this.value);
    }

    private MetricValueStatusArgs() {}

    private MetricValueStatusArgs(MetricValueStatusArgs $) {
        this.averageUtilization = $.averageUtilization;
        this.averageValue = $.averageValue;
        this.value = $.value;
    }

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

    public static final class Builder {
        private MetricValueStatusArgs $;

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

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

        /**
         * @param averageUtilization currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.
         * 
         * @return builder
         * 
         */
        public Builder averageUtilization(@Nullable Output averageUtilization) {
            $.averageUtilization = averageUtilization;
            return this;
        }

        /**
         * @param averageUtilization currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.
         * 
         * @return builder
         * 
         */
        public Builder averageUtilization(Integer averageUtilization) {
            return averageUtilization(Output.of(averageUtilization));
        }

        /**
         * @param averageValue averageValue is the current value of the average of the metric across all relevant pods (as a quantity)
         * 
         * @return builder
         * 
         */
        public Builder averageValue(@Nullable Output averageValue) {
            $.averageValue = averageValue;
            return this;
        }

        /**
         * @param averageValue averageValue is the current value of the average of the metric across all relevant pods (as a quantity)
         * 
         * @return builder
         * 
         */
        public Builder averageValue(String averageValue) {
            return averageValue(Output.of(averageValue));
        }

        /**
         * @param value value is the current value of the metric (as a quantity).
         * 
         * @return builder
         * 
         */
        public Builder value(@Nullable Output value) {
            $.value = value;
            return this;
        }

        /**
         * @param value value is the current value of the metric (as a quantity).
         * 
         * @return builder
         * 
         */
        public Builder value(String value) {
            return value(Output.of(value));
        }

        public MetricValueStatusArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy