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

commonMain.aws.sdk.kotlin.services.apptest.model.UpdateTestCaseRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.apptest.model

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdateTestCaseRequest private constructor(builder: Builder) {
    /**
     * The description of the test case.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The steps of the test case.
     */
    public val steps: List? = builder.steps
    /**
     * The test case ID of the test case.
     */
    public val testCaseId: kotlin.String? = builder.testCaseId

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateTestCaseRequest(")
        append("description=$description,")
        append("steps=$steps,")
        append("testCaseId=$testCaseId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = description?.hashCode() ?: 0
        result = 31 * result + (steps?.hashCode() ?: 0)
        result = 31 * result + (testCaseId?.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 UpdateTestCaseRequest

        if (description != other.description) return false
        if (steps != other.steps) return false
        if (testCaseId != other.testCaseId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The description of the test case.
         */
        public var description: kotlin.String? = null
        /**
         * The steps of the test case.
         */
        public var steps: List? = null
        /**
         * The test case ID of the test case.
         */
        public var testCaseId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.apptest.model.UpdateTestCaseRequest) : this() {
            this.description = x.description
            this.steps = x.steps
            this.testCaseId = x.testCaseId
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy