// *** 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.gcp.container.inputs;

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


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

    public static final AwsNodePoolConfigSpotConfigArgs Empty = new AwsNodePoolConfigSpotConfigArgs();

    /**
     * List of AWS EC2 instance types for creating a spot node pool&#39;s nodes. The specified instance types must have the same number of CPUs and memory. You can use the Amazon EC2 Instance Selector tool (https://github.com/aws/amazon-ec2-instance-selector) to choose instance types with matching CPU and memory
     * 
     */
    @Import(name="instanceTypes", required=true)
    private Output<List<String>> instanceTypes;

    /**
     * @return List of AWS EC2 instance types for creating a spot node pool&#39;s nodes. The specified instance types must have the same number of CPUs and memory. You can use the Amazon EC2 Instance Selector tool (https://github.com/aws/amazon-ec2-instance-selector) to choose instance types with matching CPU and memory
     * 
     */
    public Output<List<String>> instanceTypes() {
        return this.instanceTypes;
    }

    private AwsNodePoolConfigSpotConfigArgs() {}

    private AwsNodePoolConfigSpotConfigArgs(AwsNodePoolConfigSpotConfigArgs $) {
        this.instanceTypes = $.instanceTypes;
    }

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

    public static final class Builder {
        private AwsNodePoolConfigSpotConfigArgs $;

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

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

        /**
         * @param instanceTypes List of AWS EC2 instance types for creating a spot node pool&#39;s nodes. The specified instance types must have the same number of CPUs and memory. You can use the Amazon EC2 Instance Selector tool (https://github.com/aws/amazon-ec2-instance-selector) to choose instance types with matching CPU and memory
         * 
         * @return builder
         * 
         */
        public Builder instanceTypes(Output<List<String>> instanceTypes) {
            $.instanceTypes = instanceTypes;
            return this;
        }

        /**
         * @param instanceTypes List of AWS EC2 instance types for creating a spot node pool&#39;s nodes. The specified instance types must have the same number of CPUs and memory. You can use the Amazon EC2 Instance Selector tool (https://github.com/aws/amazon-ec2-instance-selector) to choose instance types with matching CPU and memory
         * 
         * @return builder
         * 
         */
        public Builder instanceTypes(List<String> instanceTypes) {
            return instanceTypes(Output.of(instanceTypes));
        }

        /**
         * @param instanceTypes List of AWS EC2 instance types for creating a spot node pool&#39;s nodes. The specified instance types must have the same number of CPUs and memory. You can use the Amazon EC2 Instance Selector tool (https://github.com/aws/amazon-ec2-instance-selector) to choose instance types with matching CPU and memory
         * 
         * @return builder
         * 
         */
        public Builder instanceTypes(String... instanceTypes) {
            return instanceTypes(List.of(instanceTypes));
        }

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

}
