aws.sdk.kotlin.services.transcribe.model.GetVocabularyResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of transcribe Show documentation
Show all versions of transcribe Show documentation
Amazon Transcribe Service
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.transcribe.model
import aws.smithy.kotlin.runtime.time.Instant
class GetVocabularyResponse private constructor(builder: Builder) {
/**
* The S3 location where the vocabulary is stored. Use this URI to get the contents of
* the vocabulary. The URI is available for a limited time.
*/
val downloadUri: kotlin.String? = builder.downloadUri
/**
* If the VocabularyState field is FAILED, this field contains
* information about why the job failed.
*/
val failureReason: kotlin.String? = builder.failureReason
/**
* The language code of the vocabulary entries.
*/
val languageCode: aws.sdk.kotlin.services.transcribe.model.LanguageCode? = builder.languageCode
/**
* The date and time that the vocabulary was last modified.
*/
val lastModifiedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedTime
/**
* The name of the vocabulary to return.
*/
val vocabularyName: kotlin.String? = builder.vocabularyName
/**
* The processing state of the vocabulary.
*/
val vocabularyState: aws.sdk.kotlin.services.transcribe.model.VocabularyState? = builder.vocabularyState
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.transcribe.model.GetVocabularyResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetVocabularyResponse(")
append("downloadUri=$downloadUri,")
append("failureReason=$failureReason,")
append("languageCode=$languageCode,")
append("lastModifiedTime=$lastModifiedTime,")
append("vocabularyName=$vocabularyName,")
append("vocabularyState=$vocabularyState)")
}
override fun hashCode(): kotlin.Int {
var result = downloadUri?.hashCode() ?: 0
result = 31 * 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 GetVocabularyResponse
if (downloadUri != other.downloadUri) return false
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
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.transcribe.model.GetVocabularyResponse = Builder(this).apply(block).build()
class Builder {
/**
* The S3 location where the vocabulary is stored. Use this URI to get the contents of
* the vocabulary. The URI is available for a limited time.
*/
var downloadUri: kotlin.String? = null
/**
* If the VocabularyState field is FAILED, this field contains
* information about why the job failed.
*/
var failureReason: kotlin.String? = null
/**
* The language code of the vocabulary entries.
*/
var languageCode: aws.sdk.kotlin.services.transcribe.model.LanguageCode? = null
/**
* The date and time that the vocabulary was last modified.
*/
var lastModifiedTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The name of the vocabulary to return.
*/
var vocabularyName: kotlin.String? = null
/**
* The processing state of the vocabulary.
*/
var vocabularyState: aws.sdk.kotlin.services.transcribe.model.VocabularyState? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.transcribe.model.GetVocabularyResponse) : this() {
this.downloadUri = x.downloadUri
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.GetVocabularyResponse = GetVocabularyResponse(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy