
commonMain.aws.sdk.kotlin.services.kendra.model.GetSnapshotsResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kendra.model
public class GetSnapshotsResponse private constructor(builder: Builder) {
/**
* If the response is truncated, Amazon Kendra returns this token, which you can use in a later request to retrieve the next set of search metrics data.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* The Unix timestamp for the beginning and end of the time window for the search metrics data.
*/
public val snapShotTimeFilter: aws.sdk.kotlin.services.kendra.model.TimeRange? = builder.snapShotTimeFilter
/**
* The search metrics data. The data returned depends on the metric type you requested.
*/
public val snapshotsData: List>? = builder.snapshotsData
/**
* The column headers for the search metrics data.
*/
public val snapshotsDataHeader: List? = builder.snapshotsDataHeader
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kendra.model.GetSnapshotsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetSnapshotsResponse(")
append("nextToken=$nextToken,")
append("snapShotTimeFilter=$snapShotTimeFilter,")
append("snapshotsData=$snapshotsData,")
append("snapshotsDataHeader=$snapshotsDataHeader")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = nextToken?.hashCode() ?: 0
result = 31 * result + (snapShotTimeFilter?.hashCode() ?: 0)
result = 31 * result + (snapshotsData?.hashCode() ?: 0)
result = 31 * result + (snapshotsDataHeader?.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 GetSnapshotsResponse
if (nextToken != other.nextToken) return false
if (snapShotTimeFilter != other.snapShotTimeFilter) return false
if (snapshotsData != other.snapshotsData) return false
if (snapshotsDataHeader != other.snapshotsDataHeader) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kendra.model.GetSnapshotsResponse = Builder(this).apply(block).build()
public class Builder {
/**
* If the response is truncated, Amazon Kendra returns this token, which you can use in a later request to retrieve the next set of search metrics data.
*/
public var nextToken: kotlin.String? = null
/**
* The Unix timestamp for the beginning and end of the time window for the search metrics data.
*/
public var snapShotTimeFilter: aws.sdk.kotlin.services.kendra.model.TimeRange? = null
/**
* The search metrics data. The data returned depends on the metric type you requested.
*/
public var snapshotsData: List>? = null
/**
* The column headers for the search metrics data.
*/
public var snapshotsDataHeader: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kendra.model.GetSnapshotsResponse) : this() {
this.nextToken = x.nextToken
this.snapShotTimeFilter = x.snapShotTimeFilter
this.snapshotsData = x.snapshotsData
this.snapshotsDataHeader = x.snapshotsDataHeader
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kendra.model.GetSnapshotsResponse = GetSnapshotsResponse(this)
/**
* construct an [aws.sdk.kotlin.services.kendra.model.TimeRange] inside the given [block]
*/
public fun snapShotTimeFilter(block: aws.sdk.kotlin.services.kendra.model.TimeRange.Builder.() -> kotlin.Unit) {
this.snapShotTimeFilter = aws.sdk.kotlin.services.kendra.model.TimeRange.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy