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