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

commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.ReplicationTaskIndividualAssessment.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
import aws.smithy.kotlin.runtime.time.Instant

/**
 * Provides information that describes an individual assessment from a premigration assessment run.
 */
public class ReplicationTaskIndividualAssessment private constructor(builder: Builder) {
    /**
     * Name of this individual assessment.
     */
    public val individualAssessmentName: kotlin.String? = builder.individualAssessmentName
    /**
     * ARN of the premigration assessment run that is created to run this individual assessment.
     */
    public val replicationTaskAssessmentRunArn: kotlin.String? = builder.replicationTaskAssessmentRunArn
    /**
     * Amazon Resource Name (ARN) of this individual assessment.
     */
    public val replicationTaskIndividualAssessmentArn: kotlin.String? = builder.replicationTaskIndividualAssessmentArn
    /**
     * Date when this individual assessment was started as part of running the `StartReplicationTaskAssessmentRun` operation.
     */
    public val replicationTaskIndividualAssessmentStartDate: aws.smithy.kotlin.runtime.time.Instant? = builder.replicationTaskIndividualAssessmentStartDate
    /**
     * Individual assessment status.
     *
     * This status can have one of the following values:
     * + `"cancelled"`
     * + `"error"`
     * + `"failed"`
     * + `"passed"`
     * + `"pending"`
     * + `"running"`
     */
    public val status: kotlin.String? = builder.status

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

    override fun toString(): kotlin.String = buildString {
        append("ReplicationTaskIndividualAssessment(")
        append("individualAssessmentName=$individualAssessmentName,")
        append("replicationTaskAssessmentRunArn=$replicationTaskAssessmentRunArn,")
        append("replicationTaskIndividualAssessmentArn=$replicationTaskIndividualAssessmentArn,")
        append("replicationTaskIndividualAssessmentStartDate=$replicationTaskIndividualAssessmentStartDate,")
        append("status=$status")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = individualAssessmentName?.hashCode() ?: 0
        result = 31 * result + (replicationTaskAssessmentRunArn?.hashCode() ?: 0)
        result = 31 * result + (replicationTaskIndividualAssessmentArn?.hashCode() ?: 0)
        result = 31 * result + (replicationTaskIndividualAssessmentStartDate?.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 ReplicationTaskIndividualAssessment

        if (individualAssessmentName != other.individualAssessmentName) return false
        if (replicationTaskAssessmentRunArn != other.replicationTaskAssessmentRunArn) return false
        if (replicationTaskIndividualAssessmentArn != other.replicationTaskIndividualAssessmentArn) return false
        if (replicationTaskIndividualAssessmentStartDate != other.replicationTaskIndividualAssessmentStartDate) return false
        if (status != other.status) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Name of this individual assessment.
         */
        public var individualAssessmentName: kotlin.String? = null
        /**
         * ARN of the premigration assessment run that is created to run this individual assessment.
         */
        public var replicationTaskAssessmentRunArn: kotlin.String? = null
        /**
         * Amazon Resource Name (ARN) of this individual assessment.
         */
        public var replicationTaskIndividualAssessmentArn: kotlin.String? = null
        /**
         * Date when this individual assessment was started as part of running the `StartReplicationTaskAssessmentRun` operation.
         */
        public var replicationTaskIndividualAssessmentStartDate: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * Individual assessment status.
         *
         * This status can have one of the following values:
         * + `"cancelled"`
         * + `"error"`
         * + `"failed"`
         * + `"passed"`
         * + `"pending"`
         * + `"running"`
         */
        public var status: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.databasemigrationservice.model.ReplicationTaskIndividualAssessment) : this() {
            this.individualAssessmentName = x.individualAssessmentName
            this.replicationTaskAssessmentRunArn = x.replicationTaskAssessmentRunArn
            this.replicationTaskIndividualAssessmentArn = x.replicationTaskIndividualAssessmentArn
            this.replicationTaskIndividualAssessmentStartDate = x.replicationTaskIndividualAssessmentStartDate
            this.status = x.status
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy