All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.personalize.model.CreateEventTrackerResponse.kt Maven / Gradle / Ivy

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 CreateEventTrackerResponse private constructor(builder: Builder) {
    /**
     * The ARN of the event tracker.
     */
    public val eventTrackerArn: kotlin.String? = builder.eventTrackerArn
    /**
     * The ID of the event tracker. Include this ID in requests to the [PutEvents](https://docs.aws.amazon.com/personalize/latest/dg/API_UBS_PutEvents.html) API.
     */
    public val trackingId: kotlin.String? = builder.trackingId

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.personalize.model.CreateEventTrackerResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("CreateEventTrackerResponse(")
        append("eventTrackerArn=$eventTrackerArn,")
        append("trackingId=$trackingId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = eventTrackerArn?.hashCode() ?: 0
        result = 31 * result + (trackingId?.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 CreateEventTrackerResponse

        if (eventTrackerArn != other.eventTrackerArn) return false
        if (trackingId != other.trackingId) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.personalize.model.CreateEventTrackerResponse = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The ARN of the event tracker.
         */
        public var eventTrackerArn: kotlin.String? = null
        /**
         * The ID of the event tracker. Include this ID in requests to the [PutEvents](https://docs.aws.amazon.com/personalize/latest/dg/API_UBS_PutEvents.html) API.
         */
        public var trackingId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.personalize.model.CreateEventTrackerResponse) : this() {
            this.eventTrackerArn = x.eventTrackerArn
            this.trackingId = x.trackingId
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.personalize.model.CreateEventTrackerResponse = CreateEventTrackerResponse(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy