
commonMain.aws.sdk.kotlin.services.connectcases.model.GetCaseRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connectcases.model
public class GetCaseRequest private constructor(builder: Builder) {
/**
* A unique identifier of the case.
*/
public val caseId: kotlin.String = requireNotNull(builder.caseId) { "A non-null value must be provided for caseId" }
/**
* The unique identifier of the Cases domain.
*/
public val domainId: kotlin.String = requireNotNull(builder.domainId) { "A non-null value must be provided for domainId" }
/**
* A list of unique field identifiers.
*/
public val fields: List = requireNotNull(builder.fields) { "A non-null value must be provided for fields" }
/**
* 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
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connectcases.model.GetCaseRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetCaseRequest(")
append("caseId=$caseId,")
append("domainId=$domainId,")
append("fields=$fields,")
append("nextToken=$nextToken")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = caseId.hashCode()
result = 31 * result + (domainId.hashCode())
result = 31 * result + (fields.hashCode())
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 GetCaseRequest
if (caseId != other.caseId) return false
if (domainId != other.domainId) return false
if (fields != other.fields) return false
if (nextToken != other.nextToken) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connectcases.model.GetCaseRequest = Builder(this).apply(block).build()
public class Builder {
/**
* A unique identifier of the case.
*/
public var caseId: kotlin.String? = null
/**
* The unique identifier of the Cases domain.
*/
public var domainId: kotlin.String? = null
/**
* A list of unique field identifiers.
*/
public var fields: List? = 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
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connectcases.model.GetCaseRequest) : this() {
this.caseId = x.caseId
this.domainId = x.domainId
this.fields = x.fields
this.nextToken = x.nextToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connectcases.model.GetCaseRequest = GetCaseRequest(this)
internal fun correctErrors(): Builder {
if (caseId == null) caseId = ""
if (domainId == null) domainId = ""
if (fields == null) fields = emptyList()
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy