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