
commonMain.aws.sdk.kotlin.services.connectcases.model.GetCaseAuditEventsRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connectcases.model
public class GetCaseAuditEventsRequest private constructor(builder: Builder) {
/**
* A unique identifier of the case.
*/
public val caseId: kotlin.String? = builder.caseId
/**
* The unique identifier of the Cases domain.
*/
public val domainId: kotlin.String? = builder.domainId
/**
* The maximum number of audit events to return. The current maximum supported value is 25. This is also the default 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
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connectcases.model.GetCaseAuditEventsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetCaseAuditEventsRequest(")
append("caseId=$caseId,")
append("domainId=$domainId,")
append("maxResults=$maxResults,")
append("nextToken=$nextToken")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = caseId?.hashCode() ?: 0
result = 31 * result + (domainId?.hashCode() ?: 0)
result = 31 * result + (maxResults ?: 0)
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 GetCaseAuditEventsRequest
if (caseId != other.caseId) return false
if (domainId != other.domainId) return false
if (maxResults != other.maxResults) return false
if (nextToken != other.nextToken) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connectcases.model.GetCaseAuditEventsRequest = 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
/**
* The maximum number of audit events to return. The current maximum supported value is 25. This is also the default 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
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connectcases.model.GetCaseAuditEventsRequest) : this() {
this.caseId = x.caseId
this.domainId = x.domainId
this.maxResults = x.maxResults
this.nextToken = x.nextToken
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connectcases.model.GetCaseAuditEventsRequest = GetCaseAuditEventsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy