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

commonMain.aws.sdk.kotlin.services.pinpointemail.model.VolumeStatistics.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

/**
 * An object that contains information about the amount of email that was delivered to recipients.
 */
public class VolumeStatistics private constructor(builder: Builder) {
    /**
     * The total number of emails that arrived in recipients' inboxes.
     */
    public val inboxRawCount: kotlin.Long? = builder.inboxRawCount
    /**
     * An estimate of the percentage of emails sent from the current domain that will arrive in recipients' inboxes.
     */
    public val projectedInbox: kotlin.Long? = builder.projectedInbox
    /**
     * An estimate of the percentage of emails sent from the current domain that will arrive in recipients' spam or junk mail folders.
     */
    public val projectedSpam: kotlin.Long? = builder.projectedSpam
    /**
     * The total number of emails that arrived in recipients' spam or junk mail folders.
     */
    public val spamRawCount: kotlin.Long? = builder.spamRawCount

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

    override fun toString(): kotlin.String = buildString {
        append("VolumeStatistics(")
        append("inboxRawCount=$inboxRawCount,")
        append("projectedInbox=$projectedInbox,")
        append("projectedSpam=$projectedSpam,")
        append("spamRawCount=$spamRawCount")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = inboxRawCount?.hashCode() ?: 0
        result = 31 * result + (projectedInbox?.hashCode() ?: 0)
        result = 31 * result + (projectedSpam?.hashCode() ?: 0)
        result = 31 * result + (spamRawCount?.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 VolumeStatistics

        if (inboxRawCount != other.inboxRawCount) return false
        if (projectedInbox != other.projectedInbox) return false
        if (projectedSpam != other.projectedSpam) return false
        if (spamRawCount != other.spamRawCount) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The total number of emails that arrived in recipients' inboxes.
         */
        public var inboxRawCount: kotlin.Long? = null
        /**
         * An estimate of the percentage of emails sent from the current domain that will arrive in recipients' inboxes.
         */
        public var projectedInbox: kotlin.Long? = null
        /**
         * An estimate of the percentage of emails sent from the current domain that will arrive in recipients' spam or junk mail folders.
         */
        public var projectedSpam: kotlin.Long? = null
        /**
         * The total number of emails that arrived in recipients' spam or junk mail folders.
         */
        public var spamRawCount: kotlin.Long? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.pinpointemail.model.VolumeStatistics) : this() {
            this.inboxRawCount = x.inboxRawCount
            this.projectedInbox = x.projectedInbox
            this.projectedSpam = x.projectedSpam
            this.spamRawCount = x.spamRawCount
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy