
commonMain.aws.sdk.kotlin.services.connectcases.model.SearchCasesResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connectcases.model
public class SearchCasesResponse private constructor(builder: Builder) {
/**
* A list of case documents where each case contains the properties `CaseId` and `Fields` where each field is a complex union structure.
*/
public val cases: List = requireNotNull(builder.cases) { "A non-null value must be provided for cases" }
/**
* The token for the next set of results. This is null if there are no more results to return.
*/
public val nextToken: kotlin.String? = builder.nextToken
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connectcases.model.SearchCasesResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SearchCasesResponse(")
append("cases=$cases,")
append("nextToken=$nextToken")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = cases.hashCode()
result = 31 * result + (nextToken?.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 SearchCasesResponse
if (cases != other.cases) return false
if (nextToken != other.nextToken) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connectcases.model.SearchCasesResponse = Builder(this).apply(block).build()
public class Builder {
/**
* A list of case documents where each case contains the properties `CaseId` and `Fields` where each field is a complex union structure.
*/
public var cases: List? = null
/**
* The token for the next set of results. This is null if there are no more results to return.
*/
public var nextToken: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connectcases.model.SearchCasesResponse) : this() {
this.cases = x.cases
this.nextToken = x.nextToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connectcases.model.SearchCasesResponse = SearchCasesResponse(this)
internal fun correctErrors(): Builder {
if (cases == null) cases = emptyList()
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy