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

commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.ReloadTablesRequest.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 ReloadTablesRequest private constructor(builder: Builder) {
    /**
     * Options for reload. Specify `data-reload` to reload the data and re-validate it if validation is enabled. Specify `validate-only` to re-validate the table. This option applies only when validation is enabled for the task.
     *
     * Valid values: data-reload, validate-only
     *
     * Default value is data-reload.
     */
    public val reloadOption: aws.sdk.kotlin.services.databasemigrationservice.model.ReloadOptionValue? = builder.reloadOption
    /**
     * The Amazon Resource Name (ARN) of the replication task.
     */
    public val replicationTaskArn: kotlin.String? = builder.replicationTaskArn
    /**
     * The name and schema of the table to be reloaded.
     */
    public val tablesToReload: List? = builder.tablesToReload

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

    override fun toString(): kotlin.String = buildString {
        append("ReloadTablesRequest(")
        append("reloadOption=$reloadOption,")
        append("replicationTaskArn=$replicationTaskArn,")
        append("tablesToReload=$tablesToReload")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = reloadOption?.hashCode() ?: 0
        result = 31 * result + (replicationTaskArn?.hashCode() ?: 0)
        result = 31 * result + (tablesToReload?.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 ReloadTablesRequest

        if (reloadOption != other.reloadOption) return false
        if (replicationTaskArn != other.replicationTaskArn) return false
        if (tablesToReload != other.tablesToReload) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Options for reload. Specify `data-reload` to reload the data and re-validate it if validation is enabled. Specify `validate-only` to re-validate the table. This option applies only when validation is enabled for the task.
         *
         * Valid values: data-reload, validate-only
         *
         * Default value is data-reload.
         */
        public var reloadOption: aws.sdk.kotlin.services.databasemigrationservice.model.ReloadOptionValue? = null
        /**
         * The Amazon Resource Name (ARN) of the replication task.
         */
        public var replicationTaskArn: kotlin.String? = null
        /**
         * The name and schema of the table to be reloaded.
         */
        public var tablesToReload: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.databasemigrationservice.model.ReloadTablesRequest) : this() {
            this.reloadOption = x.reloadOption
            this.replicationTaskArn = x.replicationTaskArn
            this.tablesToReload = x.tablesToReload
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy