
commonMain.aws.sdk.kotlin.services.rum.model.UserDetails.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.rum.model
/**
* A structure that contains information about the user session that this batch of events was collected from.
*/
public class UserDetails private constructor(builder: Builder) {
/**
* The session ID that the performance events are from.
*/
public val sessionId: kotlin.String? = builder.sessionId
/**
* The ID of the user for this user session. This ID is generated by RUM and does not include any personally identifiable information about the user.
*/
public val userId: kotlin.String? = builder.userId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rum.model.UserDetails = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UserDetails(")
append("sessionId=$sessionId,")
append("userId=$userId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = sessionId?.hashCode() ?: 0
result = 31 * result + (userId?.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 UserDetails
if (sessionId != other.sessionId) return false
if (userId != other.userId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rum.model.UserDetails = Builder(this).apply(block).build()
public class Builder {
/**
* The session ID that the performance events are from.
*/
public var sessionId: kotlin.String? = null
/**
* The ID of the user for this user session. This ID is generated by RUM and does not include any personally identifiable information about the user.
*/
public var userId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rum.model.UserDetails) : this() {
this.sessionId = x.sessionId
this.userId = x.userId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rum.model.UserDetails = UserDetails(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy