commonMain.aws.sdk.kotlin.services.kinesisvideo.model.CreateSignalingChannelRequest.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 CreateSignalingChannelRequest private constructor(builder: Builder) {
/**
* A name for the signaling channel that you are creating. It must be unique for each Amazon Web Services account and Amazon Web Services Region.
*/
public val channelName: kotlin.String? = builder.channelName
/**
* A type of the signaling channel that you are creating. Currently, `SINGLE_MASTER` is the only supported channel type.
*/
public val channelType: aws.sdk.kotlin.services.kinesisvideo.model.ChannelType? = builder.channelType
/**
* A structure containing the configuration for the `SINGLE_MASTER` channel type.
*/
public val singleMasterConfiguration: aws.sdk.kotlin.services.kinesisvideo.model.SingleMasterConfiguration? = builder.singleMasterConfiguration
/**
* A set of tags (key-value pairs) that you want to associate with this channel.
*/
public val tags: List? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kinesisvideo.model.CreateSignalingChannelRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateSignalingChannelRequest(")
append("channelName=$channelName,")
append("channelType=$channelType,")
append("singleMasterConfiguration=$singleMasterConfiguration,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = channelName?.hashCode() ?: 0
result = 31 * result + (channelType?.hashCode() ?: 0)
result = 31 * result + (singleMasterConfiguration?.hashCode() ?: 0)
result = 31 * result + (tags?.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 CreateSignalingChannelRequest
if (channelName != other.channelName) return false
if (channelType != other.channelType) return false
if (singleMasterConfiguration != other.singleMasterConfiguration) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kinesisvideo.model.CreateSignalingChannelRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A name for the signaling channel that you are creating. It must be unique for each Amazon Web Services account and Amazon Web Services Region.
*/
public var channelName: kotlin.String? = null
/**
* A type of the signaling channel that you are creating. Currently, `SINGLE_MASTER` is the only supported channel type.
*/
public var channelType: aws.sdk.kotlin.services.kinesisvideo.model.ChannelType? = null
/**
* A structure containing the configuration for the `SINGLE_MASTER` channel type.
*/
public var singleMasterConfiguration: aws.sdk.kotlin.services.kinesisvideo.model.SingleMasterConfiguration? = null
/**
* A set of tags (key-value pairs) that you want to associate with this channel.
*/
public var tags: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kinesisvideo.model.CreateSignalingChannelRequest) : this() {
this.channelName = x.channelName
this.channelType = x.channelType
this.singleMasterConfiguration = x.singleMasterConfiguration
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kinesisvideo.model.CreateSignalingChannelRequest = CreateSignalingChannelRequest(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
}
}
}