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

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

/**
 * Contains metadata for a replication instance task log.
 */
public class ReplicationInstanceTaskLog private constructor(builder: Builder) {
    /**
     * The size, in bytes, of the replication task log.
     */
    public val replicationInstanceTaskLogSize: kotlin.Long = builder.replicationInstanceTaskLogSize
    /**
     * The Amazon Resource Name (ARN) of the replication task.
     */
    public val replicationTaskArn: kotlin.String? = builder.replicationTaskArn
    /**
     * The name of the replication task.
     */
    public val replicationTaskName: kotlin.String? = builder.replicationTaskName

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

    override fun toString(): kotlin.String = buildString {
        append("ReplicationInstanceTaskLog(")
        append("replicationInstanceTaskLogSize=$replicationInstanceTaskLogSize,")
        append("replicationTaskArn=$replicationTaskArn,")
        append("replicationTaskName=$replicationTaskName")
        append(")")
    }

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

        if (replicationInstanceTaskLogSize != other.replicationInstanceTaskLogSize) return false
        if (replicationTaskArn != other.replicationTaskArn) return false
        if (replicationTaskName != other.replicationTaskName) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The size, in bytes, of the replication task log.
         */
        public var replicationInstanceTaskLogSize: kotlin.Long = 0L
        /**
         * The Amazon Resource Name (ARN) of the replication task.
         */
        public var replicationTaskArn: kotlin.String? = null
        /**
         * The name of the replication task.
         */
        public var replicationTaskName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.databasemigrationservice.model.ReplicationInstanceTaskLog) : this() {
            this.replicationInstanceTaskLogSize = x.replicationInstanceTaskLogSize
            this.replicationTaskArn = x.replicationTaskArn
            this.replicationTaskName = x.replicationTaskName
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy