commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.model.CreateMediaStreamPipelineRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chimesdkmediapipelines-jvm Show documentation
Show all versions of chimesdkmediapipelines-jvm Show documentation
The AWS SDK for Kotlin client for Chime SDK Media Pipelines
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.chimesdkmediapipelines.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateMediaStreamPipelineRequest private constructor(builder: Builder) {
/**
* The token assigned to the client making the request.
*/
public val clientRequestToken: kotlin.String? = builder.clientRequestToken
/**
* The data sink for the media pipeline.
*/
public val sinks: List? = builder.sinks
/**
* The data sources for the media pipeline.
*/
public val sources: List? = builder.sources
/**
* The tags assigned to the media pipeline.
*/
public val tags: List? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.chimesdkmediapipelines.model.CreateMediaStreamPipelineRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateMediaStreamPipelineRequest(")
append("clientRequestToken=*** Sensitive Data Redacted ***,")
append("sinks=$sinks,")
append("sources=$sources,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientRequestToken?.hashCode() ?: 0
result = 31 * result + (sinks?.hashCode() ?: 0)
result = 31 * result + (sources?.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 CreateMediaStreamPipelineRequest
if (clientRequestToken != other.clientRequestToken) return false
if (sinks != other.sinks) return false
if (sources != other.sources) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.chimesdkmediapipelines.model.CreateMediaStreamPipelineRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The token assigned to the client making the request.
*/
public var clientRequestToken: kotlin.String? = null
/**
* The data sink for the media pipeline.
*/
public var sinks: List? = null
/**
* The data sources for the media pipeline.
*/
public var sources: List? = null
/**
* The tags assigned to the media pipeline.
*/
public var tags: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.chimesdkmediapipelines.model.CreateMediaStreamPipelineRequest) : this() {
this.clientRequestToken = x.clientRequestToken
this.sinks = x.sinks
this.sources = x.sources
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.chimesdkmediapipelines.model.CreateMediaStreamPipelineRequest = CreateMediaStreamPipelineRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}