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

com.pulumi.googlenative.dataproc.v1.inputs.DriverSchedulingConfigArgs 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.dataproc.v1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.util.Objects;


/**
 * Driver scheduling configuration.
 * 
 */
public final class DriverSchedulingConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final DriverSchedulingConfigArgs Empty = new DriverSchedulingConfigArgs();

    /**
     * The amount of memory in MB the driver is requesting.
     * 
     */
    @Import(name="memoryMb", required=true)
    private Output memoryMb;

    /**
     * @return The amount of memory in MB the driver is requesting.
     * 
     */
    public Output memoryMb() {
        return this.memoryMb;
    }

    /**
     * The number of vCPUs the driver is requesting.
     * 
     */
    @Import(name="vcores", required=true)
    private Output vcores;

    /**
     * @return The number of vCPUs the driver is requesting.
     * 
     */
    public Output vcores() {
        return this.vcores;
    }

    private DriverSchedulingConfigArgs() {}

    private DriverSchedulingConfigArgs(DriverSchedulingConfigArgs $) {
        this.memoryMb = $.memoryMb;
        this.vcores = $.vcores;
    }

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

    public static final class Builder {
        private DriverSchedulingConfigArgs $;

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

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

        /**
         * @param memoryMb The amount of memory in MB the driver is requesting.
         * 
         * @return builder
         * 
         */
        public Builder memoryMb(Output memoryMb) {
            $.memoryMb = memoryMb;
            return this;
        }

        /**
         * @param memoryMb The amount of memory in MB the driver is requesting.
         * 
         * @return builder
         * 
         */
        public Builder memoryMb(Integer memoryMb) {
            return memoryMb(Output.of(memoryMb));
        }

        /**
         * @param vcores The number of vCPUs the driver is requesting.
         * 
         * @return builder
         * 
         */
        public Builder vcores(Output vcores) {
            $.vcores = vcores;
            return this;
        }

        /**
         * @param vcores The number of vCPUs the driver is requesting.
         * 
         * @return builder
         * 
         */
        public Builder vcores(Integer vcores) {
            return vcores(Output.of(vcores));
        }

        public DriverSchedulingConfigArgs build() {
            $.memoryMb = Objects.requireNonNull($.memoryMb, "expected parameter 'memoryMb' to be non-null");
            $.vcores = Objects.requireNonNull($.vcores, "expected parameter 'vcores' to be non-null");
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy