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

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

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

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



/**
 * A request to transfer an input device.
 */
public class TransferInputDeviceRequest private constructor(builder: Builder) {
    /**
     * The unique ID of this input device. For example, hd-123456789abcdef.
     */
    public val inputDeviceId: kotlin.String? = requireNotNull(builder.inputDeviceId) { "A non-null value must be provided for inputDeviceId" }
    /**
     * The AWS account ID (12 digits) for the recipient of the device transfer.
     */
    public val targetCustomerId: kotlin.String? = builder.targetCustomerId
    /**
     * The target AWS region to transfer the device.
     */
    public val targetRegion: kotlin.String? = builder.targetRegion
    /**
     * An optional message for the recipient. Maximum 280 characters.
     */
    public val transferMessage: kotlin.String? = builder.transferMessage

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

    override fun toString(): kotlin.String = buildString {
        append("TransferInputDeviceRequest(")
        append("inputDeviceId=$inputDeviceId,")
        append("targetCustomerId=$targetCustomerId,")
        append("targetRegion=$targetRegion,")
        append("transferMessage=$transferMessage")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = inputDeviceId?.hashCode() ?: 0
        result = 31 * result + (targetCustomerId?.hashCode() ?: 0)
        result = 31 * result + (targetRegion?.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 TransferInputDeviceRequest

        if (inputDeviceId != other.inputDeviceId) return false
        if (targetCustomerId != other.targetCustomerId) return false
        if (targetRegion != other.targetRegion) return false
        if (transferMessage != other.transferMessage) return false

        return true
    }

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

    public class Builder {
        /**
         * The unique ID of this input device. For example, hd-123456789abcdef.
         */
        public var inputDeviceId: kotlin.String? = null
        /**
         * The AWS account ID (12 digits) for the recipient of the device transfer.
         */
        public var targetCustomerId: kotlin.String? = null
        /**
         * The target AWS region to transfer the device.
         */
        public var targetRegion: kotlin.String? = null
        /**
         * An optional message for the recipient. Maximum 280 characters.
         */
        public var transferMessage: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.TransferInputDeviceRequest) : this() {
            this.inputDeviceId = x.inputDeviceId
            this.targetCustomerId = x.targetCustomerId
            this.targetRegion = x.targetRegion
            this.transferMessage = x.transferMessage
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy