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

commonMain.aws.sdk.kotlin.services.pinpointemail.model.CreateDeliverabilityTestReportRequest.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 perform a predictive inbox placement test. Predictive inbox placement tests can help you predict how your messages will be handled by various email providers around the world. When you perform a predictive inbox placement test, you provide a sample message that contains the content that you plan to send to your customers. Amazon Pinpoint then sends that message to special email addresses spread across several major email providers. After about 24 hours, the test is complete, and you can use the `GetDeliverabilityTestReport` operation to view the results of the test.
 */
public class CreateDeliverabilityTestReportRequest private constructor(builder: Builder) {
    /**
     * The HTML body of the message that you sent when you performed the predictive inbox placement test.
     */
    public val content: aws.sdk.kotlin.services.pinpointemail.model.EmailContent? = builder.content
    /**
     * The email address that the predictive inbox placement test email was sent from.
     */
    public val fromEmailAddress: kotlin.String? = builder.fromEmailAddress
    /**
     * A unique name that helps you to identify the predictive inbox placement test when you retrieve the results.
     */
    public val reportName: kotlin.String? = builder.reportName
    /**
     * An array of objects that define the tags (keys and values) that you want to associate with the predictive inbox placement test.
     */
    public val tags: List? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("CreateDeliverabilityTestReportRequest(")
        append("content=$content,")
        append("fromEmailAddress=$fromEmailAddress,")
        append("reportName=$reportName,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = content?.hashCode() ?: 0
        result = 31 * result + (fromEmailAddress?.hashCode() ?: 0)
        result = 31 * result + (reportName?.hashCode() ?: 0)
        result = 31 * result + (tags?.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 CreateDeliverabilityTestReportRequest

        if (content != other.content) return false
        if (fromEmailAddress != other.fromEmailAddress) return false
        if (reportName != other.reportName) return false
        if (tags != other.tags) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The HTML body of the message that you sent when you performed the predictive inbox placement test.
         */
        public var content: aws.sdk.kotlin.services.pinpointemail.model.EmailContent? = null
        /**
         * The email address that the predictive inbox placement test email was sent from.
         */
        public var fromEmailAddress: kotlin.String? = null
        /**
         * A unique name that helps you to identify the predictive inbox placement test when you retrieve the results.
         */
        public var reportName: kotlin.String? = null
        /**
         * An array of objects that define the tags (keys and values) that you want to associate with the predictive inbox placement test.
         */
        public var tags: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.pinpointemail.model.CreateDeliverabilityTestReportRequest) : this() {
            this.content = x.content
            this.fromEmailAddress = x.fromEmailAddress
            this.reportName = x.reportName
            this.tags = x.tags
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy