commonMain.aws.sdk.kotlin.services.medicalimaging.model.SearchImageSetsResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of medicalimaging-jvm Show documentation
Show all versions of medicalimaging-jvm Show documentation
The AWS SDK for Kotlin client for Medical Imaging
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.medicalimaging.model
import aws.smithy.kotlin.runtime.SdkDsl
public class SearchImageSetsResponse private constructor(builder: Builder) {
/**
* The model containing the image set results.
*/
public val imageSetsMetadataSummaries: List = requireNotNull(builder.imageSetsMetadataSummaries) { "A non-null value must be provided for imageSetsMetadataSummaries" }
/**
* The token for pagination results.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* The sort order for image set search results.
*/
public val sort: aws.sdk.kotlin.services.medicalimaging.model.Sort? = builder.sort
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medicalimaging.model.SearchImageSetsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SearchImageSetsResponse(")
append("imageSetsMetadataSummaries=$imageSetsMetadataSummaries,")
append("nextToken=$nextToken,")
append("sort=$sort")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = imageSetsMetadataSummaries.hashCode()
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (sort?.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 SearchImageSetsResponse
if (imageSetsMetadataSummaries != other.imageSetsMetadataSummaries) return false
if (nextToken != other.nextToken) return false
if (sort != other.sort) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medicalimaging.model.SearchImageSetsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The model containing the image set results.
*/
public var imageSetsMetadataSummaries: List? = null
/**
* The token for pagination results.
*/
public var nextToken: kotlin.String? = null
/**
* The sort order for image set search results.
*/
public var sort: aws.sdk.kotlin.services.medicalimaging.model.Sort? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medicalimaging.model.SearchImageSetsResponse) : this() {
this.imageSetsMetadataSummaries = x.imageSetsMetadataSummaries
this.nextToken = x.nextToken
this.sort = x.sort
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medicalimaging.model.SearchImageSetsResponse = SearchImageSetsResponse(this)
/**
* construct an [aws.sdk.kotlin.services.medicalimaging.model.Sort] inside the given [block]
*/
public fun sort(block: aws.sdk.kotlin.services.medicalimaging.model.Sort.Builder.() -> kotlin.Unit) {
this.sort = aws.sdk.kotlin.services.medicalimaging.model.Sort.invoke(block)
}
internal fun correctErrors(): Builder {
if (imageSetsMetadataSummaries == null) imageSetsMetadataSummaries = emptyList()
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy