
commonMain.aws.sdk.kotlin.services.honeycode.model.GetScreenDataResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.honeycode.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetScreenDataResponse private constructor(builder: Builder) {
/**
* Provides the pagination token to load the next page if there are more results matching the request. If a pagination token is not present in the response, it means that all data matching the query has been loaded.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* A map of all the rows on the screen keyed by block name.
*/
public val results: Map = requireNotNull(builder.results) { "A non-null value must be provided for results" }
/**
* Indicates the cursor of the workbook at which the data returned by this workbook is read. Workbook cursor keeps increasing with every update and the increments are not sequential.
*/
public val workbookCursor: kotlin.Long = builder.workbookCursor
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.honeycode.model.GetScreenDataResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetScreenDataResponse(")
append("nextToken=$nextToken,")
append("results=$results,")
append("workbookCursor=$workbookCursor")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = nextToken?.hashCode() ?: 0
result = 31 * result + (results.hashCode())
result = 31 * result + (workbookCursor.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 GetScreenDataResponse
if (nextToken != other.nextToken) return false
if (results != other.results) return false
if (workbookCursor != other.workbookCursor) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.honeycode.model.GetScreenDataResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Provides the pagination token to load the next page if there are more results matching the request. If a pagination token is not present in the response, it means that all data matching the query has been loaded.
*/
public var nextToken: kotlin.String? = null
/**
* A map of all the rows on the screen keyed by block name.
*/
public var results: Map? = null
/**
* Indicates the cursor of the workbook at which the data returned by this workbook is read. Workbook cursor keeps increasing with every update and the increments are not sequential.
*/
public var workbookCursor: kotlin.Long = 0L
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.honeycode.model.GetScreenDataResponse) : this() {
this.nextToken = x.nextToken
this.results = x.results
this.workbookCursor = x.workbookCursor
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.honeycode.model.GetScreenDataResponse = GetScreenDataResponse(this)
internal fun correctErrors(): Builder {
if (results == null) results = emptyMap()
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy