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

com.pulumi.azurenative.datamigration.kotlin.outputs.MigrateSqlServerSqlMITaskInputResponse.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.datamigration.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 * Input for task that migrates SQL Server databases to Azure SQL Database Managed Instance.
 * @property aadDomainName Azure Active Directory domain name in the format of 'contoso.com' for federated Azure AD or 'contoso.onmicrosoft.com' for managed domain, required if and only if Windows logins are selected
 * @property backupBlobShare SAS URI of Azure Storage Account Container to be used for storing backup files.
 * @property backupFileShare Backup file share information for all selected databases.
 * @property backupMode Backup Mode to specify whether to use existing backup or create new backup. If using existing backups, backup file paths are required to be provided in selectedDatabases.
 * @property selectedAgentJobs Agent Jobs to migrate.
 * @property selectedDatabases Databases to migrate
 * @property selectedLogins Logins to migrate.
 * @property sourceConnectionInfo Information for connecting to source
 * @property targetConnectionInfo Information for connecting to target
 */
public data class MigrateSqlServerSqlMITaskInputResponse(
    public val aadDomainName: String? = null,
    public val backupBlobShare: BlobShareResponse,
    public val backupFileShare: FileShareResponse? = null,
    public val backupMode: String? = null,
    public val selectedAgentJobs: List? = null,
    public val selectedDatabases: List,
    public val selectedLogins: List? = null,
    public val sourceConnectionInfo: SqlConnectionInfoResponse,
    public val targetConnectionInfo: SqlConnectionInfoResponse,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azurenative.datamigration.outputs.MigrateSqlServerSqlMITaskInputResponse): MigrateSqlServerSqlMITaskInputResponse = MigrateSqlServerSqlMITaskInputResponse(
            aadDomainName = javaType.aadDomainName().map({ args0 -> args0 }).orElse(null),
            backupBlobShare = javaType.backupBlobShare().let({ args0 ->
                com.pulumi.azurenative.datamigration.kotlin.outputs.BlobShareResponse.Companion.toKotlin(args0)
            }),
            backupFileShare = javaType.backupFileShare().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azurenative.datamigration.kotlin.outputs.FileShareResponse.Companion.toKotlin(args0)
                })
            }).orElse(null),
            backupMode = javaType.backupMode().map({ args0 -> args0 }).orElse(null),
            selectedAgentJobs = javaType.selectedAgentJobs().map({ args0 -> args0 }),
            selectedDatabases = javaType.selectedDatabases().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azurenative.datamigration.kotlin.outputs.MigrateSqlServerSqlMIDatabaseInputResponse.Companion.toKotlin(args0)
                })
            }),
            selectedLogins = javaType.selectedLogins().map({ args0 -> args0 }),
            sourceConnectionInfo = javaType.sourceConnectionInfo().let({ args0 ->
                com.pulumi.azurenative.datamigration.kotlin.outputs.SqlConnectionInfoResponse.Companion.toKotlin(args0)
            }),
            targetConnectionInfo = javaType.targetConnectionInfo().let({ args0 ->
                com.pulumi.azurenative.datamigration.kotlin.outputs.SqlConnectionInfoResponse.Companion.toKotlin(args0)
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy