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

com.pulumi.spotinst.aws.inputs.OceanLaunchSpecResourceLimitArgs Maven / Gradle / Ivy

The 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.spotinst.aws.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;


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

    public static final OceanLaunchSpecResourceLimitArgs Empty = new OceanLaunchSpecResourceLimitArgs();

    /**
     * Set a maximum number of instances per Virtual Node Group. Can be null. If set, value must be greater than or equal to 0.
     * 
     */
    @Import(name="maxInstanceCount")
    private @Nullable Output maxInstanceCount;

    /**
     * @return Set a maximum number of instances per Virtual Node Group. Can be null. If set, value must be greater than or equal to 0.
     * 
     */
    public Optional> maxInstanceCount() {
        return Optional.ofNullable(this.maxInstanceCount);
    }

    /**
     * Set a minimum number of instances per Virtual Node Group. Can be null. If set, value must be greater than or equal to 0.
     * 
     */
    @Import(name="minInstanceCount")
    private @Nullable Output minInstanceCount;

    /**
     * @return Set a minimum number of instances per Virtual Node Group. Can be null. If set, value must be greater than or equal to 0.
     * 
     */
    public Optional> minInstanceCount() {
        return Optional.ofNullable(this.minInstanceCount);
    }

    private OceanLaunchSpecResourceLimitArgs() {}

    private OceanLaunchSpecResourceLimitArgs(OceanLaunchSpecResourceLimitArgs $) {
        this.maxInstanceCount = $.maxInstanceCount;
        this.minInstanceCount = $.minInstanceCount;
    }

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

    public static final class Builder {
        private OceanLaunchSpecResourceLimitArgs $;

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

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

        /**
         * @param maxInstanceCount Set a maximum number of instances per Virtual Node Group. Can be null. If set, value must be greater than or equal to 0.
         * 
         * @return builder
         * 
         */
        public Builder maxInstanceCount(@Nullable Output maxInstanceCount) {
            $.maxInstanceCount = maxInstanceCount;
            return this;
        }

        /**
         * @param maxInstanceCount Set a maximum number of instances per Virtual Node Group. Can be null. If set, value must be greater than or equal to 0.
         * 
         * @return builder
         * 
         */
        public Builder maxInstanceCount(Integer maxInstanceCount) {
            return maxInstanceCount(Output.of(maxInstanceCount));
        }

        /**
         * @param minInstanceCount Set a minimum number of instances per Virtual Node Group. Can be null. If set, value must be greater than or equal to 0.
         * 
         * @return builder
         * 
         */
        public Builder minInstanceCount(@Nullable Output minInstanceCount) {
            $.minInstanceCount = minInstanceCount;
            return this;
        }

        /**
         * @param minInstanceCount Set a minimum number of instances per Virtual Node Group. Can be null. If set, value must be greater than or equal to 0.
         * 
         * @return builder
         * 
         */
        public Builder minInstanceCount(Integer minInstanceCount) {
            return minInstanceCount(Output.of(minInstanceCount));
        }

        public OceanLaunchSpecResourceLimitArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy