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

com.pulumi.googlenative.composer.v1beta1.inputs.WebServerResourceArgs 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.googlenative.composer.v1beta1.inputs;

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;


/**
 * Configuration for resources used by Airflow web server.
 * 
 */
public final class WebServerResourceArgs extends com.pulumi.resources.ResourceArgs {

    public static final WebServerResourceArgs Empty = new WebServerResourceArgs();

    /**
     * Optional. CPU request and limit for Airflow web server.
     * 
     */
    @Import(name="cpu")
    private @Nullable Output cpu;

    /**
     * @return Optional. CPU request and limit for Airflow web server.
     * 
     */
    public Optional> cpu() {
        return Optional.ofNullable(this.cpu);
    }

    /**
     * Optional. Memory (GB) request and limit for Airflow web server.
     * 
     */
    @Import(name="memoryGb")
    private @Nullable Output memoryGb;

    /**
     * @return Optional. Memory (GB) request and limit for Airflow web server.
     * 
     */
    public Optional> memoryGb() {
        return Optional.ofNullable(this.memoryGb);
    }

    /**
     * Optional. Storage (GB) request and limit for Airflow web server.
     * 
     */
    @Import(name="storageGb")
    private @Nullable Output storageGb;

    /**
     * @return Optional. Storage (GB) request and limit for Airflow web server.
     * 
     */
    public Optional> storageGb() {
        return Optional.ofNullable(this.storageGb);
    }

    private WebServerResourceArgs() {}

    private WebServerResourceArgs(WebServerResourceArgs $) {
        this.cpu = $.cpu;
        this.memoryGb = $.memoryGb;
        this.storageGb = $.storageGb;
    }

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

    public static final class Builder {
        private WebServerResourceArgs $;

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

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

        /**
         * @param cpu Optional. CPU request and limit for Airflow web server.
         * 
         * @return builder
         * 
         */
        public Builder cpu(@Nullable Output cpu) {
            $.cpu = cpu;
            return this;
        }

        /**
         * @param cpu Optional. CPU request and limit for Airflow web server.
         * 
         * @return builder
         * 
         */
        public Builder cpu(Double cpu) {
            return cpu(Output.of(cpu));
        }

        /**
         * @param memoryGb Optional. Memory (GB) request and limit for Airflow web server.
         * 
         * @return builder
         * 
         */
        public Builder memoryGb(@Nullable Output memoryGb) {
            $.memoryGb = memoryGb;
            return this;
        }

        /**
         * @param memoryGb Optional. Memory (GB) request and limit for Airflow web server.
         * 
         * @return builder
         * 
         */
        public Builder memoryGb(Double memoryGb) {
            return memoryGb(Output.of(memoryGb));
        }

        /**
         * @param storageGb Optional. Storage (GB) request and limit for Airflow web server.
         * 
         * @return builder
         * 
         */
        public Builder storageGb(@Nullable Output storageGb) {
            $.storageGb = storageGb;
            return this;
        }

        /**
         * @param storageGb Optional. Storage (GB) request and limit for Airflow web server.
         * 
         * @return builder
         * 
         */
        public Builder storageGb(Double storageGb) {
            return storageGb(Output.of(storageGb));
        }

        public WebServerResourceArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy