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

com.pulumi.azurenative.datamigration.inputs.MigrateMySqlAzureDbForMySqlSyncTaskInputArgs 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.MigrateMySqlAzureDbForMySqlSyncDatabaseInputArgs;
import com.pulumi.azurenative.datamigration.inputs.MySqlConnectionInfoArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.List;
import java.util.Objects;


/**
 * Input for the task that migrates MySQL databases to Azure Database for MySQL for online migrations
 * 
 */
public final class MigrateMySqlAzureDbForMySqlSyncTaskInputArgs extends com.pulumi.resources.ResourceArgs {

    public static final MigrateMySqlAzureDbForMySqlSyncTaskInputArgs Empty = new MigrateMySqlAzureDbForMySqlSyncTaskInputArgs();

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

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

    /**
     * Connection information for source MySQL
     * 
     */
    @Import(name="sourceConnectionInfo", required=true)
    private Output sourceConnectionInfo;

    /**
     * @return Connection information for source MySQL
     * 
     */
    public Output sourceConnectionInfo() {
        return this.sourceConnectionInfo;
    }

    /**
     * Connection information for target Azure Database for MySQL
     * 
     */
    @Import(name="targetConnectionInfo", required=true)
    private Output targetConnectionInfo;

    /**
     * @return Connection information for target Azure Database for MySQL
     * 
     */
    public Output targetConnectionInfo() {
        return this.targetConnectionInfo;
    }

    private MigrateMySqlAzureDbForMySqlSyncTaskInputArgs() {}

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

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

    public static final class Builder {
        private MigrateMySqlAzureDbForMySqlSyncTaskInputArgs $;

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

        public Builder(MigrateMySqlAzureDbForMySqlSyncTaskInputArgs defaults) {
            $ = new MigrateMySqlAzureDbForMySqlSyncTaskInputArgs(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(MigrateMySqlAzureDbForMySqlSyncDatabaseInputArgs... selectedDatabases) {
            return selectedDatabases(List.of(selectedDatabases));
        }

        /**
         * @param sourceConnectionInfo Connection information for source MySQL
         * 
         * @return builder
         * 
         */
        public Builder sourceConnectionInfo(Output sourceConnectionInfo) {
            $.sourceConnectionInfo = sourceConnectionInfo;
            return this;
        }

        /**
         * @param sourceConnectionInfo Connection information for source MySQL
         * 
         * @return builder
         * 
         */
        public Builder sourceConnectionInfo(MySqlConnectionInfoArgs sourceConnectionInfo) {
            return sourceConnectionInfo(Output.of(sourceConnectionInfo));
        }

        /**
         * @param targetConnectionInfo Connection information for target Azure Database for MySQL
         * 
         * @return builder
         * 
         */
        public Builder targetConnectionInfo(Output targetConnectionInfo) {
            $.targetConnectionInfo = targetConnectionInfo;
            return this;
        }

        /**
         * @param targetConnectionInfo Connection information for target Azure Database for MySQL
         * 
         * @return builder
         * 
         */
        public Builder targetConnectionInfo(MySqlConnectionInfoArgs targetConnectionInfo) {
            return targetConnectionInfo(Output.of(targetConnectionInfo));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy