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

com.pulumi.azurenative.datamigration.inputs.GetUserTablesPostgreSqlTaskInputArgs Maven / Gradle / Ivy

There is a newer version: 2.72.0
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.azurenative.datamigration.inputs;

import com.pulumi.azurenative.datamigration.inputs.PostgreSqlConnectionInfoArgs;
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;


/**
 * Input for the task that gets the list of tables for a provided list of PostgreSQL databases.
 * 
 */
public final class GetUserTablesPostgreSqlTaskInputArgs extends com.pulumi.resources.ResourceArgs {

    public static final GetUserTablesPostgreSqlTaskInputArgs Empty = new GetUserTablesPostgreSqlTaskInputArgs();

    /**
     * Information for connecting to PostgreSQL source
     * 
     */
    @Import(name="connectionInfo", required=true)
    private Output connectionInfo;

    /**
     * @return Information for connecting to PostgreSQL source
     * 
     */
    public Output connectionInfo() {
        return this.connectionInfo;
    }

    /**
     * List of PostgreSQL databases for which to collect tables
     * 
     */
    @Import(name="selectedDatabases", required=true)
    private Output> selectedDatabases;

    /**
     * @return List of PostgreSQL databases for which to collect tables
     * 
     */
    public Output> selectedDatabases() {
        return this.selectedDatabases;
    }

    private GetUserTablesPostgreSqlTaskInputArgs() {}

    private GetUserTablesPostgreSqlTaskInputArgs(GetUserTablesPostgreSqlTaskInputArgs $) {
        this.connectionInfo = $.connectionInfo;
        this.selectedDatabases = $.selectedDatabases;
    }

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

    public static final class Builder {
        private GetUserTablesPostgreSqlTaskInputArgs $;

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

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

        /**
         * @param connectionInfo Information for connecting to PostgreSQL source
         * 
         * @return builder
         * 
         */
        public Builder connectionInfo(Output connectionInfo) {
            $.connectionInfo = connectionInfo;
            return this;
        }

        /**
         * @param connectionInfo Information for connecting to PostgreSQL source
         * 
         * @return builder
         * 
         */
        public Builder connectionInfo(PostgreSqlConnectionInfoArgs connectionInfo) {
            return connectionInfo(Output.of(connectionInfo));
        }

        /**
         * @param selectedDatabases List of PostgreSQL databases for which to collect tables
         * 
         * @return builder
         * 
         */
        public Builder selectedDatabases(Output> selectedDatabases) {
            $.selectedDatabases = selectedDatabases;
            return this;
        }

        /**
         * @param selectedDatabases List of PostgreSQL databases for which to collect tables
         * 
         * @return builder
         * 
         */
        public Builder selectedDatabases(List selectedDatabases) {
            return selectedDatabases(Output.of(selectedDatabases));
        }

        /**
         * @param selectedDatabases List of PostgreSQL databases for which to collect tables
         * 
         * @return builder
         * 
         */
        public Builder selectedDatabases(String... selectedDatabases) {
            return selectedDatabases(List.of(selectedDatabases));
        }

        public GetUserTablesPostgreSqlTaskInputArgs build() {
            if ($.connectionInfo == null) {
                throw new MissingRequiredPropertyException("GetUserTablesPostgreSqlTaskInputArgs", "connectionInfo");
            }
            if ($.selectedDatabases == null) {
                throw new MissingRequiredPropertyException("GetUserTablesPostgreSqlTaskInputArgs", "selectedDatabases");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy