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