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

com.pulumi.googlenative.compute.beta.outputs.NodeGroupAutoscalingPolicyResponse Maven / Gradle / Ivy

// *** 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.googlenative.compute.beta.outputs;

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

@CustomType
public final class NodeGroupAutoscalingPolicyResponse {
    /**
     * @return The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. Maximum value allowed is 100.
     * 
     */
    private Integer maxNodes;
    /**
     * @return The minimum number of nodes that the group should have.
     * 
     */
    private Integer minNodes;
    /**
     * @return The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see Autoscaler modes.
     * 
     */
    private String mode;

    private NodeGroupAutoscalingPolicyResponse() {}
    /**
     * @return The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. Maximum value allowed is 100.
     * 
     */
    public Integer maxNodes() {
        return this.maxNodes;
    }
    /**
     * @return The minimum number of nodes that the group should have.
     * 
     */
    public Integer minNodes() {
        return this.minNodes;
    }
    /**
     * @return The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see Autoscaler modes.
     * 
     */
    public String mode() {
        return this.mode;
    }

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

    public static Builder builder(NodeGroupAutoscalingPolicyResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Integer maxNodes;
        private Integer minNodes;
        private String mode;
        public Builder() {}
        public Builder(NodeGroupAutoscalingPolicyResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.maxNodes = defaults.maxNodes;
    	      this.minNodes = defaults.minNodes;
    	      this.mode = defaults.mode;
        }

        @CustomType.Setter
        public Builder maxNodes(Integer maxNodes) {
            this.maxNodes = Objects.requireNonNull(maxNodes);
            return this;
        }
        @CustomType.Setter
        public Builder minNodes(Integer minNodes) {
            this.minNodes = Objects.requireNonNull(minNodes);
            return this;
        }
        @CustomType.Setter
        public Builder mode(String mode) {
            this.mode = Objects.requireNonNull(mode);
            return this;
        }
        public NodeGroupAutoscalingPolicyResponse build() {
            final var o = new NodeGroupAutoscalingPolicyResponse();
            o.maxNodes = maxNodes;
            o.minNodes = minNodes;
            o.mode = mode;
            return o;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy