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

import com.pulumi.aws.fsx.inputs.GetOpenZfsSnapshotFilterArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final GetOpenZfsSnapshotArgs Empty = new GetOpenZfsSnapshotArgs();

    /**
     * One or more name/value pairs to filter off of. The
     * supported names are file-system-id or volume-id.
     * 
     */
    @Import(name="filters")
    private @Nullable Output<List<GetOpenZfsSnapshotFilterArgs>> filters;

    /**
     * @return One or more name/value pairs to filter off of. The
     * supported names are file-system-id or volume-id.
     * 
     */
    public Optional<Output<List<GetOpenZfsSnapshotFilterArgs>>> filters() {
        return Optional.ofNullable(this.filters);
    }

    /**
     * If more than one result is returned, use the most recent snapshot.
     * 
     */
    @Import(name="mostRecent")
    private @Nullable Output<Boolean> mostRecent;

    /**
     * @return If more than one result is returned, use the most recent snapshot.
     * 
     */
    public Optional<Output<Boolean>> mostRecent() {
        return Optional.ofNullable(this.mostRecent);
    }

    /**
     * Name of the snapshot.
     * 
     */
    @Import(name="name")
    private @Nullable Output<String> name;

    /**
     * @return Name of the snapshot.
     * 
     */
    public Optional<Output<String>> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Returns information on a specific snapshot_id.
     * 
     */
    @Import(name="snapshotIds")
    private @Nullable Output<List<String>> snapshotIds;

    /**
     * @return Returns information on a specific snapshot_id.
     * 
     */
    public Optional<Output<List<String>>> snapshotIds() {
        return Optional.ofNullable(this.snapshotIds);
    }

    /**
     * List of Tag values, with a maximum of 50 elements.
     * 
     */
    @Import(name="tags")
    private @Nullable Output<Map<String,String>> tags;

    /**
     * @return List of Tag values, with a maximum of 50 elements.
     * 
     */
    public Optional<Output<Map<String,String>>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private GetOpenZfsSnapshotArgs() {}

    private GetOpenZfsSnapshotArgs(GetOpenZfsSnapshotArgs $) {
        this.filters = $.filters;
        this.mostRecent = $.mostRecent;
        this.name = $.name;
        this.snapshotIds = $.snapshotIds;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private GetOpenZfsSnapshotArgs $;

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

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

        /**
         * @param filters One or more name/value pairs to filter off of. The
         * supported names are file-system-id or volume-id.
         * 
         * @return builder
         * 
         */
        public Builder filters(@Nullable Output<List<GetOpenZfsSnapshotFilterArgs>> filters) {
            $.filters = filters;
            return this;
        }

        /**
         * @param filters One or more name/value pairs to filter off of. The
         * supported names are file-system-id or volume-id.
         * 
         * @return builder
         * 
         */
        public Builder filters(List<GetOpenZfsSnapshotFilterArgs> filters) {
            return filters(Output.of(filters));
        }

        /**
         * @param filters One or more name/value pairs to filter off of. The
         * supported names are file-system-id or volume-id.
         * 
         * @return builder
         * 
         */
        public Builder filters(GetOpenZfsSnapshotFilterArgs... filters) {
            return filters(List.of(filters));
        }

        /**
         * @param mostRecent If more than one result is returned, use the most recent snapshot.
         * 
         * @return builder
         * 
         */
        public Builder mostRecent(@Nullable Output<Boolean> mostRecent) {
            $.mostRecent = mostRecent;
            return this;
        }

        /**
         * @param mostRecent If more than one result is returned, use the most recent snapshot.
         * 
         * @return builder
         * 
         */
        public Builder mostRecent(Boolean mostRecent) {
            return mostRecent(Output.of(mostRecent));
        }

        /**
         * @param name Name of the snapshot.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output<String> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the snapshot.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param snapshotIds Returns information on a specific snapshot_id.
         * 
         * @return builder
         * 
         */
        public Builder snapshotIds(@Nullable Output<List<String>> snapshotIds) {
            $.snapshotIds = snapshotIds;
            return this;
        }

        /**
         * @param snapshotIds Returns information on a specific snapshot_id.
         * 
         * @return builder
         * 
         */
        public Builder snapshotIds(List<String> snapshotIds) {
            return snapshotIds(Output.of(snapshotIds));
        }

        /**
         * @param snapshotIds Returns information on a specific snapshot_id.
         * 
         * @return builder
         * 
         */
        public Builder snapshotIds(String... snapshotIds) {
            return snapshotIds(List.of(snapshotIds));
        }

        /**
         * @param tags List of Tag values, with a maximum of 50 elements.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output<Map<String,String>> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags List of Tag values, with a maximum of 50 elements.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map<String,String> tags) {
            return tags(Output.of(tags));
        }

        public GetOpenZfsSnapshotArgs build() {
            return $;
        }
    }

}
