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

commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.SchemaConversionRequest.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

/**
 * Provides information about a schema conversion action.
 */
public class SchemaConversionRequest private constructor(builder: Builder) {
    /**
     * Provides error information about a project.
     */
    public val error: aws.sdk.kotlin.services.databasemigrationservice.model.ErrorDetails? = builder.error
    /**
     * Provides information about a metadata model assessment exported to SQL.
     */
    public val exportSqlDetails: aws.sdk.kotlin.services.databasemigrationservice.model.ExportSqlDetails? = builder.exportSqlDetails
    /**
     * The migration project ARN.
     */
    public val migrationProjectArn: kotlin.String? = builder.migrationProjectArn
    /**
     * The identifier for the schema conversion action.
     */
    public val requestIdentifier: kotlin.String? = builder.requestIdentifier
    /**
     * The schema conversion action status.
     */
    public val status: kotlin.String? = builder.status

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

    override fun toString(): kotlin.String = buildString {
        append("SchemaConversionRequest(")
        append("error=$error,")
        append("exportSqlDetails=$exportSqlDetails,")
        append("migrationProjectArn=$migrationProjectArn,")
        append("requestIdentifier=$requestIdentifier,")
        append("status=$status")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = error?.hashCode() ?: 0
        result = 31 * result + (exportSqlDetails?.hashCode() ?: 0)
        result = 31 * result + (migrationProjectArn?.hashCode() ?: 0)
        result = 31 * result + (requestIdentifier?.hashCode() ?: 0)
        result = 31 * result + (status?.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 SchemaConversionRequest

        if (error != other.error) return false
        if (exportSqlDetails != other.exportSqlDetails) return false
        if (migrationProjectArn != other.migrationProjectArn) return false
        if (requestIdentifier != other.requestIdentifier) return false
        if (status != other.status) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Provides error information about a project.
         */
        public var error: aws.sdk.kotlin.services.databasemigrationservice.model.ErrorDetails? = null
        /**
         * Provides information about a metadata model assessment exported to SQL.
         */
        public var exportSqlDetails: aws.sdk.kotlin.services.databasemigrationservice.model.ExportSqlDetails? = null
        /**
         * The migration project ARN.
         */
        public var migrationProjectArn: kotlin.String? = null
        /**
         * The identifier for the schema conversion action.
         */
        public var requestIdentifier: kotlin.String? = null
        /**
         * The schema conversion action status.
         */
        public var status: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.databasemigrationservice.model.SchemaConversionRequest) : this() {
            this.error = x.error
            this.exportSqlDetails = x.exportSqlDetails
            this.migrationProjectArn = x.migrationProjectArn
            this.requestIdentifier = x.requestIdentifier
            this.status = x.status
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.databasemigrationservice.model.ExportSqlDetails] inside the given [block]
         */
        public fun exportSqlDetails(block: aws.sdk.kotlin.services.databasemigrationservice.model.ExportSqlDetails.Builder.() -> kotlin.Unit) {
            this.exportSqlDetails = aws.sdk.kotlin.services.databasemigrationservice.model.ExportSqlDetails.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy