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

import com.pulumi.aws.ec2.inputs.GetSpotPriceFilter;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class GetSpotPricePlainArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetSpotPricePlainArgs Empty = new GetSpotPricePlainArgs();

    /**
     * Availability zone in which to query Spot price information.
     * 
     */
    @Import(name="availabilityZone")
    private @Nullable String availabilityZone;

    /**
     * @return Availability zone in which to query Spot price information.
     * 
     */
    public Optional<String> availabilityZone() {
        return Optional.ofNullable(this.availabilityZone);
    }

    /**
     * One or more configuration blocks containing name-values filters. See the [EC2 API Reference](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSpotPriceHistory.html) for supported filters. Detailed below.
     * 
     */
    @Import(name="filters")
    private @Nullable List<GetSpotPriceFilter> filters;

    /**
     * @return One or more configuration blocks containing name-values filters. See the [EC2 API Reference](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSpotPriceHistory.html) for supported filters. Detailed below.
     * 
     */
    public Optional<List<GetSpotPriceFilter>> filters() {
        return Optional.ofNullable(this.filters);
    }

    /**
     * Type of instance for which to query Spot Price information.
     * 
     */
    @Import(name="instanceType")
    private @Nullable String instanceType;

    /**
     * @return Type of instance for which to query Spot Price information.
     * 
     */
    public Optional<String> instanceType() {
        return Optional.ofNullable(this.instanceType);
    }

    private GetSpotPricePlainArgs() {}

    private GetSpotPricePlainArgs(GetSpotPricePlainArgs $) {
        this.availabilityZone = $.availabilityZone;
        this.filters = $.filters;
        this.instanceType = $.instanceType;
    }

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

    public static final class Builder {
        private GetSpotPricePlainArgs $;

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

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

        /**
         * @param availabilityZone Availability zone in which to query Spot price information.
         * 
         * @return builder
         * 
         */
        public Builder availabilityZone(@Nullable String availabilityZone) {
            $.availabilityZone = availabilityZone;
            return this;
        }

        /**
         * @param filters One or more configuration blocks containing name-values filters. See the [EC2 API Reference](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSpotPriceHistory.html) for supported filters. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder filters(@Nullable List<GetSpotPriceFilter> filters) {
            $.filters = filters;
            return this;
        }

        /**
         * @param filters One or more configuration blocks containing name-values filters. See the [EC2 API Reference](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSpotPriceHistory.html) for supported filters. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder filters(GetSpotPriceFilter... filters) {
            return filters(List.of(filters));
        }

        /**
         * @param instanceType Type of instance for which to query Spot Price information.
         * 
         * @return builder
         * 
         */
        public Builder instanceType(@Nullable String instanceType) {
            $.instanceType = instanceType;
            return this;
        }

        public GetSpotPricePlainArgs build() {
            return $;
        }
    }

}
