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

com.pulumi.azurenative.compute.inputs.ResourceRangeArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.azurenative.compute.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Describes the resource range.
 * 
 */
public final class ResourceRangeArgs extends com.pulumi.resources.ResourceArgs {

    public static final ResourceRangeArgs Empty = new ResourceRangeArgs();

    /**
     * The maximum number of the resource.
     * 
     */
    @Import(name="max")
    private @Nullable Output max;

    /**
     * @return The maximum number of the resource.
     * 
     */
    public Optional> max() {
        return Optional.ofNullable(this.max);
    }

    /**
     * The minimum number of the resource.
     * 
     */
    @Import(name="min")
    private @Nullable Output min;

    /**
     * @return The minimum number of the resource.
     * 
     */
    public Optional> min() {
        return Optional.ofNullable(this.min);
    }

    private ResourceRangeArgs() {}

    private ResourceRangeArgs(ResourceRangeArgs $) {
        this.max = $.max;
        this.min = $.min;
    }

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

    public static final class Builder {
        private ResourceRangeArgs $;

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

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

        /**
         * @param max The maximum number of the resource.
         * 
         * @return builder
         * 
         */
        public Builder max(@Nullable Output max) {
            $.max = max;
            return this;
        }

        /**
         * @param max The maximum number of the resource.
         * 
         * @return builder
         * 
         */
        public Builder max(Integer max) {
            return max(Output.of(max));
        }

        /**
         * @param min The minimum number of the resource.
         * 
         * @return builder
         * 
         */
        public Builder min(@Nullable Output min) {
            $.min = min;
            return this;
        }

        /**
         * @param min The minimum number of the resource.
         * 
         * @return builder
         * 
         */
        public Builder min(Integer min) {
            return min(Output.of(min));
        }

        public ResourceRangeArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy