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

import com.pulumi.aws.autoscaling.inputs.GetAmiIdsFilter;
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 GetAmiIdsPlainArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetAmiIdsPlainArgs Empty = new GetAmiIdsPlainArgs();

    /**
     * Filter used to scope the list e.g., by tags. See [related docs](http://docs.aws.amazon.com/AutoScaling/latest/APIReference/API_Filter.html).
     * 
     */
    @Import(name="filters")
    private @Nullable List<GetAmiIdsFilter> filters;

    /**
     * @return Filter used to scope the list e.g., by tags. See [related docs](http://docs.aws.amazon.com/AutoScaling/latest/APIReference/API_Filter.html).
     * 
     */
    public Optional<List<GetAmiIdsFilter>> filters() {
        return Optional.ofNullable(this.filters);
    }

    /**
     * List of autoscaling group names
     * 
     */
    @Import(name="names")
    private @Nullable List<String> names;

    /**
     * @return List of autoscaling group names
     * 
     */
    public Optional<List<String>> names() {
        return Optional.ofNullable(this.names);
    }

    private GetAmiIdsPlainArgs() {}

    private GetAmiIdsPlainArgs(GetAmiIdsPlainArgs $) {
        this.filters = $.filters;
        this.names = $.names;
    }

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

    public static final class Builder {
        private GetAmiIdsPlainArgs $;

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

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

        /**
         * @param filters Filter used to scope the list e.g., by tags. See [related docs](http://docs.aws.amazon.com/AutoScaling/latest/APIReference/API_Filter.html).
         * 
         * @return builder
         * 
         */
        public Builder filters(@Nullable List<GetAmiIdsFilter> filters) {
            $.filters = filters;
            return this;
        }

        /**
         * @param filters Filter used to scope the list e.g., by tags. See [related docs](http://docs.aws.amazon.com/AutoScaling/latest/APIReference/API_Filter.html).
         * 
         * @return builder
         * 
         */
        public Builder filters(GetAmiIdsFilter... filters) {
            return filters(List.of(filters));
        }

        /**
         * @param names List of autoscaling group names
         * 
         * @return builder
         * 
         */
        public Builder names(@Nullable List<String> names) {
            $.names = names;
            return this;
        }

        /**
         * @param names List of autoscaling group names
         * 
         * @return builder
         * 
         */
        public Builder names(String... names) {
            return names(List.of(names));
        }

        public GetAmiIdsPlainArgs build() {
            return $;
        }
    }

}
