// *** 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.GetInstanceTypeOfferingsFilter;
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 GetInstanceTypeOfferingsPlainArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetInstanceTypeOfferingsPlainArgs Empty = new GetInstanceTypeOfferingsPlainArgs();

    /**
     * One or more configuration blocks containing name-values filters. See the [EC2 API Reference](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstanceTypeOfferings.html) for supported filters. Detailed below.
     * 
     */
    @Import(name="filters")
    private @Nullable List<GetInstanceTypeOfferingsFilter> 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_DescribeInstanceTypeOfferings.html) for supported filters. Detailed below.
     * 
     */
    public Optional<List<GetInstanceTypeOfferingsFilter>> filters() {
        return Optional.ofNullable(this.filters);
    }

    /**
     * Location type. Defaults to `region`. Valid values: `availability-zone`, `availability-zone-id`, and `region`.
     * 
     */
    @Import(name="locationType")
    private @Nullable String locationType;

    /**
     * @return Location type. Defaults to `region`. Valid values: `availability-zone`, `availability-zone-id`, and `region`.
     * 
     */
    public Optional<String> locationType() {
        return Optional.ofNullable(this.locationType);
    }

    private GetInstanceTypeOfferingsPlainArgs() {}

    private GetInstanceTypeOfferingsPlainArgs(GetInstanceTypeOfferingsPlainArgs $) {
        this.filters = $.filters;
        this.locationType = $.locationType;
    }

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

    public static final class Builder {
        private GetInstanceTypeOfferingsPlainArgs $;

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

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

        /**
         * @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_DescribeInstanceTypeOfferings.html) for supported filters. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder filters(@Nullable List<GetInstanceTypeOfferingsFilter> 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_DescribeInstanceTypeOfferings.html) for supported filters. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder filters(GetInstanceTypeOfferingsFilter... filters) {
            return filters(List.of(filters));
        }

        /**
         * @param locationType Location type. Defaults to `region`. Valid values: `availability-zone`, `availability-zone-id`, and `region`.
         * 
         * @return builder
         * 
         */
        public Builder locationType(@Nullable String locationType) {
            $.locationType = locationType;
            return this;
        }

        public GetInstanceTypeOfferingsPlainArgs build() {
            return $;
        }
    }

}
