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

commonMain.aws.sdk.kotlin.services.pinpointemail.model.PutConfigurationSetTrackingOptionsRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.3.77
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.pinpointemail.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * A request to add a custom domain for tracking open and click events to a configuration set.
 */
public class PutConfigurationSetTrackingOptionsRequest private constructor(builder: Builder) {
    /**
     * The name of the configuration set that you want to add a custom tracking domain to.
     */
    public val configurationSetName: kotlin.String? = builder.configurationSetName
    /**
     * The domain that you want to use to track open and click events.
     */
    public val customRedirectDomain: kotlin.String? = builder.customRedirectDomain

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

    override fun toString(): kotlin.String = buildString {
        append("PutConfigurationSetTrackingOptionsRequest(")
        append("configurationSetName=$configurationSetName,")
        append("customRedirectDomain=$customRedirectDomain")
        append(")")
    }

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

        if (configurationSetName != other.configurationSetName) return false
        if (customRedirectDomain != other.customRedirectDomain) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The name of the configuration set that you want to add a custom tracking domain to.
         */
        public var configurationSetName: kotlin.String? = null
        /**
         * The domain that you want to use to track open and click events.
         */
        public var customRedirectDomain: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.pinpointemail.model.PutConfigurationSetTrackingOptionsRequest) : this() {
            this.configurationSetName = x.configurationSetName
            this.customRedirectDomain = x.customRedirectDomain
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy