commonMain.aws.sdk.kotlin.services.sagemakergeospatial.model.SearchRasterDataCollectionResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sagemakergeospatial-jvm Show documentation
Show all versions of sagemakergeospatial-jvm Show documentation
The AWS SDK for Kotlin client for SageMaker Geospatial
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemakergeospatial.model
import aws.smithy.kotlin.runtime.SdkDsl
public class SearchRasterDataCollectionResponse private constructor(builder: Builder) {
/**
* Approximate number of results in the response.
*/
public val approximateResultCount: kotlin.Int = requireNotNull(builder.approximateResultCount) { "A non-null value must be provided for approximateResultCount" }
/**
* List of items matching the Raster DataCollectionQuery.
*/
public val items: List? = builder.items
/**
* If the previous response was truncated, you receive this token. Use it in your next request to receive the next set of results.
*/
public val nextToken: kotlin.String? = builder.nextToken
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sagemakergeospatial.model.SearchRasterDataCollectionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SearchRasterDataCollectionResponse(")
append("approximateResultCount=$approximateResultCount,")
append("items=$items,")
append("nextToken=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = approximateResultCount
result = 31 * result + (items?.hashCode() ?: 0)
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 SearchRasterDataCollectionResponse
if (approximateResultCount != other.approximateResultCount) return false
if (items != other.items) return false
if (nextToken != other.nextToken) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sagemakergeospatial.model.SearchRasterDataCollectionResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Approximate number of results in the response.
*/
public var approximateResultCount: kotlin.Int? = null
/**
* List of items matching the Raster DataCollectionQuery.
*/
public var items: List? = null
/**
* If the previous response was truncated, you receive this token. Use it in your next request to receive the next set of results.
*/
public var nextToken: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sagemakergeospatial.model.SearchRasterDataCollectionResponse) : this() {
this.approximateResultCount = x.approximateResultCount
this.items = x.items
this.nextToken = x.nextToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sagemakergeospatial.model.SearchRasterDataCollectionResponse = SearchRasterDataCollectionResponse(this)
internal fun correctErrors(): Builder {
if (approximateResultCount == null) approximateResultCount = 0
return this
}
}
}