commonMain.aws.sdk.kotlin.services.connect.model.SearchUsersResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connect.model
public class SearchUsersResponse private constructor(builder: Builder) {
/**
* The total number of users who matched your search query.
*/
public val approximateTotalCount: kotlin.Long? = builder.approximateTotalCount
/**
* If there are additional results, this is the token for the next set of results.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* Information about the users.
*/
public val users: List? = builder.users
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connect.model.SearchUsersResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SearchUsersResponse(")
append("approximateTotalCount=$approximateTotalCount,")
append("nextToken=$nextToken,")
append("users=$users")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = approximateTotalCount?.hashCode() ?: 0
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (users?.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 SearchUsersResponse
if (approximateTotalCount != other.approximateTotalCount) return false
if (nextToken != other.nextToken) return false
if (users != other.users) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connect.model.SearchUsersResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The total number of users who matched your search query.
*/
public var approximateTotalCount: kotlin.Long? = null
/**
* If there are additional results, this is the token for the next set of results.
*/
public var nextToken: kotlin.String? = null
/**
* Information about the users.
*/
public var users: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connect.model.SearchUsersResponse) : this() {
this.approximateTotalCount = x.approximateTotalCount
this.nextToken = x.nextToken
this.users = x.users
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connect.model.SearchUsersResponse = SearchUsersResponse(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy