
commonMain.aws.sdk.kotlin.services.personalizeevents.model.PutUsersRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.personalizeevents.model
public class PutUsersRequest private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the Users dataset you are adding the user or users to.
*/
public val datasetArn: kotlin.String? = builder.datasetArn
/**
* A list of user data.
*/
public val users: List? = builder.users
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.personalizeevents.model.PutUsersRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PutUsersRequest(")
append("datasetArn=$datasetArn,")
append("users=$users")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = datasetArn?.hashCode() ?: 0
result = 31 * result + (users?.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 PutUsersRequest
if (datasetArn != other.datasetArn) return false
if (users != other.users) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.personalizeevents.model.PutUsersRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The Amazon Resource Name (ARN) of the Users dataset you are adding the user or users to.
*/
public var datasetArn: kotlin.String? = null
/**
* A list of user data.
*/
public var users: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.personalizeevents.model.PutUsersRequest) : this() {
this.datasetArn = x.datasetArn
this.users = x.users
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.personalizeevents.model.PutUsersRequest = PutUsersRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy