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

commonMain.aws.sdk.kotlin.services.apptest.model.CreateTestSuiteRequest.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 CreateTestSuiteRequest private constructor(builder: Builder) {
    /**
     * The after steps of the test suite.
     */
    public val afterSteps: List? = builder.afterSteps
    /**
     * The before steps of the test suite.
     */
    public val beforeSteps: List? = builder.beforeSteps
    /**
     * The client token of the test suite.
     */
    public val clientToken: kotlin.String? = builder.clientToken
    /**
     * The description of the test suite.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The name of the test suite.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The tags of the test suite.
     */
    public val tags: Map? = builder.tags
    /**
     * The test cases in the test suite.
     */
    public val testCases: aws.sdk.kotlin.services.apptest.model.TestCases? = builder.testCases

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

    override fun toString(): kotlin.String = buildString {
        append("CreateTestSuiteRequest(")
        append("afterSteps=$afterSteps,")
        append("beforeSteps=$beforeSteps,")
        append("clientToken=$clientToken,")
        append("description=$description,")
        append("name=$name,")
        append("tags=$tags,")
        append("testCases=$testCases")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = afterSteps?.hashCode() ?: 0
        result = 31 * result + (beforeSteps?.hashCode() ?: 0)
        result = 31 * result + (clientToken?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (tags?.hashCode() ?: 0)
        result = 31 * result + (testCases?.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 CreateTestSuiteRequest

        if (afterSteps != other.afterSteps) return false
        if (beforeSteps != other.beforeSteps) return false
        if (clientToken != other.clientToken) return false
        if (description != other.description) return false
        if (name != other.name) return false
        if (tags != other.tags) return false
        if (testCases != other.testCases) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The after steps of the test suite.
         */
        public var afterSteps: List? = null
        /**
         * The before steps of the test suite.
         */
        public var beforeSteps: List? = null
        /**
         * The client token of the test suite.
         */
        public var clientToken: kotlin.String? = null
        /**
         * The description of the test suite.
         */
        public var description: kotlin.String? = null
        /**
         * The name of the test suite.
         */
        public var name: kotlin.String? = null
        /**
         * The tags of the test suite.
         */
        public var tags: Map? = null
        /**
         * The test cases in the test suite.
         */
        public var testCases: aws.sdk.kotlin.services.apptest.model.TestCases? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.apptest.model.CreateTestSuiteRequest) : this() {
            this.afterSteps = x.afterSteps
            this.beforeSteps = x.beforeSteps
            this.clientToken = x.clientToken
            this.description = x.description
            this.name = x.name
            this.tags = x.tags
            this.testCases = x.testCases
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy