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

commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.ModifyDataMigrationRequest.kt Maven / Gradle / Ivy

The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.databasemigrationservice.model

import aws.smithy.kotlin.runtime.SdkDsl

public class ModifyDataMigrationRequest private constructor(builder: Builder) {
    /**
     * The identifier (name or ARN) of the data migration to modify.
     */
    public val dataMigrationIdentifier: kotlin.String? = builder.dataMigrationIdentifier
    /**
     * The new name for the data migration.
     */
    public val dataMigrationName: kotlin.String? = builder.dataMigrationName
    /**
     * The new migration type for the data migration.
     */
    public val dataMigrationType: aws.sdk.kotlin.services.databasemigrationservice.model.MigrationTypeValue? = builder.dataMigrationType
    /**
     * Whether to enable Cloudwatch logs for the data migration.
     */
    public val enableCloudwatchLogs: kotlin.Boolean? = builder.enableCloudwatchLogs
    /**
     * The number of parallel jobs that trigger parallel threads to unload the tables from the source, and then load them to the target.
     */
    public val numberOfJobs: kotlin.Int? = builder.numberOfJobs
    /**
     * A JSON-formatted string that defines what objects to include and exclude from the migration.
     */
    public val selectionRules: kotlin.String? = builder.selectionRules
    /**
     * The new service access role ARN for the data migration.
     */
    public val serviceAccessRoleArn: kotlin.String? = builder.serviceAccessRoleArn
    /**
     * The new information about the source data provider for the data migration.
     */
    public val sourceDataSettings: List? = builder.sourceDataSettings

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databasemigrationservice.model.ModifyDataMigrationRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("ModifyDataMigrationRequest(")
        append("dataMigrationIdentifier=$dataMigrationIdentifier,")
        append("dataMigrationName=$dataMigrationName,")
        append("dataMigrationType=$dataMigrationType,")
        append("enableCloudwatchLogs=$enableCloudwatchLogs,")
        append("numberOfJobs=$numberOfJobs,")
        append("selectionRules=*** Sensitive Data Redacted ***,")
        append("serviceAccessRoleArn=$serviceAccessRoleArn,")
        append("sourceDataSettings=$sourceDataSettings")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = dataMigrationIdentifier?.hashCode() ?: 0
        result = 31 * result + (dataMigrationName?.hashCode() ?: 0)
        result = 31 * result + (dataMigrationType?.hashCode() ?: 0)
        result = 31 * result + (enableCloudwatchLogs?.hashCode() ?: 0)
        result = 31 * result + (numberOfJobs ?: 0)
        result = 31 * result + (selectionRules?.hashCode() ?: 0)
        result = 31 * result + (serviceAccessRoleArn?.hashCode() ?: 0)
        result = 31 * result + (sourceDataSettings?.hashCode() ?: 0)
        return result
    }

    override fun equals(other: kotlin.Any?): kotlin.Boolean {
        if (this === other) return true
        if (other == null || this::class != other::class) return false

        other as ModifyDataMigrationRequest

        if (dataMigrationIdentifier != other.dataMigrationIdentifier) return false
        if (dataMigrationName != other.dataMigrationName) return false
        if (dataMigrationType != other.dataMigrationType) return false
        if (enableCloudwatchLogs != other.enableCloudwatchLogs) return false
        if (numberOfJobs != other.numberOfJobs) return false
        if (selectionRules != other.selectionRules) return false
        if (serviceAccessRoleArn != other.serviceAccessRoleArn) return false
        if (sourceDataSettings != other.sourceDataSettings) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databasemigrationservice.model.ModifyDataMigrationRequest = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The identifier (name or ARN) of the data migration to modify.
         */
        public var dataMigrationIdentifier: kotlin.String? = null
        /**
         * The new name for the data migration.
         */
        public var dataMigrationName: kotlin.String? = null
        /**
         * The new migration type for the data migration.
         */
        public var dataMigrationType: aws.sdk.kotlin.services.databasemigrationservice.model.MigrationTypeValue? = null
        /**
         * Whether to enable Cloudwatch logs for the data migration.
         */
        public var enableCloudwatchLogs: kotlin.Boolean? = null
        /**
         * The number of parallel jobs that trigger parallel threads to unload the tables from the source, and then load them to the target.
         */
        public var numberOfJobs: kotlin.Int? = null
        /**
         * A JSON-formatted string that defines what objects to include and exclude from the migration.
         */
        public var selectionRules: kotlin.String? = null
        /**
         * The new service access role ARN for the data migration.
         */
        public var serviceAccessRoleArn: kotlin.String? = null
        /**
         * The new information about the source data provider for the data migration.
         */
        public var sourceDataSettings: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.databasemigrationservice.model.ModifyDataMigrationRequest) : this() {
            this.dataMigrationIdentifier = x.dataMigrationIdentifier
            this.dataMigrationName = x.dataMigrationName
            this.dataMigrationType = x.dataMigrationType
            this.enableCloudwatchLogs = x.enableCloudwatchLogs
            this.numberOfJobs = x.numberOfJobs
            this.selectionRules = x.selectionRules
            this.serviceAccessRoleArn = x.serviceAccessRoleArn
            this.sourceDataSettings = x.sourceDataSettings
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.databasemigrationservice.model.ModifyDataMigrationRequest = ModifyDataMigrationRequest(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy