com.pulumi.kubernetes.autoscaling.v2.outputs.HPAScalingPolicy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kubernetes Show documentation
Show all versions of kubernetes Show documentation
A Pulumi package for creating and managing Kubernetes resources.
// *** 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.v2.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