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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final NamedQueryState Empty = new NamedQueryState();

    /**
     * Database to which the query belongs.
     * 
     */
    @Import(name="database")
    private @Nullable Output<String> database;

    /**
     * @return Database to which the query belongs.
     * 
     */
    public Optional<Output<String>> database() {
        return Optional.ofNullable(this.database);
    }

    /**
     * Brief explanation of the query. Maximum length of 1024.
     * 
     */
    @Import(name="description")
    private @Nullable Output<String> description;

    /**
     * @return Brief explanation of the query. Maximum length of 1024.
     * 
     */
    public Optional<Output<String>> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Plain language name for the query. Maximum length of 128.
     * 
     */
    @Import(name="name")
    private @Nullable Output<String> name;

    /**
     * @return Plain language name for the query. Maximum length of 128.
     * 
     */
    public Optional<Output<String>> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Text of the query itself. In other words, all query statements. Maximum length of 262144.
     * 
     */
    @Import(name="query")
    private @Nullable Output<String> query;

    /**
     * @return Text of the query itself. In other words, all query statements. Maximum length of 262144.
     * 
     */
    public Optional<Output<String>> query() {
        return Optional.ofNullable(this.query);
    }

    /**
     * Workgroup to which the query belongs. Defaults to `primary`
     * 
     */
    @Import(name="workgroup")
    private @Nullable Output<String> workgroup;

    /**
     * @return Workgroup to which the query belongs. Defaults to `primary`
     * 
     */
    public Optional<Output<String>> workgroup() {
        return Optional.ofNullable(this.workgroup);
    }

    private NamedQueryState() {}

    private NamedQueryState(NamedQueryState $) {
        this.database = $.database;
        this.description = $.description;
        this.name = $.name;
        this.query = $.query;
        this.workgroup = $.workgroup;
    }

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

    public static final class Builder {
        private NamedQueryState $;

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

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

        /**
         * @param database Database to which the query belongs.
         * 
         * @return builder
         * 
         */
        public Builder database(@Nullable Output<String> database) {
            $.database = database;
            return this;
        }

        /**
         * @param database Database to which the query belongs.
         * 
         * @return builder
         * 
         */
        public Builder database(String database) {
            return database(Output.of(database));
        }

        /**
         * @param description Brief explanation of the query. Maximum length of 1024.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output<String> description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Brief explanation of the query. Maximum length of 1024.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param name Plain language name for the query. Maximum length of 128.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output<String> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Plain language name for the query. Maximum length of 128.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param query Text of the query itself. In other words, all query statements. Maximum length of 262144.
         * 
         * @return builder
         * 
         */
        public Builder query(@Nullable Output<String> query) {
            $.query = query;
            return this;
        }

        /**
         * @param query Text of the query itself. In other words, all query statements. Maximum length of 262144.
         * 
         * @return builder
         * 
         */
        public Builder query(String query) {
            return query(Output.of(query));
        }

        /**
         * @param workgroup Workgroup to which the query belongs. Defaults to `primary`
         * 
         * @return builder
         * 
         */
        public Builder workgroup(@Nullable Output<String> workgroup) {
            $.workgroup = workgroup;
            return this;
        }

        /**
         * @param workgroup Workgroup to which the query belongs. Defaults to `primary`
         * 
         * @return builder
         * 
         */
        public Builder workgroup(String workgroup) {
            return workgroup(Output.of(workgroup));
        }

        public NamedQueryState build() {
            return $;
        }
    }

}
