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