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

com.pulumi.aws.emrserverless.inputs.ApplicationInitialCapacityInitialCapacityConfigWorkerConfigurationArgs 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.aws.emrserverless.inputs;

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


public final class ApplicationInitialCapacityInitialCapacityConfigWorkerConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final ApplicationInitialCapacityInitialCapacityConfigWorkerConfigurationArgs Empty = new ApplicationInitialCapacityInitialCapacityConfigWorkerConfigurationArgs();

    /**
     * The CPU requirements for every worker instance of the worker type.
     * 
     */
    @Import(name="cpu", required=true)
    private Output cpu;

    /**
     * @return The CPU requirements for every worker instance of the worker type.
     * 
     */
    public Output cpu() {
        return this.cpu;
    }

    /**
     * The disk requirements for every worker instance of the worker type.
     * 
     */
    @Import(name="disk")
    private @Nullable Output disk;

    /**
     * @return The disk requirements for every worker instance of the worker type.
     * 
     */
    public Optional> disk() {
        return Optional.ofNullable(this.disk);
    }

    /**
     * The memory requirements for every worker instance of the worker type.
     * 
     */
    @Import(name="memory", required=true)
    private Output memory;

    /**
     * @return The memory requirements for every worker instance of the worker type.
     * 
     */
    public Output memory() {
        return this.memory;
    }

    private ApplicationInitialCapacityInitialCapacityConfigWorkerConfigurationArgs() {}

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

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

    public static final class Builder {
        private ApplicationInitialCapacityInitialCapacityConfigWorkerConfigurationArgs $;

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

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

        /**
         * @param cpu The CPU requirements for every worker instance of the worker type.
         * 
         * @return builder
         * 
         */
        public Builder cpu(Output cpu) {
            $.cpu = cpu;
            return this;
        }

        /**
         * @param cpu The CPU requirements for every worker instance of the worker type.
         * 
         * @return builder
         * 
         */
        public Builder cpu(String cpu) {
            return cpu(Output.of(cpu));
        }

        /**
         * @param disk The disk requirements for every worker instance of the worker type.
         * 
         * @return builder
         * 
         */
        public Builder disk(@Nullable Output disk) {
            $.disk = disk;
            return this;
        }

        /**
         * @param disk The disk requirements for every worker instance of the worker type.
         * 
         * @return builder
         * 
         */
        public Builder disk(String disk) {
            return disk(Output.of(disk));
        }

        /**
         * @param memory The memory requirements for every worker instance of the worker type.
         * 
         * @return builder
         * 
         */
        public Builder memory(Output memory) {
            $.memory = memory;
            return this;
        }

        /**
         * @param memory The memory requirements for every worker instance of the worker type.
         * 
         * @return builder
         * 
         */
        public Builder memory(String memory) {
            return memory(Output.of(memory));
        }

        public ApplicationInitialCapacityInitialCapacityConfigWorkerConfigurationArgs build() {
            if ($.cpu == null) {
                throw new MissingRequiredPropertyException("ApplicationInitialCapacityInitialCapacityConfigWorkerConfigurationArgs", "cpu");
            }
            if ($.memory == null) {
                throw new MissingRequiredPropertyException("ApplicationInitialCapacityInitialCapacityConfigWorkerConfigurationArgs", "memory");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy