commonMain.aws.sdk.kotlin.services.pinpointemail.model.GetDomainDeliverabilityCampaignResponse.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
/**
* An object that contains all the deliverability data for a specific campaign. This data is available for a campaign only if the campaign sent email by using a domain that the Deliverability dashboard is enabled for (`PutDeliverabilityDashboardOption` operation).
*/
public class GetDomainDeliverabilityCampaignResponse private constructor(builder: Builder) {
/**
* An object that contains the deliverability data for the campaign.
*/
public val domainDeliverabilityCampaign: aws.sdk.kotlin.services.pinpointemail.model.DomainDeliverabilityCampaign? = builder.domainDeliverabilityCampaign
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pinpointemail.model.GetDomainDeliverabilityCampaignResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetDomainDeliverabilityCampaignResponse(")
append("domainDeliverabilityCampaign=$domainDeliverabilityCampaign")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = domainDeliverabilityCampaign?.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 GetDomainDeliverabilityCampaignResponse
if (domainDeliverabilityCampaign != other.domainDeliverabilityCampaign) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pinpointemail.model.GetDomainDeliverabilityCampaignResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An object that contains the deliverability data for the campaign.
*/
public var domainDeliverabilityCampaign: aws.sdk.kotlin.services.pinpointemail.model.DomainDeliverabilityCampaign? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pinpointemail.model.GetDomainDeliverabilityCampaignResponse) : this() {
this.domainDeliverabilityCampaign = x.domainDeliverabilityCampaign
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pinpointemail.model.GetDomainDeliverabilityCampaignResponse = GetDomainDeliverabilityCampaignResponse(this)
/**
* construct an [aws.sdk.kotlin.services.pinpointemail.model.DomainDeliverabilityCampaign] inside the given [block]
*/
public fun domainDeliverabilityCampaign(block: aws.sdk.kotlin.services.pinpointemail.model.DomainDeliverabilityCampaign.Builder.() -> kotlin.Unit) {
this.domainDeliverabilityCampaign = aws.sdk.kotlin.services.pinpointemail.model.DomainDeliverabilityCampaign.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}