All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.athena.inputs.NamedQueryState Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show newest version
// *** 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 database;

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

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

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

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

    /**
     * @return Plain language name for the query. Maximum length of 128.
     * 
     */
    public Optional> 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 query;

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

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

    /**
     * @return Workgroup to which the query belongs. Defaults to `primary`
     * 
     */
    public Optional> 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 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 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 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 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 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 $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy