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

com.pulumi.spotinst.azure.inputs.OceanNpAutoscalerResourceLimitsArgs 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.azure.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 OceanNpAutoscalerResourceLimitsArgs extends com.pulumi.resources.ResourceArgs {

    public static final OceanNpAutoscalerResourceLimitsArgs Empty = new OceanNpAutoscalerResourceLimitsArgs();

    /**
     * The maximum memory in GiB units that can be allocated to the cluster.
     * 
     */
    @Import(name="maxMemoryGib")
    private @Nullable Output maxMemoryGib;

    /**
     * @return The maximum memory in GiB units that can be allocated to the cluster.
     * 
     */
    public Optional> maxMemoryGib() {
        return Optional.ofNullable(this.maxMemoryGib);
    }

    /**
     * The maximum cpu in vCpu units that can be allocated to the cluster.
     * 
     */
    @Import(name="maxVcpu")
    private @Nullable Output maxVcpu;

    /**
     * @return The maximum cpu in vCpu units that can be allocated to the cluster.
     * 
     */
    public Optional> maxVcpu() {
        return Optional.ofNullable(this.maxVcpu);
    }

    private OceanNpAutoscalerResourceLimitsArgs() {}

    private OceanNpAutoscalerResourceLimitsArgs(OceanNpAutoscalerResourceLimitsArgs $) {
        this.maxMemoryGib = $.maxMemoryGib;
        this.maxVcpu = $.maxVcpu;
    }

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

    public static final class Builder {
        private OceanNpAutoscalerResourceLimitsArgs $;

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

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

        /**
         * @param maxMemoryGib The maximum memory in GiB units that can be allocated to the cluster.
         * 
         * @return builder
         * 
         */
        public Builder maxMemoryGib(@Nullable Output maxMemoryGib) {
            $.maxMemoryGib = maxMemoryGib;
            return this;
        }

        /**
         * @param maxMemoryGib The maximum memory in GiB units that can be allocated to the cluster.
         * 
         * @return builder
         * 
         */
        public Builder maxMemoryGib(Integer maxMemoryGib) {
            return maxMemoryGib(Output.of(maxMemoryGib));
        }

        /**
         * @param maxVcpu The maximum cpu in vCpu units that can be allocated to the cluster.
         * 
         * @return builder
         * 
         */
        public Builder maxVcpu(@Nullable Output maxVcpu) {
            $.maxVcpu = maxVcpu;
            return this;
        }

        /**
         * @param maxVcpu The maximum cpu in vCpu units that can be allocated to the cluster.
         * 
         * @return builder
         * 
         */
        public Builder maxVcpu(Integer maxVcpu) {
            return maxVcpu(Output.of(maxVcpu));
        }

        public OceanNpAutoscalerResourceLimitsArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy