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

com.pulumi.aws.emr.inputs.ClusterCoreInstanceFleetLaunchSpecificationsArgs Maven / Gradle / Ivy

Go to download

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

There is a newer version: 6.60.0-alpha.1731982519
Show 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.emr.inputs;

import com.pulumi.aws.emr.inputs.ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecificationArgs;
import com.pulumi.aws.emr.inputs.ClusterCoreInstanceFleetLaunchSpecificationsSpotSpecificationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ClusterCoreInstanceFleetLaunchSpecificationsArgs Empty = new ClusterCoreInstanceFleetLaunchSpecificationsArgs();

    /**
     * Configuration block for on demand instances launch specifications.
     * 
     */
    @Import(name="onDemandSpecifications")
    private @Nullable Output> onDemandSpecifications;

    /**
     * @return Configuration block for on demand instances launch specifications.
     * 
     */
    public Optional>> onDemandSpecifications() {
        return Optional.ofNullable(this.onDemandSpecifications);
    }

    /**
     * Configuration block for spot instances launch specifications.
     * 
     */
    @Import(name="spotSpecifications")
    private @Nullable Output> spotSpecifications;

    /**
     * @return Configuration block for spot instances launch specifications.
     * 
     */
    public Optional>> spotSpecifications() {
        return Optional.ofNullable(this.spotSpecifications);
    }

    private ClusterCoreInstanceFleetLaunchSpecificationsArgs() {}

    private ClusterCoreInstanceFleetLaunchSpecificationsArgs(ClusterCoreInstanceFleetLaunchSpecificationsArgs $) {
        this.onDemandSpecifications = $.onDemandSpecifications;
        this.spotSpecifications = $.spotSpecifications;
    }

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

    public static final class Builder {
        private ClusterCoreInstanceFleetLaunchSpecificationsArgs $;

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

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

        /**
         * @param onDemandSpecifications Configuration block for on demand instances launch specifications.
         * 
         * @return builder
         * 
         */
        public Builder onDemandSpecifications(@Nullable Output> onDemandSpecifications) {
            $.onDemandSpecifications = onDemandSpecifications;
            return this;
        }

        /**
         * @param onDemandSpecifications Configuration block for on demand instances launch specifications.
         * 
         * @return builder
         * 
         */
        public Builder onDemandSpecifications(List onDemandSpecifications) {
            return onDemandSpecifications(Output.of(onDemandSpecifications));
        }

        /**
         * @param onDemandSpecifications Configuration block for on demand instances launch specifications.
         * 
         * @return builder
         * 
         */
        public Builder onDemandSpecifications(ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecificationArgs... onDemandSpecifications) {
            return onDemandSpecifications(List.of(onDemandSpecifications));
        }

        /**
         * @param spotSpecifications Configuration block for spot instances launch specifications.
         * 
         * @return builder
         * 
         */
        public Builder spotSpecifications(@Nullable Output> spotSpecifications) {
            $.spotSpecifications = spotSpecifications;
            return this;
        }

        /**
         * @param spotSpecifications Configuration block for spot instances launch specifications.
         * 
         * @return builder
         * 
         */
        public Builder spotSpecifications(List spotSpecifications) {
            return spotSpecifications(Output.of(spotSpecifications));
        }

        /**
         * @param spotSpecifications Configuration block for spot instances launch specifications.
         * 
         * @return builder
         * 
         */
        public Builder spotSpecifications(ClusterCoreInstanceFleetLaunchSpecificationsSpotSpecificationArgs... spotSpecifications) {
            return spotSpecifications(List.of(spotSpecifications));
        }

        public ClusterCoreInstanceFleetLaunchSpecificationsArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy