
commonMain.aws.sdk.kotlin.services.connectcases.model.CaseSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connectcases.model
/**
* Case summary information.
*/
public class CaseSummary private constructor(builder: Builder) {
/**
* A unique identifier of the case.
*/
public val caseId: kotlin.String = requireNotNull(builder.caseId) { "A non-null value must be provided for caseId" }
/**
* A unique identifier of a template.
*/
public val templateId: kotlin.String = requireNotNull(builder.templateId) { "A non-null value must be provided for templateId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connectcases.model.CaseSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CaseSummary(")
append("caseId=$caseId,")
append("templateId=$templateId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = caseId.hashCode()
result = 31 * result + (templateId.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 CaseSummary
if (caseId != other.caseId) return false
if (templateId != other.templateId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connectcases.model.CaseSummary = Builder(this).apply(block).build()
public class Builder {
/**
* A unique identifier of the case.
*/
public var caseId: kotlin.String? = null
/**
* A unique identifier of a template.
*/
public var templateId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connectcases.model.CaseSummary) : this() {
this.caseId = x.caseId
this.templateId = x.templateId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connectcases.model.CaseSummary = CaseSummary(this)
internal fun correctErrors(): Builder {
if (caseId == null) caseId = ""
if (templateId == null) templateId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy