commonMain.aws.sdk.kotlin.services.personalize.model.CreateEventTrackerRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of personalize-jvm Show documentation
Show all versions of personalize-jvm Show documentation
The AWS SDK for Kotlin client for Personalize
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.personalize.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateEventTrackerRequest private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the dataset group that receives the event data.
*/
public val datasetGroupArn: kotlin.String? = builder.datasetGroupArn
/**
* The name for the event tracker.
*/
public val name: kotlin.String? = builder.name
/**
* A list of [tags](https://docs.aws.amazon.com/personalize/latest/dg/tagging-resources.html) to apply to the event tracker.
*/
public val tags: List? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.personalize.model.CreateEventTrackerRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateEventTrackerRequest(")
append("datasetGroupArn=$datasetGroupArn,")
append("name=$name,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = datasetGroupArn?.hashCode() ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (tags?.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 CreateEventTrackerRequest
if (datasetGroupArn != other.datasetGroupArn) return false
if (name != other.name) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.personalize.model.CreateEventTrackerRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the dataset group that receives the event data.
*/
public var datasetGroupArn: kotlin.String? = null
/**
* The name for the event tracker.
*/
public var name: kotlin.String? = null
/**
* A list of [tags](https://docs.aws.amazon.com/personalize/latest/dg/tagging-resources.html) to apply to the event tracker.
*/
public var tags: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.personalize.model.CreateEventTrackerRequest) : this() {
this.datasetGroupArn = x.datasetGroupArn
this.name = x.name
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.personalize.model.CreateEventTrackerRequest = CreateEventTrackerRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}