commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.model.SpeakerSearchTask.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
import aws.smithy.kotlin.runtime.time.Instant
/**
* A representation of an asynchronous request to perform speaker search analysis on a media insights pipeline.
*/
public class SpeakerSearchTask private constructor(builder: Builder) {
/**
* The time at which a speaker search task was created.
*/
public val createdTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTimestamp
/**
* The speaker search task ID.
*/
public val speakerSearchTaskId: kotlin.String? = builder.speakerSearchTaskId
/**
* The status of the speaker search task.
*/
public val speakerSearchTaskStatus: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaPipelineTaskStatus? = builder.speakerSearchTaskStatus
/**
* The time at which a speaker search task was updated.
*/
public val updatedTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedTimestamp
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.chimesdkmediapipelines.model.SpeakerSearchTask = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SpeakerSearchTask(")
append("createdTimestamp=$createdTimestamp,")
append("speakerSearchTaskId=$speakerSearchTaskId,")
append("speakerSearchTaskStatus=$speakerSearchTaskStatus,")
append("updatedTimestamp=$updatedTimestamp")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdTimestamp?.hashCode() ?: 0
result = 31 * result + (speakerSearchTaskId?.hashCode() ?: 0)
result = 31 * result + (speakerSearchTaskStatus?.hashCode() ?: 0)
result = 31 * result + (updatedTimestamp?.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 SpeakerSearchTask
if (createdTimestamp != other.createdTimestamp) return false
if (speakerSearchTaskId != other.speakerSearchTaskId) return false
if (speakerSearchTaskStatus != other.speakerSearchTaskStatus) return false
if (updatedTimestamp != other.updatedTimestamp) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.chimesdkmediapipelines.model.SpeakerSearchTask = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The time at which a speaker search task was created.
*/
public var createdTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The speaker search task ID.
*/
public var speakerSearchTaskId: kotlin.String? = null
/**
* The status of the speaker search task.
*/
public var speakerSearchTaskStatus: aws.sdk.kotlin.services.chimesdkmediapipelines.model.MediaPipelineTaskStatus? = null
/**
* The time at which a speaker search task was updated.
*/
public var updatedTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.chimesdkmediapipelines.model.SpeakerSearchTask) : this() {
this.createdTimestamp = x.createdTimestamp
this.speakerSearchTaskId = x.speakerSearchTaskId
this.speakerSearchTaskStatus = x.speakerSearchTaskStatus
this.updatedTimestamp = x.updatedTimestamp
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.chimesdkmediapipelines.model.SpeakerSearchTask = SpeakerSearchTask(this)
internal fun correctErrors(): Builder {
return this
}
}
}