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

com.pulumi.kubernetes.autoscaling.v2beta2.outputs.HPAScalingPolicy 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.v2beta2.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class HPAScalingPolicy {
    /**
     * @return PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).
     * 
     */
    private Integer periodSeconds;
    /**
     * @return Type is used to specify the scaling policy.
     * 
     */
    private String type;
    /**
     * @return Value contains the amount of change which is permitted by the policy. It must be greater than zero
     * 
     */
    private Integer value;

    private HPAScalingPolicy() {}
    /**
     * @return PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).
     * 
     */
    public Integer periodSeconds() {
        return this.periodSeconds;
    }
    /**
     * @return Type is used to specify the scaling policy.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return Value contains the amount of change which is permitted by the policy. It must be greater than zero
     * 
     */
    public Integer value() {
        return this.value;
    }

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

    public static Builder builder(HPAScalingPolicy defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Integer periodSeconds;
        private String type;
        private Integer value;
        public Builder() {}
        public Builder(HPAScalingPolicy defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.periodSeconds = defaults.periodSeconds;
    	      this.type = defaults.type;
    	      this.value = defaults.value;
        }

        @CustomType.Setter
        public Builder periodSeconds(Integer periodSeconds) {
            if (periodSeconds == null) {
              throw new MissingRequiredPropertyException("HPAScalingPolicy", "periodSeconds");
            }
            this.periodSeconds = periodSeconds;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("HPAScalingPolicy", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder value(Integer value) {
            if (value == null) {
              throw new MissingRequiredPropertyException("HPAScalingPolicy", "value");
            }
            this.value = value;
            return this;
        }
        public HPAScalingPolicy build() {
            final var _resultValue = new HPAScalingPolicy();
            _resultValue.periodSeconds = periodSeconds;
            _resultValue.type = type;
            _resultValue.value = value;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy