commonMain.aws.sdk.kotlin.services.pinpointemail.model.GetDomainStatisticsReportResponse.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 includes statistics that are related to the domain that you specified.
*/
public class GetDomainStatisticsReportResponse private constructor(builder: Builder) {
/**
* An object that contains deliverability metrics for the domain that you specified. This object contains data for each day, starting on the `StartDate` and ending on the `EndDate`.
*/
public val dailyVolumes: List = requireNotNull(builder.dailyVolumes) { "A non-null value must be provided for dailyVolumes" }
/**
* An object that contains deliverability metrics for the domain that you specified. The data in this object is a summary of all of the data that was collected from the `StartDate` to the `EndDate`.
*/
public val overallVolume: aws.sdk.kotlin.services.pinpointemail.model.OverallVolume? = builder.overallVolume
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pinpointemail.model.GetDomainStatisticsReportResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetDomainStatisticsReportResponse(")
append("dailyVolumes=$dailyVolumes,")
append("overallVolume=$overallVolume")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dailyVolumes.hashCode()
result = 31 * result + (overallVolume?.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 GetDomainStatisticsReportResponse
if (dailyVolumes != other.dailyVolumes) return false
if (overallVolume != other.overallVolume) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pinpointemail.model.GetDomainStatisticsReportResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An object that contains deliverability metrics for the domain that you specified. This object contains data for each day, starting on the `StartDate` and ending on the `EndDate`.
*/
public var dailyVolumes: List? = null
/**
* An object that contains deliverability metrics for the domain that you specified. The data in this object is a summary of all of the data that was collected from the `StartDate` to the `EndDate`.
*/
public var overallVolume: aws.sdk.kotlin.services.pinpointemail.model.OverallVolume? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pinpointemail.model.GetDomainStatisticsReportResponse) : this() {
this.dailyVolumes = x.dailyVolumes
this.overallVolume = x.overallVolume
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pinpointemail.model.GetDomainStatisticsReportResponse = GetDomainStatisticsReportResponse(this)
/**
* construct an [aws.sdk.kotlin.services.pinpointemail.model.OverallVolume] inside the given [block]
*/
public fun overallVolume(block: aws.sdk.kotlin.services.pinpointemail.model.OverallVolume.Builder.() -> kotlin.Unit) {
this.overallVolume = aws.sdk.kotlin.services.pinpointemail.model.OverallVolume.invoke(block)
}
internal fun correctErrors(): Builder {
if (dailyVolumes == null) dailyVolumes = emptyList()
return this
}
}
}