
commonMain.aws.sdk.kotlin.services.apptest.model.GetTestSuiteResponse.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
import aws.smithy.kotlin.runtime.time.Instant
public class GetTestSuiteResponse private constructor(builder: Builder) {
/**
* The after steps of the test suite.
*/
public val afterSteps: List = requireNotNull(builder.afterSteps) { "A non-null value must be provided for afterSteps" }
/**
* The before steps of the test suite.
*/
public val beforeSteps: List = requireNotNull(builder.beforeSteps) { "A non-null value must be provided for beforeSteps" }
/**
* The creation time of the test suite.
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.creationTime) { "A non-null value must be provided for creationTime" }
/**
* The description of the test suite.
*/
public val description: kotlin.String? = builder.description
/**
* The last update time of the test suite.
*/
public val lastUpdateTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.lastUpdateTime) { "A non-null value must be provided for lastUpdateTime" }
/**
* The latest version of the test suite.
*/
public val latestVersion: aws.sdk.kotlin.services.apptest.model.TestSuiteLatestVersion? = builder.latestVersion
/**
* The name of the test suite.
*/
public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
/**
* The status of the test suite.
*/
public val status: aws.sdk.kotlin.services.apptest.model.TestSuiteLifecycle? = builder.status
/**
* The status reason of the test suite.
*/
public val statusReason: kotlin.String? = builder.statusReason
/**
* The tags of the test suite.
*/
public val tags: Map? = builder.tags
/**
* The test cases of the test suite.
*/
public val testCases: aws.sdk.kotlin.services.apptest.model.TestCases? = builder.testCases
/**
* The test suite Amazon Resource Name (ARN).
*/
public val testSuiteArn: kotlin.String = requireNotNull(builder.testSuiteArn) { "A non-null value must be provided for testSuiteArn" }
/**
* The response ID of the test suite.
*/
public val testSuiteId: kotlin.String = requireNotNull(builder.testSuiteId) { "A non-null value must be provided for testSuiteId" }
/**
* The version of the test suite.
*/
public val testSuiteVersion: kotlin.Int = requireNotNull(builder.testSuiteVersion) { "A non-null value must be provided for testSuiteVersion" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.apptest.model.GetTestSuiteResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetTestSuiteResponse(")
append("afterSteps=$afterSteps,")
append("beforeSteps=$beforeSteps,")
append("creationTime=$creationTime,")
append("description=$description,")
append("lastUpdateTime=$lastUpdateTime,")
append("latestVersion=$latestVersion,")
append("name=$name,")
append("status=$status,")
append("statusReason=$statusReason,")
append("tags=$tags,")
append("testCases=$testCases,")
append("testSuiteArn=$testSuiteArn,")
append("testSuiteId=$testSuiteId,")
append("testSuiteVersion=$testSuiteVersion")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = afterSteps.hashCode()
result = 31 * result + (beforeSteps.hashCode())
result = 31 * result + (creationTime.hashCode())
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (lastUpdateTime.hashCode())
result = 31 * result + (latestVersion?.hashCode() ?: 0)
result = 31 * result + (name.hashCode())
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (statusReason?.hashCode() ?: 0)
result = 31 * result + (tags?.hashCode() ?: 0)
result = 31 * result + (testCases?.hashCode() ?: 0)
result = 31 * result + (testSuiteArn.hashCode())
result = 31 * result + (testSuiteId.hashCode())
result = 31 * result + (testSuiteVersion)
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 GetTestSuiteResponse
if (afterSteps != other.afterSteps) return false
if (beforeSteps != other.beforeSteps) return false
if (creationTime != other.creationTime) return false
if (description != other.description) return false
if (lastUpdateTime != other.lastUpdateTime) return false
if (latestVersion != other.latestVersion) return false
if (name != other.name) return false
if (status != other.status) return false
if (statusReason != other.statusReason) return false
if (tags != other.tags) return false
if (testCases != other.testCases) return false
if (testSuiteArn != other.testSuiteArn) return false
if (testSuiteId != other.testSuiteId) return false
if (testSuiteVersion != other.testSuiteVersion) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.apptest.model.GetTestSuiteResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The after steps of the test suite.
*/
public var afterSteps: List? = null
/**
* The before steps of the test suite.
*/
public var beforeSteps: List? = null
/**
* The creation time of the test suite.
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The description of the test suite.
*/
public var description: kotlin.String? = null
/**
* The last update time of the test suite.
*/
public var lastUpdateTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The latest version of the test suite.
*/
public var latestVersion: aws.sdk.kotlin.services.apptest.model.TestSuiteLatestVersion? = null
/**
* The name of the test suite.
*/
public var name: kotlin.String? = null
/**
* The status of the test suite.
*/
public var status: aws.sdk.kotlin.services.apptest.model.TestSuiteLifecycle? = null
/**
* The status reason of the test suite.
*/
public var statusReason: kotlin.String? = null
/**
* The tags of the test suite.
*/
public var tags: Map? = null
/**
* The test cases of the test suite.
*/
public var testCases: aws.sdk.kotlin.services.apptest.model.TestCases? = null
/**
* The test suite Amazon Resource Name (ARN).
*/
public var testSuiteArn: kotlin.String? = null
/**
* The response ID of the test suite.
*/
public var testSuiteId: kotlin.String? = null
/**
* The version of the test suite.
*/
public var testSuiteVersion: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.apptest.model.GetTestSuiteResponse) : this() {
this.afterSteps = x.afterSteps
this.beforeSteps = x.beforeSteps
this.creationTime = x.creationTime
this.description = x.description
this.lastUpdateTime = x.lastUpdateTime
this.latestVersion = x.latestVersion
this.name = x.name
this.status = x.status
this.statusReason = x.statusReason
this.tags = x.tags
this.testCases = x.testCases
this.testSuiteArn = x.testSuiteArn
this.testSuiteId = x.testSuiteId
this.testSuiteVersion = x.testSuiteVersion
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.apptest.model.GetTestSuiteResponse = GetTestSuiteResponse(this)
/**
* construct an [aws.sdk.kotlin.services.apptest.model.TestSuiteLatestVersion] inside the given [block]
*/
public fun latestVersion(block: aws.sdk.kotlin.services.apptest.model.TestSuiteLatestVersion.Builder.() -> kotlin.Unit) {
this.latestVersion = aws.sdk.kotlin.services.apptest.model.TestSuiteLatestVersion.invoke(block)
}
internal fun correctErrors(): Builder {
if (afterSteps == null) afterSteps = emptyList()
if (beforeSteps == null) beforeSteps = emptyList()
if (creationTime == null) creationTime = Instant.fromEpochSeconds(0)
if (lastUpdateTime == null) lastUpdateTime = Instant.fromEpochSeconds(0)
if (name == null) name = ""
if (testSuiteArn == null) testSuiteArn = ""
if (testSuiteId == null) testSuiteId = ""
if (testSuiteVersion == null) testSuiteVersion = 0
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy