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

com.pulumi.azurenative.datamigration.inputs.MigrateSqlServerSqlDbSyncTaskInputArgs 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.MigrateSqlServerSqlDbSyncDatabaseInputArgs;
import com.pulumi.azurenative.datamigration.inputs.MigrationValidationOptionsArgs;
import com.pulumi.azurenative.datamigration.inputs.SqlConnectionInfoArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Input for the task that migrates on-prem SQL Server databases to Azure SQL Database for online migrations
 * 
 */
public final class MigrateSqlServerSqlDbSyncTaskInputArgs extends com.pulumi.resources.ResourceArgs {

    public static final MigrateSqlServerSqlDbSyncTaskInputArgs Empty = new MigrateSqlServerSqlDbSyncTaskInputArgs();

    /**
     * Databases to migrate
     * 
     */
    @Import(name="selectedDatabases", required=true)
    private Output> selectedDatabases;

    /**
     * @return Databases to migrate
     * 
     */
    public Output> selectedDatabases() {
        return this.selectedDatabases;
    }

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

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

    /**
     * Information for connecting to target
     * 
     */
    @Import(name="targetConnectionInfo", required=true)
    private Output targetConnectionInfo;

    /**
     * @return Information for connecting to target
     * 
     */
    public Output targetConnectionInfo() {
        return this.targetConnectionInfo;
    }

    /**
     * Validation options
     * 
     */
    @Import(name="validationOptions")
    private @Nullable Output validationOptions;

    /**
     * @return Validation options
     * 
     */
    public Optional> validationOptions() {
        return Optional.ofNullable(this.validationOptions);
    }

    private MigrateSqlServerSqlDbSyncTaskInputArgs() {}

    private MigrateSqlServerSqlDbSyncTaskInputArgs(MigrateSqlServerSqlDbSyncTaskInputArgs $) {
        this.selectedDatabases = $.selectedDatabases;
        this.sourceConnectionInfo = $.sourceConnectionInfo;
        this.targetConnectionInfo = $.targetConnectionInfo;
        this.validationOptions = $.validationOptions;
    }

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

    public static final class Builder {
        private MigrateSqlServerSqlDbSyncTaskInputArgs $;

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

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

        /**
         * @param selectedDatabases Databases to migrate
         * 
         * @return builder
         * 
         */
        public Builder selectedDatabases(Output> selectedDatabases) {
            $.selectedDatabases = selectedDatabases;
            return this;
        }

        /**
         * @param selectedDatabases Databases to migrate
         * 
         * @return builder
         * 
         */
        public Builder selectedDatabases(List selectedDatabases) {
            return selectedDatabases(Output.of(selectedDatabases));
        }

        /**
         * @param selectedDatabases Databases to migrate
         * 
         * @return builder
         * 
         */
        public Builder selectedDatabases(MigrateSqlServerSqlDbSyncDatabaseInputArgs... selectedDatabases) {
            return selectedDatabases(List.of(selectedDatabases));
        }

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

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

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

        /**
         * @param targetConnectionInfo Information for connecting to target
         * 
         * @return builder
         * 
         */
        public Builder targetConnectionInfo(SqlConnectionInfoArgs targetConnectionInfo) {
            return targetConnectionInfo(Output.of(targetConnectionInfo));
        }

        /**
         * @param validationOptions Validation options
         * 
         * @return builder
         * 
         */
        public Builder validationOptions(@Nullable Output validationOptions) {
            $.validationOptions = validationOptions;
            return this;
        }

        /**
         * @param validationOptions Validation options
         * 
         * @return builder
         * 
         */
        public Builder validationOptions(MigrationValidationOptionsArgs validationOptions) {
            return validationOptions(Output.of(validationOptions));
        }

        public MigrateSqlServerSqlDbSyncTaskInputArgs build() {
            if ($.selectedDatabases == null) {
                throw new MissingRequiredPropertyException("MigrateSqlServerSqlDbSyncTaskInputArgs", "selectedDatabases");
            }
            if ($.sourceConnectionInfo == null) {
                throw new MissingRequiredPropertyException("MigrateSqlServerSqlDbSyncTaskInputArgs", "sourceConnectionInfo");
            }
            if ($.targetConnectionInfo == null) {
                throw new MissingRequiredPropertyException("MigrateSqlServerSqlDbSyncTaskInputArgs", "targetConnectionInfo");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy