commonMain.aws.sdk.kotlin.services.pinpointemail.model.CreateDeliverabilityTestReportResponse.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
/**
* Information about the predictive inbox placement test that you created.
*/
public class CreateDeliverabilityTestReportResponse private constructor(builder: Builder) {
/**
* 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 = requireNotNull(builder.deliverabilityTestStatus) { "A non-null value must be provided for deliverabilityTestStatus" }
/**
* A unique string that identifies the predictive inbox placement test.
*/
public val reportId: kotlin.String = requireNotNull(builder.reportId) { "A non-null value must be provided for reportId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pinpointemail.model.CreateDeliverabilityTestReportResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateDeliverabilityTestReportResponse(")
append("deliverabilityTestStatus=$deliverabilityTestStatus,")
append("reportId=$reportId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = deliverabilityTestStatus.hashCode()
result = 31 * result + (reportId.hashCode())
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 CreateDeliverabilityTestReportResponse
if (deliverabilityTestStatus != other.deliverabilityTestStatus) return false
if (reportId != other.reportId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pinpointemail.model.CreateDeliverabilityTestReportResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* 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
/**
* A unique string that identifies the predictive inbox placement test.
*/
public var reportId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pinpointemail.model.CreateDeliverabilityTestReportResponse) : this() {
this.deliverabilityTestStatus = x.deliverabilityTestStatus
this.reportId = x.reportId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pinpointemail.model.CreateDeliverabilityTestReportResponse = CreateDeliverabilityTestReportResponse(this)
internal fun correctErrors(): Builder {
if (deliverabilityTestStatus == null) deliverabilityTestStatus = DeliverabilityTestStatus.SdkUnknown("no value provided")
if (reportId == null) reportId = ""
return this
}
}
}