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

com.pulumi.azurenative.appplatform.inputs.BuildResourceRequestsArgs Maven / Gradle / Ivy

// *** 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.appplatform.inputs;

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


/**
 * Resource request payload of Build Resource.
 * 
 */
public final class BuildResourceRequestsArgs extends com.pulumi.resources.ResourceArgs {

    public static final BuildResourceRequestsArgs Empty = new BuildResourceRequestsArgs();

    /**
     * Optional Cpu allocated to the build resource. 1 core can be represented by 1 or 1000m.
     * The default value is 1, this should not exceed build service agent pool cpu size.
     * 
     */
    @Import(name="cpu")
    private @Nullable Output cpu;

    /**
     * @return Optional Cpu allocated to the build resource. 1 core can be represented by 1 or 1000m.
     * The default value is 1, this should not exceed build service agent pool cpu size.
     * 
     */
    public Optional> cpu() {
        return Optional.ofNullable(this.cpu);
    }

    /**
     * Optional Memory allocated to the build resource. 1 GB can be represented by 1Gi or 1024Mi.
     * The default value is 2Gi, this should not exceed build service agent pool memory size.
     * 
     */
    @Import(name="memory")
    private @Nullable Output memory;

    /**
     * @return Optional Memory allocated to the build resource. 1 GB can be represented by 1Gi or 1024Mi.
     * The default value is 2Gi, this should not exceed build service agent pool memory size.
     * 
     */
    public Optional> memory() {
        return Optional.ofNullable(this.memory);
    }

    private BuildResourceRequestsArgs() {}

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

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

    public static final class Builder {
        private BuildResourceRequestsArgs $;

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

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

        /**
         * @param cpu Optional Cpu allocated to the build resource. 1 core can be represented by 1 or 1000m.
         * The default value is 1, this should not exceed build service agent pool cpu size.
         * 
         * @return builder
         * 
         */
        public Builder cpu(@Nullable Output cpu) {
            $.cpu = cpu;
            return this;
        }

        /**
         * @param cpu Optional Cpu allocated to the build resource. 1 core can be represented by 1 or 1000m.
         * The default value is 1, this should not exceed build service agent pool cpu size.
         * 
         * @return builder
         * 
         */
        public Builder cpu(String cpu) {
            return cpu(Output.of(cpu));
        }

        /**
         * @param memory Optional Memory allocated to the build resource. 1 GB can be represented by 1Gi or 1024Mi.
         * The default value is 2Gi, this should not exceed build service agent pool memory size.
         * 
         * @return builder
         * 
         */
        public Builder memory(@Nullable Output memory) {
            $.memory = memory;
            return this;
        }

        /**
         * @param memory Optional Memory allocated to the build resource. 1 GB can be represented by 1Gi or 1024Mi.
         * The default value is 2Gi, this should not exceed build service agent pool memory size.
         * 
         * @return builder
         * 
         */
        public Builder memory(String memory) {
            return memory(Output.of(memory));
        }

        public BuildResourceRequestsArgs build() {
            $.cpu = Codegen.stringProp("cpu").output().arg($.cpu).def("1").getNullable();
            $.memory = Codegen.stringProp("memory").output().arg($.memory).def("2Gi").getNullable();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy