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

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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;


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

    public static final DataSourceParametersPostgresqlArgs Empty = new DataSourceParametersPostgresqlArgs();

    /**
     * The database to which to connect.
     * 
     */
    @Import(name="database", required=true)
    private Output database;

    /**
     * @return The database to which to connect.
     * 
     */
    public Output database() {
        return this.database;
    }

    /**
     * The host to which to connect.
     * 
     */
    @Import(name="host", required=true)
    private Output host;

    /**
     * @return The host to which to connect.
     * 
     */
    public Output host() {
        return this.host;
    }

    /**
     * The port to which to connect.
     * 
     */
    @Import(name="port", required=true)
    private Output port;

    /**
     * @return The port to which to connect.
     * 
     */
    public Output port() {
        return this.port;
    }

    private DataSourceParametersPostgresqlArgs() {}

    private DataSourceParametersPostgresqlArgs(DataSourceParametersPostgresqlArgs $) {
        this.database = $.database;
        this.host = $.host;
        this.port = $.port;
    }

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

    public static final class Builder {
        private DataSourceParametersPostgresqlArgs $;

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

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

        /**
         * @param database The database to which to connect.
         * 
         * @return builder
         * 
         */
        public Builder database(Output database) {
            $.database = database;
            return this;
        }

        /**
         * @param database The database to which to connect.
         * 
         * @return builder
         * 
         */
        public Builder database(String database) {
            return database(Output.of(database));
        }

        /**
         * @param host The host to which to connect.
         * 
         * @return builder
         * 
         */
        public Builder host(Output host) {
            $.host = host;
            return this;
        }

        /**
         * @param host The host to which to connect.
         * 
         * @return builder
         * 
         */
        public Builder host(String host) {
            return host(Output.of(host));
        }

        /**
         * @param port The port to which to connect.
         * 
         * @return builder
         * 
         */
        public Builder port(Output port) {
            $.port = port;
            return this;
        }

        /**
         * @param port The port to which to connect.
         * 
         * @return builder
         * 
         */
        public Builder port(Integer port) {
            return port(Output.of(port));
        }

        public DataSourceParametersPostgresqlArgs build() {
            if ($.database == null) {
                throw new MissingRequiredPropertyException("DataSourceParametersPostgresqlArgs", "database");
            }
            if ($.host == null) {
                throw new MissingRequiredPropertyException("DataSourceParametersPostgresqlArgs", "host");
            }
            if ($.port == null) {
                throw new MissingRequiredPropertyException("DataSourceParametersPostgresqlArgs", "port");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy