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

com.pulumi.azurenative.appplatform.inputs.GatewayResourceRequestsArgs 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 Spring Cloud Gateway.
 * 
 */
public final class GatewayResourceRequestsArgs extends com.pulumi.resources.ResourceArgs {

    public static final GatewayResourceRequestsArgs Empty = new GatewayResourceRequestsArgs();

    /**
     * Cpu allocated to each Spring Cloud Gateway instance.
     * 
     */
    @Import(name="cpu")
    private @Nullable Output cpu;

    /**
     * @return Cpu allocated to each Spring Cloud Gateway instance.
     * 
     */
    public Optional> cpu() {
        return Optional.ofNullable(this.cpu);
    }

    /**
     * Memory allocated to each Spring Cloud Gateway instance.
     * 
     */
    @Import(name="memory")
    private @Nullable Output memory;

    /**
     * @return Memory allocated to each Spring Cloud Gateway instance.
     * 
     */
    public Optional> memory() {
        return Optional.ofNullable(this.memory);
    }

    private GatewayResourceRequestsArgs() {}

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

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

    public static final class Builder {
        private GatewayResourceRequestsArgs $;

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

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

        /**
         * @param cpu Cpu allocated to each Spring Cloud Gateway instance.
         * 
         * @return builder
         * 
         */
        public Builder cpu(@Nullable Output cpu) {
            $.cpu = cpu;
            return this;
        }

        /**
         * @param cpu Cpu allocated to each Spring Cloud Gateway instance.
         * 
         * @return builder
         * 
         */
        public Builder cpu(String cpu) {
            return cpu(Output.of(cpu));
        }

        /**
         * @param memory Memory allocated to each Spring Cloud Gateway instance.
         * 
         * @return builder
         * 
         */
        public Builder memory(@Nullable Output memory) {
            $.memory = memory;
            return this;
        }

        /**
         * @param memory Memory allocated to each Spring Cloud Gateway instance.
         * 
         * @return builder
         * 
         */
        public Builder memory(String memory) {
            return memory(Output.of(memory));
        }

        public GatewayResourceRequestsArgs 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