commonMain.aws.sdk.kotlin.services.medicalimaging.model.SearchImageSetsRequest.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 SearchImageSetsRequest private constructor(builder: Builder) {
/**
* The identifier of the data store where the image sets reside.
*/
public val datastoreId: kotlin.String? = builder.datastoreId
/**
* The maximum number of results that can be returned in a search.
*/
public val maxResults: kotlin.Int? = builder.maxResults
/**
* The token used for pagination of results returned in the response. Use the token returned from the previous request to continue results where the previous request ended.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* The search criteria that filters by applying a maximum of 1 item to `SearchByAttribute`.
*/
public val searchCriteria: aws.sdk.kotlin.services.medicalimaging.model.SearchCriteria? = builder.searchCriteria
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medicalimaging.model.SearchImageSetsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SearchImageSetsRequest(")
append("datastoreId=$datastoreId,")
append("maxResults=$maxResults,")
append("nextToken=$nextToken,")
append("searchCriteria=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = datastoreId?.hashCode() ?: 0
result = 31 * result + (maxResults ?: 0)
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (searchCriteria?.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 SearchImageSetsRequest
if (datastoreId != other.datastoreId) return false
if (maxResults != other.maxResults) return false
if (nextToken != other.nextToken) return false
if (searchCriteria != other.searchCriteria) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medicalimaging.model.SearchImageSetsRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The identifier of the data store where the image sets reside.
*/
public var datastoreId: kotlin.String? = null
/**
* The maximum number of results that can be returned in a search.
*/
public var maxResults: kotlin.Int? = null
/**
* The token used for pagination of results returned in the response. Use the token returned from the previous request to continue results where the previous request ended.
*/
public var nextToken: kotlin.String? = null
/**
* The search criteria that filters by applying a maximum of 1 item to `SearchByAttribute`.
*/
public var searchCriteria: aws.sdk.kotlin.services.medicalimaging.model.SearchCriteria? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medicalimaging.model.SearchImageSetsRequest) : this() {
this.datastoreId = x.datastoreId
this.maxResults = x.maxResults
this.nextToken = x.nextToken
this.searchCriteria = x.searchCriteria
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medicalimaging.model.SearchImageSetsRequest = SearchImageSetsRequest(this)
/**
* construct an [aws.sdk.kotlin.services.medicalimaging.model.SearchCriteria] inside the given [block]
*/
public fun searchCriteria(block: aws.sdk.kotlin.services.medicalimaging.model.SearchCriteria.Builder.() -> kotlin.Unit) {
this.searchCriteria = aws.sdk.kotlin.services.medicalimaging.model.SearchCriteria.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy