
commonMain.aws.sdk.kotlin.services.connectcases.model.GetCaseAuditEventsResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connectcases.model
public class GetCaseAuditEventsResponse private constructor(builder: Builder) {
/**
* A list of case audits where each represents a particular edit of the case.
*/
public val auditEvents: List = requireNotNull(builder.auditEvents) { "A non-null value must be provided for auditEvents" }
/**
* The token for the next set of results. This is null if there are no more results to return.
*/
public val nextToken: kotlin.String? = builder.nextToken
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connectcases.model.GetCaseAuditEventsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetCaseAuditEventsResponse(")
append("auditEvents=$auditEvents,")
append("nextToken=$nextToken")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = auditEvents.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 GetCaseAuditEventsResponse
if (auditEvents != other.auditEvents) return false
if (nextToken != other.nextToken) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connectcases.model.GetCaseAuditEventsResponse = Builder(this).apply(block).build()
public class Builder {
/**
* A list of case audits where each represents a particular edit of the case.
*/
public var auditEvents: List? = null
/**
* The token for the next set of results. This is null if there are no more results to return.
*/
public var nextToken: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connectcases.model.GetCaseAuditEventsResponse) : this() {
this.auditEvents = x.auditEvents
this.nextToken = x.nextToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connectcases.model.GetCaseAuditEventsResponse = GetCaseAuditEventsResponse(this)
internal fun correctErrors(): Builder {
if (auditEvents == null) auditEvents = emptyList()
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy