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

commonMain.aws.sdk.kotlin.services.iot.model.TransferData.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.iot.model

import aws.smithy.kotlin.runtime.time.Instant

/**
 * Data used to transfer a certificate to an Amazon Web Services account.
 */
public class TransferData private constructor(builder: Builder) {
    /**
     * The date the transfer was accepted.
     */
    public val acceptDate: aws.smithy.kotlin.runtime.time.Instant? = builder.acceptDate
    /**
     * The date the transfer was rejected.
     */
    public val rejectDate: aws.smithy.kotlin.runtime.time.Instant? = builder.rejectDate
    /**
     * The reason why the transfer was rejected.
     */
    public val rejectReason: kotlin.String? = builder.rejectReason
    /**
     * The date the transfer took place.
     */
    public val transferDate: aws.smithy.kotlin.runtime.time.Instant? = builder.transferDate
    /**
     * The transfer message.
     */
    public val transferMessage: kotlin.String? = builder.transferMessage

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

    override fun toString(): kotlin.String = buildString {
        append("TransferData(")
        append("acceptDate=$acceptDate,")
        append("rejectDate=$rejectDate,")
        append("rejectReason=$rejectReason,")
        append("transferDate=$transferDate,")
        append("transferMessage=$transferMessage")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = acceptDate?.hashCode() ?: 0
        result = 31 * result + (rejectDate?.hashCode() ?: 0)
        result = 31 * result + (rejectReason?.hashCode() ?: 0)
        result = 31 * result + (transferDate?.hashCode() ?: 0)
        result = 31 * result + (transferMessage?.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 TransferData

        if (acceptDate != other.acceptDate) return false
        if (rejectDate != other.rejectDate) return false
        if (rejectReason != other.rejectReason) return false
        if (transferDate != other.transferDate) return false
        if (transferMessage != other.transferMessage) return false

        return true
    }

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

    public class Builder {
        /**
         * The date the transfer was accepted.
         */
        public var acceptDate: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The date the transfer was rejected.
         */
        public var rejectDate: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The reason why the transfer was rejected.
         */
        public var rejectReason: kotlin.String? = null
        /**
         * The date the transfer took place.
         */
        public var transferDate: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The transfer message.
         */
        public var transferMessage: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iot.model.TransferData) : this() {
            this.acceptDate = x.acceptDate
            this.rejectDate = x.rejectDate
            this.rejectReason = x.rejectReason
            this.transferDate = x.transferDate
            this.transferMessage = x.transferMessage
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy