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

commonMain.aws.sdk.kotlin.services.pinpointemail.model.DeliverabilityTestReport.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 metadata related to a predictive inbox placement test.
 */
public class DeliverabilityTestReport private constructor(builder: Builder) {
    /**
     * The date and time when the predictive inbox placement test was created, in Unix time format.
     */
    public val createDate: aws.smithy.kotlin.runtime.time.Instant? = builder.createDate
    /**
     * The status of the predictive inbox placement test. If the status is `IN_PROGRESS`, then the predictive inbox placement test is currently running. Predictive inbox placement tests are usually complete within 24 hours of creating the test. If the status is `COMPLETE`, then the test is finished, and you can use the `GetDeliverabilityTestReport` to view the results of the test.
     */
    public val deliverabilityTestStatus: aws.sdk.kotlin.services.pinpointemail.model.DeliverabilityTestStatus? = builder.deliverabilityTestStatus
    /**
     * The sender address that you specified for the predictive inbox placement test.
     */
    public val fromEmailAddress: kotlin.String? = builder.fromEmailAddress
    /**
     * A unique string that identifies the predictive inbox placement test.
     */
    public val reportId: kotlin.String? = builder.reportId
    /**
     * A name that helps you identify a predictive inbox placement test report.
     */
    public val reportName: kotlin.String? = builder.reportName
    /**
     * The subject line for an email that you submitted in a predictive inbox placement test.
     */
    public val subject: kotlin.String? = builder.subject

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

    override fun toString(): kotlin.String = buildString {
        append("DeliverabilityTestReport(")
        append("createDate=$createDate,")
        append("deliverabilityTestStatus=$deliverabilityTestStatus,")
        append("fromEmailAddress=$fromEmailAddress,")
        append("reportId=$reportId,")
        append("reportName=$reportName,")
        append("subject=$subject")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = createDate?.hashCode() ?: 0
        result = 31 * result + (deliverabilityTestStatus?.hashCode() ?: 0)
        result = 31 * result + (fromEmailAddress?.hashCode() ?: 0)
        result = 31 * result + (reportId?.hashCode() ?: 0)
        result = 31 * result + (reportName?.hashCode() ?: 0)
        result = 31 * result + (subject?.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 DeliverabilityTestReport

        if (createDate != other.createDate) return false
        if (deliverabilityTestStatus != other.deliverabilityTestStatus) return false
        if (fromEmailAddress != other.fromEmailAddress) return false
        if (reportId != other.reportId) return false
        if (reportName != other.reportName) return false
        if (subject != other.subject) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The date and time when the predictive inbox placement test was created, in Unix time format.
         */
        public var createDate: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The status of the predictive inbox placement test. If the status is `IN_PROGRESS`, then the predictive inbox placement test is currently running. Predictive inbox placement tests are usually complete within 24 hours of creating the test. If the status is `COMPLETE`, then the test is finished, and you can use the `GetDeliverabilityTestReport` to view the results of the test.
         */
        public var deliverabilityTestStatus: aws.sdk.kotlin.services.pinpointemail.model.DeliverabilityTestStatus? = null
        /**
         * The sender address that you specified for the predictive inbox placement test.
         */
        public var fromEmailAddress: kotlin.String? = null
        /**
         * A unique string that identifies the predictive inbox placement test.
         */
        public var reportId: kotlin.String? = null
        /**
         * A name that helps you identify a predictive inbox placement test report.
         */
        public var reportName: kotlin.String? = null
        /**
         * The subject line for an email that you submitted in a predictive inbox placement test.
         */
        public var subject: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.pinpointemail.model.DeliverabilityTestReport) : this() {
            this.createDate = x.createDate
            this.deliverabilityTestStatus = x.deliverabilityTestStatus
            this.fromEmailAddress = x.fromEmailAddress
            this.reportId = x.reportId
            this.reportName = x.reportName
            this.subject = x.subject
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy