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

commonMain.aws.sdk.kotlin.services.medialive.model.TransferringInputDeviceSummary.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.medialive.model



/**
 * Details about the input device that is being transferred.
 */
public class TransferringInputDeviceSummary private constructor(builder: Builder) {
    /**
     * The unique ID of the input device.
     */
    public val id: kotlin.String? = builder.id
    /**
     * The optional message that the sender has attached to the transfer.
     */
    public val message: kotlin.String? = builder.message
    /**
     * The AWS account ID for the recipient of the input device transfer.
     */
    public val targetCustomerId: kotlin.String? = builder.targetCustomerId
    /**
     * The type (direction) of the input device transfer.
     */
    public val transferType: aws.sdk.kotlin.services.medialive.model.InputDeviceTransferType? = builder.transferType

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

    override fun toString(): kotlin.String = buildString {
        append("TransferringInputDeviceSummary(")
        append("id=$id,")
        append("message=$message,")
        append("targetCustomerId=$targetCustomerId,")
        append("transferType=$transferType")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = id?.hashCode() ?: 0
        result = 31 * result + (message?.hashCode() ?: 0)
        result = 31 * result + (targetCustomerId?.hashCode() ?: 0)
        result = 31 * result + (transferType?.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 TransferringInputDeviceSummary

        if (id != other.id) return false
        if (message != other.message) return false
        if (targetCustomerId != other.targetCustomerId) return false
        if (transferType != other.transferType) return false

        return true
    }

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

    public class Builder {
        /**
         * The unique ID of the input device.
         */
        public var id: kotlin.String? = null
        /**
         * The optional message that the sender has attached to the transfer.
         */
        public var message: kotlin.String? = null
        /**
         * The AWS account ID for the recipient of the input device transfer.
         */
        public var targetCustomerId: kotlin.String? = null
        /**
         * The type (direction) of the input device transfer.
         */
        public var transferType: aws.sdk.kotlin.services.medialive.model.InputDeviceTransferType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.TransferringInputDeviceSummary) : this() {
            this.id = x.id
            this.message = x.message
            this.targetCustomerId = x.targetCustomerId
            this.transferType = x.transferType
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.medialive.model.TransferringInputDeviceSummary = TransferringInputDeviceSummary(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy