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

com.pulumi.aws.quicksight.inputs.DataSetPhysicalTableMapCustomSqlArgs 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.66.3
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.quicksight.inputs;

import com.pulumi.aws.quicksight.inputs.DataSetPhysicalTableMapCustomSqlColumnArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final DataSetPhysicalTableMapCustomSqlArgs Empty = new DataSetPhysicalTableMapCustomSqlArgs();

    /**
     * Column schema from the SQL query result set. See columns.
     * 
     */
    @Import(name="columns")
    private @Nullable Output> columns;

    /**
     * @return Column schema from the SQL query result set. See columns.
     * 
     */
    public Optional>> columns() {
        return Optional.ofNullable(this.columns);
    }

    /**
     * ARN of the data source.
     * 
     */
    @Import(name="dataSourceArn", required=true)
    private Output dataSourceArn;

    /**
     * @return ARN of the data source.
     * 
     */
    public Output dataSourceArn() {
        return this.dataSourceArn;
    }

    /**
     * Display name for the SQL query result.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return Display name for the SQL query result.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * SQL query.
     * 
     */
    @Import(name="sqlQuery", required=true)
    private Output sqlQuery;

    /**
     * @return SQL query.
     * 
     */
    public Output sqlQuery() {
        return this.sqlQuery;
    }

    private DataSetPhysicalTableMapCustomSqlArgs() {}

    private DataSetPhysicalTableMapCustomSqlArgs(DataSetPhysicalTableMapCustomSqlArgs $) {
        this.columns = $.columns;
        this.dataSourceArn = $.dataSourceArn;
        this.name = $.name;
        this.sqlQuery = $.sqlQuery;
    }

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

    public static final class Builder {
        private DataSetPhysicalTableMapCustomSqlArgs $;

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

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

        /**
         * @param columns Column schema from the SQL query result set. See columns.
         * 
         * @return builder
         * 
         */
        public Builder columns(@Nullable Output> columns) {
            $.columns = columns;
            return this;
        }

        /**
         * @param columns Column schema from the SQL query result set. See columns.
         * 
         * @return builder
         * 
         */
        public Builder columns(List columns) {
            return columns(Output.of(columns));
        }

        /**
         * @param columns Column schema from the SQL query result set. See columns.
         * 
         * @return builder
         * 
         */
        public Builder columns(DataSetPhysicalTableMapCustomSqlColumnArgs... columns) {
            return columns(List.of(columns));
        }

        /**
         * @param dataSourceArn ARN of the data source.
         * 
         * @return builder
         * 
         */
        public Builder dataSourceArn(Output dataSourceArn) {
            $.dataSourceArn = dataSourceArn;
            return this;
        }

        /**
         * @param dataSourceArn ARN of the data source.
         * 
         * @return builder
         * 
         */
        public Builder dataSourceArn(String dataSourceArn) {
            return dataSourceArn(Output.of(dataSourceArn));
        }

        /**
         * @param name Display name for the SQL query result.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Display name for the SQL query result.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param sqlQuery SQL query.
         * 
         * @return builder
         * 
         */
        public Builder sqlQuery(Output sqlQuery) {
            $.sqlQuery = sqlQuery;
            return this;
        }

        /**
         * @param sqlQuery SQL query.
         * 
         * @return builder
         * 
         */
        public Builder sqlQuery(String sqlQuery) {
            return sqlQuery(Output.of(sqlQuery));
        }

        public DataSetPhysicalTableMapCustomSqlArgs build() {
            if ($.dataSourceArn == null) {
                throw new MissingRequiredPropertyException("DataSetPhysicalTableMapCustomSqlArgs", "dataSourceArn");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("DataSetPhysicalTableMapCustomSqlArgs", "name");
            }
            if ($.sqlQuery == null) {
                throw new MissingRequiredPropertyException("DataSetPhysicalTableMapCustomSqlArgs", "sqlQuery");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy