
commonMain.aws.sdk.kotlin.services.kinesisvideo.model.GetSignalingChannelEndpointRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kinesisvideo.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetSignalingChannelEndpointRequest private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the signalling channel for which you want to get an endpoint.
*/
public val channelArn: kotlin.String? = builder.channelArn
/**
* A structure containing the endpoint configuration for the `SINGLE_MASTER` channel type.
*/
public val singleMasterChannelEndpointConfiguration: aws.sdk.kotlin.services.kinesisvideo.model.SingleMasterChannelEndpointConfiguration? = builder.singleMasterChannelEndpointConfiguration
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kinesisvideo.model.GetSignalingChannelEndpointRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetSignalingChannelEndpointRequest(")
append("channelArn=$channelArn,")
append("singleMasterChannelEndpointConfiguration=$singleMasterChannelEndpointConfiguration")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = channelArn?.hashCode() ?: 0
result = 31 * result + (singleMasterChannelEndpointConfiguration?.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 GetSignalingChannelEndpointRequest
if (channelArn != other.channelArn) return false
if (singleMasterChannelEndpointConfiguration != other.singleMasterChannelEndpointConfiguration) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kinesisvideo.model.GetSignalingChannelEndpointRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the signalling channel for which you want to get an endpoint.
*/
public var channelArn: kotlin.String? = null
/**
* A structure containing the endpoint configuration for the `SINGLE_MASTER` channel type.
*/
public var singleMasterChannelEndpointConfiguration: aws.sdk.kotlin.services.kinesisvideo.model.SingleMasterChannelEndpointConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kinesisvideo.model.GetSignalingChannelEndpointRequest) : this() {
this.channelArn = x.channelArn
this.singleMasterChannelEndpointConfiguration = x.singleMasterChannelEndpointConfiguration
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kinesisvideo.model.GetSignalingChannelEndpointRequest = GetSignalingChannelEndpointRequest(this)
/**
* construct an [aws.sdk.kotlin.services.kinesisvideo.model.SingleMasterChannelEndpointConfiguration] inside the given [block]
*/
public fun singleMasterChannelEndpointConfiguration(block: aws.sdk.kotlin.services.kinesisvideo.model.SingleMasterChannelEndpointConfiguration.Builder.() -> kotlin.Unit) {
this.singleMasterChannelEndpointConfiguration = aws.sdk.kotlin.services.kinesisvideo.model.SingleMasterChannelEndpointConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy