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

com.pulumi.azurenative.app.inputs.SessionContainerResourcesArgs 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.app.inputs;

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


/**
 * Container resource requirements for sessions of the session pool.
 * 
 */
public final class SessionContainerResourcesArgs extends com.pulumi.resources.ResourceArgs {

    public static final SessionContainerResourcesArgs Empty = new SessionContainerResourcesArgs();

    /**
     * Required CPU in cores, e.g. 0.5
     * 
     */
    @Import(name="cpu")
    private @Nullable Output cpu;

    /**
     * @return Required CPU in cores, e.g. 0.5
     * 
     */
    public Optional> cpu() {
        return Optional.ofNullable(this.cpu);
    }

    /**
     * Required memory, e.g. "250Mb"
     * 
     */
    @Import(name="memory")
    private @Nullable Output memory;

    /**
     * @return Required memory, e.g. "250Mb"
     * 
     */
    public Optional> memory() {
        return Optional.ofNullable(this.memory);
    }

    private SessionContainerResourcesArgs() {}

    private SessionContainerResourcesArgs(SessionContainerResourcesArgs $) {
        this.cpu = $.cpu;
        this.memory = $.memory;
    }

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

    public static final class Builder {
        private SessionContainerResourcesArgs $;

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

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

        /**
         * @param cpu Required CPU in cores, e.g. 0.5
         * 
         * @return builder
         * 
         */
        public Builder cpu(@Nullable Output cpu) {
            $.cpu = cpu;
            return this;
        }

        /**
         * @param cpu Required CPU in cores, e.g. 0.5
         * 
         * @return builder
         * 
         */
        public Builder cpu(Double cpu) {
            return cpu(Output.of(cpu));
        }

        /**
         * @param memory Required memory, e.g. "250Mb"
         * 
         * @return builder
         * 
         */
        public Builder memory(@Nullable Output memory) {
            $.memory = memory;
            return this;
        }

        /**
         * @param memory Required memory, e.g. "250Mb"
         * 
         * @return builder
         * 
         */
        public Builder memory(String memory) {
            return memory(Output.of(memory));
        }

        public SessionContainerResourcesArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy