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

commonMain.aws.sdk.kotlin.services.pinpointemail.model.DomainDeliverabilityTrackingOption.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
import aws.smithy.kotlin.runtime.time.Instant

/**
 * An object that contains information about the Deliverability dashboard subscription for a verified domain that you use to send email and currently has an active Deliverability dashboard subscription. If a Deliverability dashboard subscription is active for a domain, you gain access to reputation, inbox placement, and other metrics for the domain.
 */
public class DomainDeliverabilityTrackingOption private constructor(builder: Builder) {
    /**
     * A verified domain that’s associated with your AWS account and currently has an active Deliverability dashboard subscription.
     */
    public val domain: kotlin.String? = builder.domain
    /**
     * An object that contains information about the inbox placement data settings for the domain.
     */
    public val inboxPlacementTrackingOption: aws.sdk.kotlin.services.pinpointemail.model.InboxPlacementTrackingOption? = builder.inboxPlacementTrackingOption
    /**
     * The date, in Unix time format, when you enabled the Deliverability dashboard for the domain.
     */
    public val subscriptionStartDate: aws.smithy.kotlin.runtime.time.Instant? = builder.subscriptionStartDate

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

    override fun toString(): kotlin.String = buildString {
        append("DomainDeliverabilityTrackingOption(")
        append("domain=$domain,")
        append("inboxPlacementTrackingOption=$inboxPlacementTrackingOption,")
        append("subscriptionStartDate=$subscriptionStartDate")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = domain?.hashCode() ?: 0
        result = 31 * result + (inboxPlacementTrackingOption?.hashCode() ?: 0)
        result = 31 * result + (subscriptionStartDate?.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 DomainDeliverabilityTrackingOption

        if (domain != other.domain) return false
        if (inboxPlacementTrackingOption != other.inboxPlacementTrackingOption) return false
        if (subscriptionStartDate != other.subscriptionStartDate) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A verified domain that’s associated with your AWS account and currently has an active Deliverability dashboard subscription.
         */
        public var domain: kotlin.String? = null
        /**
         * An object that contains information about the inbox placement data settings for the domain.
         */
        public var inboxPlacementTrackingOption: aws.sdk.kotlin.services.pinpointemail.model.InboxPlacementTrackingOption? = null
        /**
         * The date, in Unix time format, when you enabled the Deliverability dashboard for the domain.
         */
        public var subscriptionStartDate: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.pinpointemail.model.DomainDeliverabilityTrackingOption) : this() {
            this.domain = x.domain
            this.inboxPlacementTrackingOption = x.inboxPlacementTrackingOption
            this.subscriptionStartDate = x.subscriptionStartDate
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.pinpointemail.model.InboxPlacementTrackingOption] inside the given [block]
         */
        public fun inboxPlacementTrackingOption(block: aws.sdk.kotlin.services.pinpointemail.model.InboxPlacementTrackingOption.Builder.() -> kotlin.Unit) {
            this.inboxPlacementTrackingOption = aws.sdk.kotlin.services.pinpointemail.model.InboxPlacementTrackingOption.invoke(block)
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy