commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.model.StartSpeakerSearchTaskRequest.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 StartSpeakerSearchTaskRequest private constructor(builder: Builder) {
/**
* The unique identifier for the client request. Use a different token for different speaker search tasks.
*/
public val clientRequestToken: kotlin.String? = builder.clientRequestToken
/**
* The unique identifier of the resource to be updated. Valid values include the ID and ARN of the media insights pipeline.
*/
public val identifier: kotlin.String? = builder.identifier
/**
* The task configuration for the Kinesis video stream source of the media insights pipeline.
*/
public val kinesisVideoStreamSourceTaskConfiguration: aws.sdk.kotlin.services.chimesdkmediapipelines.model.KinesisVideoStreamSourceTaskConfiguration? = builder.kinesisVideoStreamSourceTaskConfiguration
/**
* The ARN of the voice profile domain that will store the voice profile.
*/
public val voiceProfileDomainArn: kotlin.String? = builder.voiceProfileDomainArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.chimesdkmediapipelines.model.StartSpeakerSearchTaskRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartSpeakerSearchTaskRequest(")
append("clientRequestToken=*** Sensitive Data Redacted ***,")
append("identifier=$identifier,")
append("kinesisVideoStreamSourceTaskConfiguration=$kinesisVideoStreamSourceTaskConfiguration,")
append("voiceProfileDomainArn=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientRequestToken?.hashCode() ?: 0
result = 31 * result + (identifier?.hashCode() ?: 0)
result = 31 * result + (kinesisVideoStreamSourceTaskConfiguration?.hashCode() ?: 0)
result = 31 * result + (voiceProfileDomainArn?.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 StartSpeakerSearchTaskRequest
if (clientRequestToken != other.clientRequestToken) return false
if (identifier != other.identifier) return false
if (kinesisVideoStreamSourceTaskConfiguration != other.kinesisVideoStreamSourceTaskConfiguration) return false
if (voiceProfileDomainArn != other.voiceProfileDomainArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.chimesdkmediapipelines.model.StartSpeakerSearchTaskRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The unique identifier for the client request. Use a different token for different speaker search tasks.
*/
public var clientRequestToken: kotlin.String? = null
/**
* The unique identifier of the resource to be updated. Valid values include the ID and ARN of the media insights pipeline.
*/
public var identifier: kotlin.String? = null
/**
* The task configuration for the Kinesis video stream source of the media insights pipeline.
*/
public var kinesisVideoStreamSourceTaskConfiguration: aws.sdk.kotlin.services.chimesdkmediapipelines.model.KinesisVideoStreamSourceTaskConfiguration? = null
/**
* The ARN of the voice profile domain that will store the voice profile.
*/
public var voiceProfileDomainArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.chimesdkmediapipelines.model.StartSpeakerSearchTaskRequest) : this() {
this.clientRequestToken = x.clientRequestToken
this.identifier = x.identifier
this.kinesisVideoStreamSourceTaskConfiguration = x.kinesisVideoStreamSourceTaskConfiguration
this.voiceProfileDomainArn = x.voiceProfileDomainArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.chimesdkmediapipelines.model.StartSpeakerSearchTaskRequest = StartSpeakerSearchTaskRequest(this)
/**
* construct an [aws.sdk.kotlin.services.chimesdkmediapipelines.model.KinesisVideoStreamSourceTaskConfiguration] inside the given [block]
*/
public fun kinesisVideoStreamSourceTaskConfiguration(block: aws.sdk.kotlin.services.chimesdkmediapipelines.model.KinesisVideoStreamSourceTaskConfiguration.Builder.() -> kotlin.Unit) {
this.kinesisVideoStreamSourceTaskConfiguration = aws.sdk.kotlin.services.chimesdkmediapipelines.model.KinesisVideoStreamSourceTaskConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}