
commonMain.aws.sdk.kotlin.services.apptest.model.CreateTestConfigurationResponse.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 CreateTestConfigurationResponse private constructor(builder: Builder) {
/**
* The test configuration ID.
*/
public val testConfigurationId: kotlin.String = requireNotNull(builder.testConfigurationId) { "A non-null value must be provided for testConfigurationId" }
/**
* The test configuration version.
*/
public val testConfigurationVersion: kotlin.Int = requireNotNull(builder.testConfigurationVersion) { "A non-null value must be provided for testConfigurationVersion" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.apptest.model.CreateTestConfigurationResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateTestConfigurationResponse(")
append("testConfigurationId=$testConfigurationId,")
append("testConfigurationVersion=$testConfigurationVersion")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = testConfigurationId.hashCode()
result = 31 * result + (testConfigurationVersion)
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 CreateTestConfigurationResponse
if (testConfigurationId != other.testConfigurationId) return false
if (testConfigurationVersion != other.testConfigurationVersion) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.apptest.model.CreateTestConfigurationResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The test configuration ID.
*/
public var testConfigurationId: kotlin.String? = null
/**
* The test configuration version.
*/
public var testConfigurationVersion: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.apptest.model.CreateTestConfigurationResponse) : this() {
this.testConfigurationId = x.testConfigurationId
this.testConfigurationVersion = x.testConfigurationVersion
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.apptest.model.CreateTestConfigurationResponse = CreateTestConfigurationResponse(this)
internal fun correctErrors(): Builder {
if (testConfigurationId == null) testConfigurationId = ""
if (testConfigurationVersion == null) testConfigurationVersion = 0
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy