
commonMain.aws.sdk.kotlin.services.ivsrealtime.model.StartCompositionRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ivsrealtime.model
import aws.smithy.kotlin.runtime.SdkDsl
public class StartCompositionRequest private constructor(builder: Builder) {
/**
* Array of destination configuration.
*/
public val destinations: List? = builder.destinations
/**
* Idempotency token.
*/
public val idempotencyToken: kotlin.String? = builder.idempotencyToken
/**
* Layout object to configure composition parameters.
*/
public val layout: aws.sdk.kotlin.services.ivsrealtime.model.LayoutConfiguration? = builder.layout
/**
* ARN of the stage to be used for compositing.
*/
public val stageArn: kotlin.String? = builder.stageArn
/**
* Tags attached to the resource. Array of maps, each of the form `string:string (key:value)`. See [Best practices and strategies](https://docs.aws.amazon.com/tag-editor/latest/userguide/best-practices-and-strats.html) in *Tagging AWS Resources and Tag Editor* for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ivsrealtime.model.StartCompositionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartCompositionRequest(")
append("destinations=$destinations,")
append("idempotencyToken=$idempotencyToken,")
append("layout=$layout,")
append("stageArn=$stageArn,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = destinations?.hashCode() ?: 0
result = 31 * result + (idempotencyToken?.hashCode() ?: 0)
result = 31 * result + (layout?.hashCode() ?: 0)
result = 31 * result + (stageArn?.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 StartCompositionRequest
if (destinations != other.destinations) return false
if (idempotencyToken != other.idempotencyToken) return false
if (layout != other.layout) return false
if (stageArn != other.stageArn) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ivsrealtime.model.StartCompositionRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Array of destination configuration.
*/
public var destinations: List? = null
/**
* Idempotency token.
*/
public var idempotencyToken: kotlin.String? = null
/**
* Layout object to configure composition parameters.
*/
public var layout: aws.sdk.kotlin.services.ivsrealtime.model.LayoutConfiguration? = null
/**
* ARN of the stage to be used for compositing.
*/
public var stageArn: kotlin.String? = null
/**
* Tags attached to the resource. Array of maps, each of the form `string:string (key:value)`. See [Best practices and strategies](https://docs.aws.amazon.com/tag-editor/latest/userguide/best-practices-and-strats.html) in *Tagging AWS Resources and Tag Editor* for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ivsrealtime.model.StartCompositionRequest) : this() {
this.destinations = x.destinations
this.idempotencyToken = x.idempotencyToken
this.layout = x.layout
this.stageArn = x.stageArn
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ivsrealtime.model.StartCompositionRequest = StartCompositionRequest(this)
/**
* construct an [aws.sdk.kotlin.services.ivsrealtime.model.LayoutConfiguration] inside the given [block]
*/
public fun layout(block: aws.sdk.kotlin.services.ivsrealtime.model.LayoutConfiguration.Builder.() -> kotlin.Unit) {
this.layout = aws.sdk.kotlin.services.ivsrealtime.model.LayoutConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy