commonMain.aws.sdk.kotlin.services.kinesisvideosignaling.model.SendAlexaOfferToMasterRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kinesisvideosignaling-jvm Show documentation
Show all versions of kinesisvideosignaling-jvm Show documentation
The AWS SDK for Kotlin client for Kinesis Video Signaling
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kinesisvideosignaling.model
import aws.smithy.kotlin.runtime.SdkDsl
public class SendAlexaOfferToMasterRequest private constructor(builder: Builder) {
/**
* The ARN of the signaling channel by which Alexa and the master peer communicate.
*/
public val channelArn: kotlin.String? = builder.channelArn
/**
* The base64-encoded SDP offer content.
*/
public val messagePayload: kotlin.String? = builder.messagePayload
/**
* The unique identifier for the sender client.
*/
public val senderClientId: kotlin.String? = builder.senderClientId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kinesisvideosignaling.model.SendAlexaOfferToMasterRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SendAlexaOfferToMasterRequest(")
append("channelArn=$channelArn,")
append("messagePayload=$messagePayload,")
append("senderClientId=$senderClientId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = channelArn?.hashCode() ?: 0
result = 31 * result + (messagePayload?.hashCode() ?: 0)
result = 31 * result + (senderClientId?.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 SendAlexaOfferToMasterRequest
if (channelArn != other.channelArn) return false
if (messagePayload != other.messagePayload) return false
if (senderClientId != other.senderClientId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kinesisvideosignaling.model.SendAlexaOfferToMasterRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ARN of the signaling channel by which Alexa and the master peer communicate.
*/
public var channelArn: kotlin.String? = null
/**
* The base64-encoded SDP offer content.
*/
public var messagePayload: kotlin.String? = null
/**
* The unique identifier for the sender client.
*/
public var senderClientId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kinesisvideosignaling.model.SendAlexaOfferToMasterRequest) : this() {
this.channelArn = x.channelArn
this.messagePayload = x.messagePayload
this.senderClientId = x.senderClientId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kinesisvideosignaling.model.SendAlexaOfferToMasterRequest = SendAlexaOfferToMasterRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}