// *** 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<List<ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecificationArgs>> onDemandSpecifications;

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

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

    /**
     * @return Configuration block for spot instances launch specifications.
     * 
     */
    public Optional<Output<List<ClusterCoreInstanceFleetLaunchSpecificationsSpotSpecificationArgs>>> 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<List<ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecificationArgs>> onDemandSpecifications) {
            $.onDemandSpecifications = onDemandSpecifications;
            return this;
        }

        /**
         * @param onDemandSpecifications Configuration block for on demand instances launch specifications.
         * 
         * @return builder
         * 
         */
        public Builder onDemandSpecifications(List<ClusterCoreInstanceFleetLaunchSpecificationsOnDemandSpecificationArgs> 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<List<ClusterCoreInstanceFleetLaunchSpecificationsSpotSpecificationArgs>> spotSpecifications) {
            $.spotSpecifications = spotSpecifications;
            return this;
        }

        /**
         * @param spotSpecifications Configuration block for spot instances launch specifications.
         * 
         * @return builder
         * 
         */
        public Builder spotSpecifications(List<ClusterCoreInstanceFleetLaunchSpecificationsSpotSpecificationArgs> 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 $;
        }
    }

}
