commonMain.aws.sdk.kotlin.services.polly.model.GetLexiconResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of polly-jvm Show documentation
Show all versions of polly-jvm Show documentation
The AWS SDK for Kotlin client for Polly
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.polly.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetLexiconResponse private constructor(builder: Builder) {
/**
* Lexicon object that provides name and the string content of the lexicon.
*/
public val lexicon: aws.sdk.kotlin.services.polly.model.Lexicon? = builder.lexicon
/**
* Metadata of the lexicon, including phonetic alphabetic used, language code, lexicon ARN, number of lexemes defined in the lexicon, and size of lexicon in bytes.
*/
public val lexiconAttributes: aws.sdk.kotlin.services.polly.model.LexiconAttributes? = builder.lexiconAttributes
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.polly.model.GetLexiconResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetLexiconResponse(")
append("lexicon=$lexicon,")
append("lexiconAttributes=$lexiconAttributes")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = lexicon?.hashCode() ?: 0
result = 31 * result + (lexiconAttributes?.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 GetLexiconResponse
if (lexicon != other.lexicon) return false
if (lexiconAttributes != other.lexiconAttributes) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.polly.model.GetLexiconResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Lexicon object that provides name and the string content of the lexicon.
*/
public var lexicon: aws.sdk.kotlin.services.polly.model.Lexicon? = null
/**
* Metadata of the lexicon, including phonetic alphabetic used, language code, lexicon ARN, number of lexemes defined in the lexicon, and size of lexicon in bytes.
*/
public var lexiconAttributes: aws.sdk.kotlin.services.polly.model.LexiconAttributes? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.polly.model.GetLexiconResponse) : this() {
this.lexicon = x.lexicon
this.lexiconAttributes = x.lexiconAttributes
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.polly.model.GetLexiconResponse = GetLexiconResponse(this)
/**
* construct an [aws.sdk.kotlin.services.polly.model.Lexicon] inside the given [block]
*/
public fun lexicon(block: aws.sdk.kotlin.services.polly.model.Lexicon.Builder.() -> kotlin.Unit) {
this.lexicon = aws.sdk.kotlin.services.polly.model.Lexicon.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.polly.model.LexiconAttributes] inside the given [block]
*/
public fun lexiconAttributes(block: aws.sdk.kotlin.services.polly.model.LexiconAttributes.Builder.() -> kotlin.Unit) {
this.lexiconAttributes = aws.sdk.kotlin.services.polly.model.LexiconAttributes.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}