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

com.pulumi.linode.outputs.LkeNodePoolAutoscaler Maven / Gradle / Ivy

There is a newer version: 4.31.0-alpha.1732773076
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.linode.outputs;

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

@CustomType
public final class LkeNodePoolAutoscaler {
    /**
     * @return The maximum number of nodes to autoscale to.
     * 
     */
    private Integer max;
    /**
     * @return The minimum number of nodes to autoscale to.
     * 
     */
    private Integer min;

    private LkeNodePoolAutoscaler() {}
    /**
     * @return The maximum number of nodes to autoscale to.
     * 
     */
    public Integer max() {
        return this.max;
    }
    /**
     * @return The minimum number of nodes to autoscale to.
     * 
     */
    public Integer min() {
        return this.min;
    }

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

    public static Builder builder(LkeNodePoolAutoscaler defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Integer max;
        private Integer min;
        public Builder() {}
        public Builder(LkeNodePoolAutoscaler defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.max = defaults.max;
    	      this.min = defaults.min;
        }

        @CustomType.Setter
        public Builder max(Integer max) {
            if (max == null) {
              throw new MissingRequiredPropertyException("LkeNodePoolAutoscaler", "max");
            }
            this.max = max;
            return this;
        }
        @CustomType.Setter
        public Builder min(Integer min) {
            if (min == null) {
              throw new MissingRequiredPropertyException("LkeNodePoolAutoscaler", "min");
            }
            this.min = min;
            return this;
        }
        public LkeNodePoolAutoscaler build() {
            final var _resultValue = new LkeNodePoolAutoscaler();
            _resultValue.max = max;
            _resultValue.min = min;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy