commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaPipeline.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
/**
* A pipeline consisting of a media capture, media concatenation, or live-streaming pipeline.
*/
public class MediaPipeline private constructor(builder: Builder) {
/**
* A pipeline that enables users to capture audio and video.
*/
public val mediaCapturePipeline: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaCapturePipeline? = builder.mediaCapturePipeline
/**
* The media concatenation pipeline in a media pipeline.
*/
public val mediaConcatenationPipeline: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaConcatenationPipeline? = builder.mediaConcatenationPipeline
/**
* The media insights pipeline of a media pipeline.
*/
public val mediaInsightsPipeline: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaInsightsPipeline? = builder.mediaInsightsPipeline
/**
* The connector pipeline of the media pipeline.
*/
public val mediaLiveConnectorPipeline: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaLiveConnectorPipeline? = builder.mediaLiveConnectorPipeline
/**
* Designates a media pipeline as a media stream pipeline.
*/
public val mediaStreamPipeline: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaStreamPipeline? = builder.mediaStreamPipeline
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaPipeline = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MediaPipeline(")
append("mediaCapturePipeline=$mediaCapturePipeline,")
append("mediaConcatenationPipeline=$mediaConcatenationPipeline,")
append("mediaInsightsPipeline=$mediaInsightsPipeline,")
append("mediaLiveConnectorPipeline=$mediaLiveConnectorPipeline,")
append("mediaStreamPipeline=$mediaStreamPipeline")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = mediaCapturePipeline?.hashCode() ?: 0
result = 31 * result + (mediaConcatenationPipeline?.hashCode() ?: 0)
result = 31 * result + (mediaInsightsPipeline?.hashCode() ?: 0)
result = 31 * result + (mediaLiveConnectorPipeline?.hashCode() ?: 0)
result = 31 * result + (mediaStreamPipeline?.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 MediaPipeline
if (mediaCapturePipeline != other.mediaCapturePipeline) return false
if (mediaConcatenationPipeline != other.mediaConcatenationPipeline) return false
if (mediaInsightsPipeline != other.mediaInsightsPipeline) return false
if (mediaLiveConnectorPipeline != other.mediaLiveConnectorPipeline) return false
if (mediaStreamPipeline != other.mediaStreamPipeline) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaPipeline = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A pipeline that enables users to capture audio and video.
*/
public var mediaCapturePipeline: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaCapturePipeline? = null
/**
* The media concatenation pipeline in a media pipeline.
*/
public var mediaConcatenationPipeline: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaConcatenationPipeline? = null
/**
* The media insights pipeline of a media pipeline.
*/
public var mediaInsightsPipeline: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaInsightsPipeline? = null
/**
* The connector pipeline of the media pipeline.
*/
public var mediaLiveConnectorPipeline: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaLiveConnectorPipeline? = null
/**
* Designates a media pipeline as a media stream pipeline.
*/
public var mediaStreamPipeline: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaStreamPipeline? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaPipeline) : this() {
this.mediaCapturePipeline = x.mediaCapturePipeline
this.mediaConcatenationPipeline = x.mediaConcatenationPipeline
this.mediaInsightsPipeline = x.mediaInsightsPipeline
this.mediaLiveConnectorPipeline = x.mediaLiveConnectorPipeline
this.mediaStreamPipeline = x.mediaStreamPipeline
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaPipeline = MediaPipeline(this)
/**
* construct an [aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaCapturePipeline] inside the given [block]
*/
public fun mediaCapturePipeline(block: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaCapturePipeline.Builder.() -> kotlin.Unit) {
this.mediaCapturePipeline = aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaCapturePipeline.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaConcatenationPipeline] inside the given [block]
*/
public fun mediaConcatenationPipeline(block: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaConcatenationPipeline.Builder.() -> kotlin.Unit) {
this.mediaConcatenationPipeline = aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaConcatenationPipeline.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaInsightsPipeline] inside the given [block]
*/
public fun mediaInsightsPipeline(block: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaInsightsPipeline.Builder.() -> kotlin.Unit) {
this.mediaInsightsPipeline = aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaInsightsPipeline.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaLiveConnectorPipeline] inside the given [block]
*/
public fun mediaLiveConnectorPipeline(block: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaLiveConnectorPipeline.Builder.() -> kotlin.Unit) {
this.mediaLiveConnectorPipeline = aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaLiveConnectorPipeline.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaStreamPipeline] inside the given [block]
*/
public fun mediaStreamPipeline(block: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaStreamPipeline.Builder.() -> kotlin.Unit) {
this.mediaStreamPipeline = aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaStreamPipeline.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}