
commonMain.aws.sdk.kotlin.services.transcribe.model.CreateVocabularyResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.transcribe.model
import aws.smithy.kotlin.runtime.time.Instant
public class CreateVocabularyResponse private constructor(builder: Builder) {
/**
* If `VocabularyState` is `FAILED`, `FailureReason` contains information about why the custom vocabulary request failed. See also: [Common Errors](https://docs.aws.amazon.com/transcribe/latest/APIReference/CommonErrors.html).
*/
public val failureReason: kotlin.String? = builder.failureReason
/**
* The language code you selected for your custom vocabulary.
*/
public val languageCode: aws.sdk.kotlin.services.transcribe.model.LanguageCode? = builder.languageCode
/**
* The date and time you created your custom vocabulary.
*
* Timestamps are in the format `YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC`. For example, `2022-05-04T12:32:58.761000-07:00` represents 12:32 PM UTC-7 on May 4, 2022.
*/
public val lastModifiedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedTime
/**
* The name you chose for your custom vocabulary.
*/
public val vocabularyName: kotlin.String? = builder.vocabularyName
/**
* The processing state of your custom vocabulary. If the state is `READY`, you can use the custom vocabulary in a `StartTranscriptionJob` request.
*/
public val vocabularyState: aws.sdk.kotlin.services.transcribe.model.VocabularyState? = builder.vocabularyState
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.transcribe.model.CreateVocabularyResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateVocabularyResponse(")
append("failureReason=$failureReason,")
append("languageCode=$languageCode,")
append("lastModifiedTime=$lastModifiedTime,")
append("vocabularyName=$vocabularyName,")
append("vocabularyState=$vocabularyState")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = failureReason?.hashCode() ?: 0
result = 31 * result + (languageCode?.hashCode() ?: 0)
result = 31 * result + (lastModifiedTime?.hashCode() ?: 0)
result = 31 * result + (vocabularyName?.hashCode() ?: 0)
result = 31 * result + (vocabularyState?.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 CreateVocabularyResponse
if (failureReason != other.failureReason) return false
if (languageCode != other.languageCode) return false
if (lastModifiedTime != other.lastModifiedTime) return false
if (vocabularyName != other.vocabularyName) return false
if (vocabularyState != other.vocabularyState) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.transcribe.model.CreateVocabularyResponse = Builder(this).apply(block).build()
public class Builder {
/**
* If `VocabularyState` is `FAILED`, `FailureReason` contains information about why the custom vocabulary request failed. See also: [Common Errors](https://docs.aws.amazon.com/transcribe/latest/APIReference/CommonErrors.html).
*/
public var failureReason: kotlin.String? = null
/**
* The language code you selected for your custom vocabulary.
*/
public var languageCode: aws.sdk.kotlin.services.transcribe.model.LanguageCode? = null
/**
* The date and time you created your custom vocabulary.
*
* Timestamps are in the format `YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC`. For example, `2022-05-04T12:32:58.761000-07:00` represents 12:32 PM UTC-7 on May 4, 2022.
*/
public var lastModifiedTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The name you chose for your custom vocabulary.
*/
public var vocabularyName: kotlin.String? = null
/**
* The processing state of your custom vocabulary. If the state is `READY`, you can use the custom vocabulary in a `StartTranscriptionJob` request.
*/
public var vocabularyState: aws.sdk.kotlin.services.transcribe.model.VocabularyState? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.transcribe.model.CreateVocabularyResponse) : this() {
this.failureReason = x.failureReason
this.languageCode = x.languageCode
this.lastModifiedTime = x.lastModifiedTime
this.vocabularyName = x.vocabularyName
this.vocabularyState = x.vocabularyState
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.transcribe.model.CreateVocabularyResponse = CreateVocabularyResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy