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

commonMain.aws.sdk.kotlin.services.apptest.model.UpdateTestConfigurationRequest.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 UpdateTestConfigurationRequest private constructor(builder: Builder) {
    /**
     * The description of the test configuration.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The properties of the test configuration.
     */
    public val properties: Map? = builder.properties
    /**
     * The resources of the test configuration.
     */
    public val resources: List? = builder.resources
    /**
     * The service settings of the test configuration.
     */
    public val serviceSettings: aws.sdk.kotlin.services.apptest.model.ServiceSettings? = builder.serviceSettings
    /**
     * The test configuration ID of the test configuration.
     */
    public val testConfigurationId: kotlin.String? = builder.testConfigurationId

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateTestConfigurationRequest(")
        append("description=$description,")
        append("properties=$properties,")
        append("resources=$resources,")
        append("serviceSettings=$serviceSettings,")
        append("testConfigurationId=$testConfigurationId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = description?.hashCode() ?: 0
        result = 31 * result + (properties?.hashCode() ?: 0)
        result = 31 * result + (resources?.hashCode() ?: 0)
        result = 31 * result + (serviceSettings?.hashCode() ?: 0)
        result = 31 * result + (testConfigurationId?.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 UpdateTestConfigurationRequest

        if (description != other.description) return false
        if (properties != other.properties) return false
        if (resources != other.resources) return false
        if (serviceSettings != other.serviceSettings) return false
        if (testConfigurationId != other.testConfigurationId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The description of the test configuration.
         */
        public var description: kotlin.String? = null
        /**
         * The properties of the test configuration.
         */
        public var properties: Map? = null
        /**
         * The resources of the test configuration.
         */
        public var resources: List? = null
        /**
         * The service settings of the test configuration.
         */
        public var serviceSettings: aws.sdk.kotlin.services.apptest.model.ServiceSettings? = null
        /**
         * The test configuration ID of the test configuration.
         */
        public var testConfigurationId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.apptest.model.UpdateTestConfigurationRequest) : this() {
            this.description = x.description
            this.properties = x.properties
            this.resources = x.resources
            this.serviceSettings = x.serviceSettings
            this.testConfigurationId = x.testConfigurationId
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy