All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.pinpointemail.model.GetDomainStatisticsReportRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.3.77
Show newest version
// 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

/**
 * A request to obtain deliverability metrics for a domain.
 */
public class GetDomainStatisticsReportRequest private constructor(builder: Builder) {
    /**
     * The domain that you want to obtain deliverability metrics for.
     */
    public val domain: kotlin.String? = builder.domain
    /**
     * The last day (in Unix time) that you want to obtain domain deliverability metrics for. The `EndDate` that you specify has to be less than or equal to 30 days after the `StartDate`.
     */
    public val endDate: aws.smithy.kotlin.runtime.time.Instant? = builder.endDate
    /**
     * The first day (in Unix time) that you want to obtain domain deliverability metrics for.
     */
    public val startDate: aws.smithy.kotlin.runtime.time.Instant? = builder.startDate

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pinpointemail.model.GetDomainStatisticsReportRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("GetDomainStatisticsReportRequest(")
        append("domain=$domain,")
        append("endDate=$endDate,")
        append("startDate=$startDate")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = domain?.hashCode() ?: 0
        result = 31 * result + (endDate?.hashCode() ?: 0)
        result = 31 * result + (startDate?.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 GetDomainStatisticsReportRequest

        if (domain != other.domain) return false
        if (endDate != other.endDate) return false
        if (startDate != other.startDate) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pinpointemail.model.GetDomainStatisticsReportRequest = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The domain that you want to obtain deliverability metrics for.
         */
        public var domain: kotlin.String? = null
        /**
         * The last day (in Unix time) that you want to obtain domain deliverability metrics for. The `EndDate` that you specify has to be less than or equal to 30 days after the `StartDate`.
         */
        public var endDate: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The first day (in Unix time) that you want to obtain domain deliverability metrics for.
         */
        public var startDate: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.pinpointemail.model.GetDomainStatisticsReportRequest) : this() {
            this.domain = x.domain
            this.endDate = x.endDate
            this.startDate = x.startDate
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.pinpointemail.model.GetDomainStatisticsReportRequest = GetDomainStatisticsReportRequest(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy