commonMain.aws.sdk.kotlin.services.pinpointemail.model.PutEmailIdentityFeedbackAttributesRequest.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 request to set the attributes that control how bounce and complaint events are processed.
*/
public class PutEmailIdentityFeedbackAttributesRequest private constructor(builder: Builder) {
/**
* Sets the feedback forwarding configuration for the identity.
*
* If the value is `true`, Amazon Pinpoint sends you email notifications when bounce or complaint events occur. Amazon Pinpoint sends this notification to the address that you specified in the Return-Path header of the original email.
*
* When you set this value to `false`, Amazon Pinpoint sends notifications through other mechanisms, such as by notifying an Amazon SNS topic or another event destination. You're required to have a method of tracking bounces and complaints. If you haven't set up another mechanism for receiving bounce or complaint notifications, Amazon Pinpoint sends an email notification when these events occur (even if this setting is disabled).
*/
public val emailForwardingEnabled: kotlin.Boolean? = builder.emailForwardingEnabled
/**
* The email identity that you want to configure bounce and complaint feedback forwarding for.
*/
public val emailIdentity: kotlin.String? = builder.emailIdentity
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pinpointemail.model.PutEmailIdentityFeedbackAttributesRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PutEmailIdentityFeedbackAttributesRequest(")
append("emailForwardingEnabled=$emailForwardingEnabled,")
append("emailIdentity=$emailIdentity")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = emailForwardingEnabled?.hashCode() ?: 0
result = 31 * result + (emailIdentity?.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 PutEmailIdentityFeedbackAttributesRequest
if (emailForwardingEnabled != other.emailForwardingEnabled) return false
if (emailIdentity != other.emailIdentity) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pinpointemail.model.PutEmailIdentityFeedbackAttributesRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Sets the feedback forwarding configuration for the identity.
*
* If the value is `true`, Amazon Pinpoint sends you email notifications when bounce or complaint events occur. Amazon Pinpoint sends this notification to the address that you specified in the Return-Path header of the original email.
*
* When you set this value to `false`, Amazon Pinpoint sends notifications through other mechanisms, such as by notifying an Amazon SNS topic or another event destination. You're required to have a method of tracking bounces and complaints. If you haven't set up another mechanism for receiving bounce or complaint notifications, Amazon Pinpoint sends an email notification when these events occur (even if this setting is disabled).
*/
public var emailForwardingEnabled: kotlin.Boolean? = null
/**
* The email identity that you want to configure bounce and complaint feedback forwarding for.
*/
public var emailIdentity: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pinpointemail.model.PutEmailIdentityFeedbackAttributesRequest) : this() {
this.emailForwardingEnabled = x.emailForwardingEnabled
this.emailIdentity = x.emailIdentity
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pinpointemail.model.PutEmailIdentityFeedbackAttributesRequest = PutEmailIdentityFeedbackAttributesRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}