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

com.pulumi.aws.emrserverless.outputs.ApplicationInitialCapacity Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The newest version!
// *** 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.outputs;

import com.pulumi.aws.emrserverless.outputs.ApplicationInitialCapacityInitialCapacityConfig;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ApplicationInitialCapacity {
    /**
     * @return The initial capacity configuration per worker.
     * 
     */
    private @Nullable ApplicationInitialCapacityInitialCapacityConfig initialCapacityConfig;
    /**
     * @return The worker type for an analytics framework. For Spark applications, the key can either be set to `Driver` or `Executor`. For Hive applications, it can be set to `HiveDriver` or `TezTask`.
     * 
     */
    private String initialCapacityType;

    private ApplicationInitialCapacity() {}
    /**
     * @return The initial capacity configuration per worker.
     * 
     */
    public Optional initialCapacityConfig() {
        return Optional.ofNullable(this.initialCapacityConfig);
    }
    /**
     * @return The worker type for an analytics framework. For Spark applications, the key can either be set to `Driver` or `Executor`. For Hive applications, it can be set to `HiveDriver` or `TezTask`.
     * 
     */
    public String initialCapacityType() {
        return this.initialCapacityType;
    }

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

    public static Builder builder(ApplicationInitialCapacity defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable ApplicationInitialCapacityInitialCapacityConfig initialCapacityConfig;
        private String initialCapacityType;
        public Builder() {}
        public Builder(ApplicationInitialCapacity defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.initialCapacityConfig = defaults.initialCapacityConfig;
    	      this.initialCapacityType = defaults.initialCapacityType;
        }

        @CustomType.Setter
        public Builder initialCapacityConfig(@Nullable ApplicationInitialCapacityInitialCapacityConfig initialCapacityConfig) {

            this.initialCapacityConfig = initialCapacityConfig;
            return this;
        }
        @CustomType.Setter
        public Builder initialCapacityType(String initialCapacityType) {
            if (initialCapacityType == null) {
              throw new MissingRequiredPropertyException("ApplicationInitialCapacity", "initialCapacityType");
            }
            this.initialCapacityType = initialCapacityType;
            return this;
        }
        public ApplicationInitialCapacity build() {
            final var _resultValue = new ApplicationInitialCapacity();
            _resultValue.initialCapacityConfig = initialCapacityConfig;
            _resultValue.initialCapacityType = initialCapacityType;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy