commonMain.aws.sdk.kotlin.services.pinpointemail.model.DailyVolume.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
import aws.smithy.kotlin.runtime.time.Instant
/**
* An object that contains information about the volume of email sent on each day of the analysis period.
*/
public class DailyVolume private constructor(builder: Builder) {
/**
* An object that contains inbox placement metrics for a specified day in the analysis period, broken out by the recipient's email provider.
*/
public val domainIspPlacements: List? = builder.domainIspPlacements
/**
* The date that the DailyVolume metrics apply to, in Unix time.
*/
public val startDate: aws.smithy.kotlin.runtime.time.Instant? = builder.startDate
/**
* An object that contains inbox placement metrics for a specific day in the analysis period.
*/
public val volumeStatistics: aws.sdk.kotlin.services.pinpointemail.model.VolumeStatistics? = builder.volumeStatistics
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pinpointemail.model.DailyVolume = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DailyVolume(")
append("domainIspPlacements=$domainIspPlacements,")
append("startDate=$startDate,")
append("volumeStatistics=$volumeStatistics")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = domainIspPlacements?.hashCode() ?: 0
result = 31 * result + (startDate?.hashCode() ?: 0)
result = 31 * result + (volumeStatistics?.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 DailyVolume
if (domainIspPlacements != other.domainIspPlacements) return false
if (startDate != other.startDate) return false
if (volumeStatistics != other.volumeStatistics) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pinpointemail.model.DailyVolume = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An object that contains inbox placement metrics for a specified day in the analysis period, broken out by the recipient's email provider.
*/
public var domainIspPlacements: List? = null
/**
* The date that the DailyVolume metrics apply to, in Unix time.
*/
public var startDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* An object that contains inbox placement metrics for a specific day in the analysis period.
*/
public var volumeStatistics: aws.sdk.kotlin.services.pinpointemail.model.VolumeStatistics? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pinpointemail.model.DailyVolume) : this() {
this.domainIspPlacements = x.domainIspPlacements
this.startDate = x.startDate
this.volumeStatistics = x.volumeStatistics
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pinpointemail.model.DailyVolume = DailyVolume(this)
/**
* construct an [aws.sdk.kotlin.services.pinpointemail.model.VolumeStatistics] inside the given [block]
*/
public fun volumeStatistics(block: aws.sdk.kotlin.services.pinpointemail.model.VolumeStatistics.Builder.() -> kotlin.Unit) {
this.volumeStatistics = aws.sdk.kotlin.services.pinpointemail.model.VolumeStatistics.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}