
commonMain.aws.sdk.kotlin.services.connectcases.model.SearchCasesRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connectcases.model
public class SearchCasesRequest private constructor(builder: Builder) {
/**
* The unique identifier of the Cases domain.
*/
public val domainId: kotlin.String = requireNotNull(builder.domainId) { "A non-null value must be provided for domainId" }
/**
* The list of field identifiers to be returned as part of the response.
*/
public val fields: List? = builder.fields
/**
* A list of filter objects.
*/
public val filter: aws.sdk.kotlin.services.connectcases.model.CaseFilter? = builder.filter
/**
* The maximum number of cases to return. The current maximum supported value is 25. This is also the default value when no other value is provided.
*/
public val maxResults: kotlin.Int? = builder.maxResults
/**
* The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* A word or phrase used to perform a quick search.
*/
public val searchTerm: kotlin.String? = builder.searchTerm
/**
* A list of sorts where each sort specifies a field and their sort order to be applied to the results.
*/
public val sorts: List? = builder.sorts
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connectcases.model.SearchCasesRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SearchCasesRequest(")
append("domainId=$domainId,")
append("fields=$fields,")
append("filter=$filter,")
append("maxResults=$maxResults,")
append("nextToken=$nextToken,")
append("searchTerm=$searchTerm,")
append("sorts=$sorts")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = domainId.hashCode()
result = 31 * result + (fields?.hashCode() ?: 0)
result = 31 * result + (filter?.hashCode() ?: 0)
result = 31 * result + (maxResults ?: 0)
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (searchTerm?.hashCode() ?: 0)
result = 31 * result + (sorts?.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 SearchCasesRequest
if (domainId != other.domainId) return false
if (fields != other.fields) return false
if (filter != other.filter) return false
if (maxResults != other.maxResults) return false
if (nextToken != other.nextToken) return false
if (searchTerm != other.searchTerm) return false
if (sorts != other.sorts) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connectcases.model.SearchCasesRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The unique identifier of the Cases domain.
*/
public var domainId: kotlin.String? = null
/**
* The list of field identifiers to be returned as part of the response.
*/
public var fields: List? = null
/**
* A list of filter objects.
*/
public var filter: aws.sdk.kotlin.services.connectcases.model.CaseFilter? = null
/**
* The maximum number of cases to return. The current maximum supported value is 25. This is also the default value when no other value is provided.
*/
public var maxResults: kotlin.Int? = null
/**
* The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
*/
public var nextToken: kotlin.String? = null
/**
* A word or phrase used to perform a quick search.
*/
public var searchTerm: kotlin.String? = null
/**
* A list of sorts where each sort specifies a field and their sort order to be applied to the results.
*/
public var sorts: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connectcases.model.SearchCasesRequest) : this() {
this.domainId = x.domainId
this.fields = x.fields
this.filter = x.filter
this.maxResults = x.maxResults
this.nextToken = x.nextToken
this.searchTerm = x.searchTerm
this.sorts = x.sorts
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connectcases.model.SearchCasesRequest = SearchCasesRequest(this)
internal fun correctErrors(): Builder {
if (domainId == null) domainId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy