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

com.pulumi.kubernetes.autoscaling.v2beta1.outputs.ResourceMetricStatusPatch Maven / Gradle / Ivy

There is a newer version: 4.19.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.kubernetes.autoscaling.v2beta1.outputs;

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

@CustomType
public final class ResourceMetricStatusPatch {
    /**
     * @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.  It will only be present if `targetAverageValue` was set in the corresponding metric specification.
     * 
     */
    private @Nullable Integer currentAverageUtilization;
    /**
     * @return currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. It will always be set, regardless of the corresponding metric specification.
     * 
     */
    private @Nullable String currentAverageValue;
    /**
     * @return name is the name of the resource in question.
     * 
     */
    private @Nullable String name;

    private ResourceMetricStatusPatch() {}
    /**
     * @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.  It will only be present if `targetAverageValue` was set in the corresponding metric specification.
     * 
     */
    public Optional currentAverageUtilization() {
        return Optional.ofNullable(this.currentAverageUtilization);
    }
    /**
     * @return currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. It will always be set, regardless of the corresponding metric specification.
     * 
     */
    public Optional currentAverageValue() {
        return Optional.ofNullable(this.currentAverageValue);
    }
    /**
     * @return name is the name of the resource in question.
     * 
     */
    public Optional name() {
        return Optional.ofNullable(this.name);
    }

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

    public static Builder builder(ResourceMetricStatusPatch defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer currentAverageUtilization;
        private @Nullable String currentAverageValue;
        private @Nullable String name;
        public Builder() {}
        public Builder(ResourceMetricStatusPatch defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.currentAverageUtilization = defaults.currentAverageUtilization;
    	      this.currentAverageValue = defaults.currentAverageValue;
    	      this.name = defaults.name;
        }

        @CustomType.Setter
        public Builder currentAverageUtilization(@Nullable Integer currentAverageUtilization) {

            this.currentAverageUtilization = currentAverageUtilization;
            return this;
        }
        @CustomType.Setter
        public Builder currentAverageValue(@Nullable String currentAverageValue) {

            this.currentAverageValue = currentAverageValue;
            return this;
        }
        @CustomType.Setter
        public Builder name(@Nullable String name) {

            this.name = name;
            return this;
        }
        public ResourceMetricStatusPatch build() {
            final var _resultValue = new ResourceMetricStatusPatch();
            _resultValue.currentAverageUtilization = currentAverageUtilization;
            _resultValue.currentAverageValue = currentAverageValue;
            _resultValue.name = name;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy