<filename>sdk/dotnet/Tencentcloud/Sqlserver/Outputs/MigrationSource.cs// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
using Pulumi;

namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Sqlserver.Outputs
{

    [OutputType]
    public sealed class MigrationSource
    {
        /// <summary>
        /// ID of the migration source Cvm, used when MigrateType=2 (cloud server self-built SQL Server database).
        /// </summary>
        public readonly string? CvmId;
        /// <summary>
        /// The ID of the migration source instance, which is used when MigrateType=1 (TencentDB for SQLServers). The format is mssql-si2823jyl.
        /// </summary>
        public readonly string? InstanceId;
        /// <summary>
        /// Migrate the intranet IP of the self-built database of the source Cvm, and use it when MigrateType=2 (self-built SQL Server database of the cloud server).
        /// </summary>
        public readonly string? Ip;
        /// <summary>
        /// Password, MigrateType=1 or MigrateType=2.
        /// </summary>
        public readonly string? Password;
        /// <summary>
        /// The port number of the self-built database of the migration source Cvm, which is used when MigrateType=2 (self-built SQL Server database of the cloud server).
        /// </summary>
        public readonly int? Port;
        /// <summary>
        /// The subnet ID under the Vpc of the source Cvm is used when MigrateType=2 (ECS self-built SQL Server database). The format is as follows subnet-h9extioi.
        /// </summary>
        public readonly string? SubnetId;
        /// <summary>
        /// The source backup password for offline migration, MigrateType=4 or MigrateType=5.
        /// </summary>
        public readonly string? UrlPassword;
        /// <summary>
        /// The source backup address for offline migration. MigrateType=4 or MigrateType=5.
        /// </summary>
        public readonly ImmutableArray<string> Urls;
        /// <summary>
        /// User name, MigrateType=1 or MigrateType=2.
        /// </summary>
        public readonly string? UserName;
        /// <summary>
        /// The Vpc network ID of the migration source Cvm is used when MigrateType=2 (cloud server self-built SQL Server database). The format is as follows vpc-6ys9ont9.
        /// </summary>
        public readonly string? VpcId;

        [OutputConstructor]
        private MigrationSource(
            string? cvmId,

            string? instanceId,

            string? ip,

            string? password,

            int? port,

            string? subnetId,

            string? urlPassword,

            ImmutableArray<string> urls,

            string? userName,

            string? vpcId)
        {
            CvmId = cvmId;
            InstanceId = instanceId;
            Ip = ip;
            Password = password;
            Port = port;
            SubnetId = subnetId;
            UrlPassword = urlPassword;
            Urls = urls;
            UserName = userName;
            VpcId = vpcId;
        }
    }
}
