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

com.pulumi.googlenative.composer.v1.inputs.WorkerResourceArgs 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.v1.inputs;

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


/**
 * Configuration for resources used by Airflow workers.
 * 
 */
public final class WorkerResourceArgs extends com.pulumi.resources.ResourceArgs {

    public static final WorkerResourceArgs Empty = new WorkerResourceArgs();

    /**
     * Optional. CPU request and limit for a single Airflow worker replica.
     * 
     */
    @Import(name="cpu")
    private @Nullable Output cpu;

    /**
     * @return Optional. CPU request and limit for a single Airflow worker replica.
     * 
     */
    public Optional> cpu() {
        return Optional.ofNullable(this.cpu);
    }

    /**
     * Optional. Maximum number of workers for autoscaling.
     * 
     */
    @Import(name="maxCount")
    private @Nullable Output maxCount;

    /**
     * @return Optional. Maximum number of workers for autoscaling.
     * 
     */
    public Optional> maxCount() {
        return Optional.ofNullable(this.maxCount);
    }

    /**
     * Optional. Memory (GB) request and limit for a single Airflow worker replica.
     * 
     */
    @Import(name="memoryGb")
    private @Nullable Output memoryGb;

    /**
     * @return Optional. Memory (GB) request and limit for a single Airflow worker replica.
     * 
     */
    public Optional> memoryGb() {
        return Optional.ofNullable(this.memoryGb);
    }

    /**
     * Optional. Minimum number of workers for autoscaling.
     * 
     */
    @Import(name="minCount")
    private @Nullable Output minCount;

    /**
     * @return Optional. Minimum number of workers for autoscaling.
     * 
     */
    public Optional> minCount() {
        return Optional.ofNullable(this.minCount);
    }

    /**
     * Optional. Storage (GB) request and limit for a single Airflow worker replica.
     * 
     */
    @Import(name="storageGb")
    private @Nullable Output storageGb;

    /**
     * @return Optional. Storage (GB) request and limit for a single Airflow worker replica.
     * 
     */
    public Optional> storageGb() {
        return Optional.ofNullable(this.storageGb);
    }

    private WorkerResourceArgs() {}

    private WorkerResourceArgs(WorkerResourceArgs $) {
        this.cpu = $.cpu;
        this.maxCount = $.maxCount;
        this.memoryGb = $.memoryGb;
        this.minCount = $.minCount;
        this.storageGb = $.storageGb;
    }

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

    public static final class Builder {
        private WorkerResourceArgs $;

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

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

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

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

        /**
         * @param maxCount Optional. Maximum number of workers for autoscaling.
         * 
         * @return builder
         * 
         */
        public Builder maxCount(@Nullable Output maxCount) {
            $.maxCount = maxCount;
            return this;
        }

        /**
         * @param maxCount Optional. Maximum number of workers for autoscaling.
         * 
         * @return builder
         * 
         */
        public Builder maxCount(Integer maxCount) {
            return maxCount(Output.of(maxCount));
        }

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

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

        /**
         * @param minCount Optional. Minimum number of workers for autoscaling.
         * 
         * @return builder
         * 
         */
        public Builder minCount(@Nullable Output minCount) {
            $.minCount = minCount;
            return this;
        }

        /**
         * @param minCount Optional. Minimum number of workers for autoscaling.
         * 
         * @return builder
         * 
         */
        public Builder minCount(Integer minCount) {
            return minCount(Output.of(minCount));
        }

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

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

        public WorkerResourceArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy