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