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

com.pulumi.azurenative.containerinstance.inputs.ResourceLimitsArgs 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.containerinstance.inputs;

import com.pulumi.azurenative.containerinstance.inputs.GpuResourceArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Double;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The resource limits.
 * 
 */
public final class ResourceLimitsArgs extends com.pulumi.resources.ResourceArgs {

    public static final ResourceLimitsArgs Empty = new ResourceLimitsArgs();

    /**
     * The CPU limit of this container instance.
     * 
     */
    @Import(name="cpu")
    private @Nullable Output cpu;

    /**
     * @return The CPU limit of this container instance.
     * 
     */
    public Optional> cpu() {
        return Optional.ofNullable(this.cpu);
    }

    /**
     * The GPU limit of this container instance.
     * 
     */
    @Import(name="gpu")
    private @Nullable Output gpu;

    /**
     * @return The GPU limit of this container instance.
     * 
     */
    public Optional> gpu() {
        return Optional.ofNullable(this.gpu);
    }

    /**
     * The memory limit in GB of this container instance.
     * 
     */
    @Import(name="memoryInGB")
    private @Nullable Output memoryInGB;

    /**
     * @return The memory limit in GB of this container instance.
     * 
     */
    public Optional> memoryInGB() {
        return Optional.ofNullable(this.memoryInGB);
    }

    private ResourceLimitsArgs() {}

    private ResourceLimitsArgs(ResourceLimitsArgs $) {
        this.cpu = $.cpu;
        this.gpu = $.gpu;
        this.memoryInGB = $.memoryInGB;
    }

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

    public static final class Builder {
        private ResourceLimitsArgs $;

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

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

        /**
         * @param cpu The CPU limit of this container instance.
         * 
         * @return builder
         * 
         */
        public Builder cpu(@Nullable Output cpu) {
            $.cpu = cpu;
            return this;
        }

        /**
         * @param cpu The CPU limit of this container instance.
         * 
         * @return builder
         * 
         */
        public Builder cpu(Double cpu) {
            return cpu(Output.of(cpu));
        }

        /**
         * @param gpu The GPU limit of this container instance.
         * 
         * @return builder
         * 
         */
        public Builder gpu(@Nullable Output gpu) {
            $.gpu = gpu;
            return this;
        }

        /**
         * @param gpu The GPU limit of this container instance.
         * 
         * @return builder
         * 
         */
        public Builder gpu(GpuResourceArgs gpu) {
            return gpu(Output.of(gpu));
        }

        /**
         * @param memoryInGB The memory limit in GB of this container instance.
         * 
         * @return builder
         * 
         */
        public Builder memoryInGB(@Nullable Output memoryInGB) {
            $.memoryInGB = memoryInGB;
            return this;
        }

        /**
         * @param memoryInGB The memory limit in GB of this container instance.
         * 
         * @return builder
         * 
         */
        public Builder memoryInGB(Double memoryInGB) {
            return memoryInGB(Output.of(memoryInGB));
        }

        public ResourceLimitsArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy