commonMain.aws.sdk.kotlin.services.kinesisvideo.model.UpdateSignalingChannelRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kinesisvideo-jvm Show documentation
Show all versions of kinesisvideo-jvm Show documentation
The AWS SDK for Kotlin client for Kinesis Video
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kinesisvideo.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateSignalingChannelRequest private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the signaling channel that you want to update.
*/
public val channelArn: kotlin.String? = builder.channelArn
/**
* The current version of the signaling channel that you want to update.
*/
public val currentVersion: kotlin.String? = builder.currentVersion
/**
* The structure containing the configuration for the `SINGLE_MASTER` type of the signaling channel that you want to update.
*/
public val singleMasterConfiguration: aws.sdk.kotlin.services.kinesisvideo.model.SingleMasterConfiguration? = builder.singleMasterConfiguration
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kinesisvideo.model.UpdateSignalingChannelRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateSignalingChannelRequest(")
append("channelArn=$channelArn,")
append("currentVersion=$currentVersion,")
append("singleMasterConfiguration=$singleMasterConfiguration")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = channelArn?.hashCode() ?: 0
result = 31 * result + (currentVersion?.hashCode() ?: 0)
result = 31 * result + (singleMasterConfiguration?.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 UpdateSignalingChannelRequest
if (channelArn != other.channelArn) return false
if (currentVersion != other.currentVersion) return false
if (singleMasterConfiguration != other.singleMasterConfiguration) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kinesisvideo.model.UpdateSignalingChannelRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the signaling channel that you want to update.
*/
public var channelArn: kotlin.String? = null
/**
* The current version of the signaling channel that you want to update.
*/
public var currentVersion: kotlin.String? = null
/**
* The structure containing the configuration for the `SINGLE_MASTER` type of the signaling channel that you want to update.
*/
public var singleMasterConfiguration: aws.sdk.kotlin.services.kinesisvideo.model.SingleMasterConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kinesisvideo.model.UpdateSignalingChannelRequest) : this() {
this.channelArn = x.channelArn
this.currentVersion = x.currentVersion
this.singleMasterConfiguration = x.singleMasterConfiguration
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kinesisvideo.model.UpdateSignalingChannelRequest = UpdateSignalingChannelRequest(this)
/**
* construct an [aws.sdk.kotlin.services.kinesisvideo.model.SingleMasterConfiguration] inside the given [block]
*/
public fun singleMasterConfiguration(block: aws.sdk.kotlin.services.kinesisvideo.model.SingleMasterConfiguration.Builder.() -> kotlin.Unit) {
this.singleMasterConfiguration = aws.sdk.kotlin.services.kinesisvideo.model.SingleMasterConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}