commonMain.aws.sdk.kotlin.services.pinpointemail.model.SendEmailResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pinpointemail-jvm Show documentation
Show all versions of pinpointemail-jvm Show documentation
The AWS SDK for Kotlin client for Pinpoint Email
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.pinpointemail.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A unique message ID that you receive when Amazon Pinpoint accepts an email for sending.
*/
public class SendEmailResponse private constructor(builder: Builder) {
/**
* A unique identifier for the message that is generated when Amazon Pinpoint accepts the message.
*
* It is possible for Amazon Pinpoint to accept a message without sending it. This can happen when the message you're trying to send has an attachment doesn't pass a virus check, or when you send a templated email that contains invalid personalization content, for example.
*/
public val messageId: kotlin.String? = builder.messageId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pinpointemail.model.SendEmailResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SendEmailResponse(")
append("messageId=$messageId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = messageId?.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 SendEmailResponse
if (messageId != other.messageId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pinpointemail.model.SendEmailResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A unique identifier for the message that is generated when Amazon Pinpoint accepts the message.
*
* It is possible for Amazon Pinpoint to accept a message without sending it. This can happen when the message you're trying to send has an attachment doesn't pass a virus check, or when you send a templated email that contains invalid personalization content, for example.
*/
public var messageId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pinpointemail.model.SendEmailResponse) : this() {
this.messageId = x.messageId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pinpointemail.model.SendEmailResponse = SendEmailResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}