commonMain.aws.sdk.kotlin.services.chimesdkmeetings.model.StartMeetingTranscriptionRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chimesdkmeetings-jvm Show documentation
Show all versions of chimesdkmeetings-jvm Show documentation
The AWS SDK for Kotlin client for Chime SDK Meetings
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.chimesdkmeetings.model
import aws.smithy.kotlin.runtime.SdkDsl
public class StartMeetingTranscriptionRequest private constructor(builder: Builder) {
/**
* The unique ID of the meeting being transcribed.
*/
public val meetingId: kotlin.String? = builder.meetingId
/**
* The configuration for the current transcription operation. Must contain `EngineTranscribeSettings` or `EngineTranscribeMedicalSettings`.
*/
public val transcriptionConfiguration: aws.sdk.kotlin.services.chimesdkmeetings.model.TranscriptionConfiguration? = builder.transcriptionConfiguration
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.chimesdkmeetings.model.StartMeetingTranscriptionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartMeetingTranscriptionRequest(")
append("meetingId=$meetingId,")
append("transcriptionConfiguration=$transcriptionConfiguration")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = meetingId?.hashCode() ?: 0
result = 31 * result + (transcriptionConfiguration?.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 StartMeetingTranscriptionRequest
if (meetingId != other.meetingId) return false
if (transcriptionConfiguration != other.transcriptionConfiguration) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.chimesdkmeetings.model.StartMeetingTranscriptionRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The unique ID of the meeting being transcribed.
*/
public var meetingId: kotlin.String? = null
/**
* The configuration for the current transcription operation. Must contain `EngineTranscribeSettings` or `EngineTranscribeMedicalSettings`.
*/
public var transcriptionConfiguration: aws.sdk.kotlin.services.chimesdkmeetings.model.TranscriptionConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.chimesdkmeetings.model.StartMeetingTranscriptionRequest) : this() {
this.meetingId = x.meetingId
this.transcriptionConfiguration = x.transcriptionConfiguration
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.chimesdkmeetings.model.StartMeetingTranscriptionRequest = StartMeetingTranscriptionRequest(this)
/**
* construct an [aws.sdk.kotlin.services.chimesdkmeetings.model.TranscriptionConfiguration] inside the given [block]
*/
public fun transcriptionConfiguration(block: aws.sdk.kotlin.services.chimesdkmeetings.model.TranscriptionConfiguration.Builder.() -> kotlin.Unit) {
this.transcriptionConfiguration = aws.sdk.kotlin.services.chimesdkmeetings.model.TranscriptionConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}