commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.model.GetMediaPipelineResponse.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
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.chimesdkmediapipelines.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetMediaPipelineResponse private constructor(builder: Builder) {
/**
* The media pipeline object.
*/
public val mediaPipeline: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaPipeline? = builder.mediaPipeline
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.chimesdkmediapipelines.model.GetMediaPipelineResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetMediaPipelineResponse(")
append("mediaPipeline=$mediaPipeline")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = mediaPipeline?.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 GetMediaPipelineResponse
if (mediaPipeline != other.mediaPipeline) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.chimesdkmediapipelines.model.GetMediaPipelineResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The media pipeline object.
*/
public var mediaPipeline: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaPipeline? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.chimesdkmediapipelines.model.GetMediaPipelineResponse) : this() {
this.mediaPipeline = x.mediaPipeline
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.chimesdkmediapipelines.model.GetMediaPipelineResponse = GetMediaPipelineResponse(this)
/**
* construct an [aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaPipeline] inside the given [block]
*/
public fun mediaPipeline(block: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaPipeline.Builder.() -> kotlin.Unit) {
this.mediaPipeline = aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaPipeline.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}