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