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

com.pulumi.linode.inputs.GetNodebalancerConfigsNodebalancerConfigNodeStatusArgs 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.inputs;

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


public final class GetNodebalancerConfigsNodebalancerConfigNodeStatusArgs extends com.pulumi.resources.ResourceArgs {

    public static final GetNodebalancerConfigsNodebalancerConfigNodeStatusArgs Empty = new GetNodebalancerConfigsNodebalancerConfigNodeStatusArgs();

    /**
     * The number of backends considered to be 'DOWN' and unhealthy. These are not in rotation, and not serving requests.
     * 
     */
    @Import(name="down", required=true)
    private Output down;

    /**
     * @return The number of backends considered to be 'DOWN' and unhealthy. These are not in rotation, and not serving requests.
     * 
     */
    public Output down() {
        return this.down;
    }

    /**
     * The number of backends considered to be 'UP' and healthy, and that are serving requests.
     * 
     */
    @Import(name="up", required=true)
    private Output up;

    /**
     * @return The number of backends considered to be 'UP' and healthy, and that are serving requests.
     * 
     */
    public Output up() {
        return this.up;
    }

    private GetNodebalancerConfigsNodebalancerConfigNodeStatusArgs() {}

    private GetNodebalancerConfigsNodebalancerConfigNodeStatusArgs(GetNodebalancerConfigsNodebalancerConfigNodeStatusArgs $) {
        this.down = $.down;
        this.up = $.up;
    }

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

    public static final class Builder {
        private GetNodebalancerConfigsNodebalancerConfigNodeStatusArgs $;

        public Builder() {
            $ = new GetNodebalancerConfigsNodebalancerConfigNodeStatusArgs();
        }

        public Builder(GetNodebalancerConfigsNodebalancerConfigNodeStatusArgs defaults) {
            $ = new GetNodebalancerConfigsNodebalancerConfigNodeStatusArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param down The number of backends considered to be 'DOWN' and unhealthy. These are not in rotation, and not serving requests.
         * 
         * @return builder
         * 
         */
        public Builder down(Output down) {
            $.down = down;
            return this;
        }

        /**
         * @param down The number of backends considered to be 'DOWN' and unhealthy. These are not in rotation, and not serving requests.
         * 
         * @return builder
         * 
         */
        public Builder down(Integer down) {
            return down(Output.of(down));
        }

        /**
         * @param up The number of backends considered to be 'UP' and healthy, and that are serving requests.
         * 
         * @return builder
         * 
         */
        public Builder up(Output up) {
            $.up = up;
            return this;
        }

        /**
         * @param up The number of backends considered to be 'UP' and healthy, and that are serving requests.
         * 
         * @return builder
         * 
         */
        public Builder up(Integer up) {
            return up(Output.of(up));
        }

        public GetNodebalancerConfigsNodebalancerConfigNodeStatusArgs build() {
            if ($.down == null) {
                throw new MissingRequiredPropertyException("GetNodebalancerConfigsNodebalancerConfigNodeStatusArgs", "down");
            }
            if ($.up == null) {
                throw new MissingRequiredPropertyException("GetNodebalancerConfigsNodebalancerConfigNodeStatusArgs", "up");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy