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