
commonMain.aws.sdk.kotlin.services.ivs.model.StopStreamRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ivs.model
import aws.smithy.kotlin.runtime.SdkDsl
public class StopStreamRequest private constructor(builder: Builder) {
/**
* ARN of the channel for which the stream is to be stopped.
*/
public val channelArn: kotlin.String = requireNotNull(builder.channelArn) { "A non-null value must be provided for channelArn" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ivs.model.StopStreamRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StopStreamRequest(")
append("channelArn=$channelArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = channelArn.hashCode()
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 StopStreamRequest
if (channelArn != other.channelArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ivs.model.StopStreamRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* ARN of the channel for which the stream is to be stopped.
*/
public var channelArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ivs.model.StopStreamRequest) : this() {
this.channelArn = x.channelArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ivs.model.StopStreamRequest = StopStreamRequest(this)
internal fun correctErrors(): Builder {
if (channelArn == null) channelArn = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy