commonMain.aws.sdk.kotlin.services.datazone.model.SearchResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datazone-jvm Show documentation
Show all versions of datazone-jvm Show documentation
The AWS SDK for Kotlin client for DataZone
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.datazone.model
public class SearchResponse private constructor(builder: Builder) {
/**
* The results of the `Search` action.
*/
public val items: List? = builder.items
/**
* When the number of results is greater than the default value for the `MaxResults` parameter, or if you explicitly specify a value for `MaxResults` that is less than the number of results, the response includes a pagination token named `NextToken`. You can specify this `NextToken` value in a subsequent call to `Search` to list the next set of results.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* Total number of search results.
*/
public val totalMatchCount: kotlin.Int? = builder.totalMatchCount
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datazone.model.SearchResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SearchResponse(")
append("items=$items,")
append("nextToken=$nextToken,")
append("totalMatchCount=$totalMatchCount")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = items?.hashCode() ?: 0
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (totalMatchCount ?: 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 SearchResponse
if (items != other.items) return false
if (nextToken != other.nextToken) return false
if (totalMatchCount != other.totalMatchCount) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datazone.model.SearchResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The results of the `Search` action.
*/
public var items: List? = null
/**
* When the number of results is greater than the default value for the `MaxResults` parameter, or if you explicitly specify a value for `MaxResults` that is less than the number of results, the response includes a pagination token named `NextToken`. You can specify this `NextToken` value in a subsequent call to `Search` to list the next set of results.
*/
public var nextToken: kotlin.String? = null
/**
* Total number of search results.
*/
public var totalMatchCount: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datazone.model.SearchResponse) : this() {
this.items = x.items
this.nextToken = x.nextToken
this.totalMatchCount = x.totalMatchCount
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datazone.model.SearchResponse = SearchResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy