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

com.pulumi.docker.inputs.ServiceTaskSpecResourcesReservationArgs Maven / Gradle / Ivy

There is a newer version: 4.7.0-alpha.1705607229+34a07055
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.docker.inputs;

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


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

    public static final ServiceTaskSpecResourcesReservationArgs Empty = new ServiceTaskSpecResourcesReservationArgs();

    /**
     * User-defined resources can be either Integer resources (e.g, `SSD=3`) or String resources (e.g, GPU=UUID1)
     * 
     */
    @Import(name="genericResources")
    private @Nullable Output genericResources;

    /**
     * @return User-defined resources can be either Integer resources (e.g, `SSD=3`) or String resources (e.g, GPU=UUID1)
     * 
     */
    public Optional> genericResources() {
        return Optional.ofNullable(this.genericResources);
    }

    /**
     * The amounf of memory in bytes the container allocates
     * 
     */
    @Import(name="memoryBytes")
    private @Nullable Output memoryBytes;

    /**
     * @return The amounf of memory in bytes the container allocates
     * 
     */
    public Optional> memoryBytes() {
        return Optional.ofNullable(this.memoryBytes);
    }

    /**
     * CPU shares in units of 1/1e9 (or 10^-9) of the CPU. Should be at least `1000000`
     * 
     */
    @Import(name="nanoCpus")
    private @Nullable Output nanoCpus;

    /**
     * @return CPU shares in units of 1/1e9 (or 10^-9) of the CPU. Should be at least `1000000`
     * 
     */
    public Optional> nanoCpus() {
        return Optional.ofNullable(this.nanoCpus);
    }

    private ServiceTaskSpecResourcesReservationArgs() {}

    private ServiceTaskSpecResourcesReservationArgs(ServiceTaskSpecResourcesReservationArgs $) {
        this.genericResources = $.genericResources;
        this.memoryBytes = $.memoryBytes;
        this.nanoCpus = $.nanoCpus;
    }

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

    public static final class Builder {
        private ServiceTaskSpecResourcesReservationArgs $;

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

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

        /**
         * @param genericResources User-defined resources can be either Integer resources (e.g, `SSD=3`) or String resources (e.g, GPU=UUID1)
         * 
         * @return builder
         * 
         */
        public Builder genericResources(@Nullable Output genericResources) {
            $.genericResources = genericResources;
            return this;
        }

        /**
         * @param genericResources User-defined resources can be either Integer resources (e.g, `SSD=3`) or String resources (e.g, GPU=UUID1)
         * 
         * @return builder
         * 
         */
        public Builder genericResources(ServiceTaskSpecResourcesReservationGenericResourcesArgs genericResources) {
            return genericResources(Output.of(genericResources));
        }

        /**
         * @param memoryBytes The amounf of memory in bytes the container allocates
         * 
         * @return builder
         * 
         */
        public Builder memoryBytes(@Nullable Output memoryBytes) {
            $.memoryBytes = memoryBytes;
            return this;
        }

        /**
         * @param memoryBytes The amounf of memory in bytes the container allocates
         * 
         * @return builder
         * 
         */
        public Builder memoryBytes(Integer memoryBytes) {
            return memoryBytes(Output.of(memoryBytes));
        }

        /**
         * @param nanoCpus CPU shares in units of 1/1e9 (or 10^-9) of the CPU. Should be at least `1000000`
         * 
         * @return builder
         * 
         */
        public Builder nanoCpus(@Nullable Output nanoCpus) {
            $.nanoCpus = nanoCpus;
            return this;
        }

        /**
         * @param nanoCpus CPU shares in units of 1/1e9 (or 10^-9) of the CPU. Should be at least `1000000`
         * 
         * @return builder
         * 
         */
        public Builder nanoCpus(Integer nanoCpus) {
            return nanoCpus(Output.of(nanoCpus));
        }

        public ServiceTaskSpecResourcesReservationArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy