commonMain.aws.sdk.kotlin.services.connect.model.SearchVocabulariesRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connect.model
public class SearchVocabulariesRequest private constructor(builder: Builder) {
/**
* The identifier of the Amazon Connect instance. You can [find the instance ID](https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html) in the Amazon Resource Name (ARN) of the instance.
*/
public val instanceId: kotlin.String? = requireNotNull(builder.instanceId) { "A non-null value must be provided for instanceId" }
/**
* The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see [What is Amazon Transcribe?](https://docs.aws.amazon.com/transcribe/latest/dg/transcribe-whatis.html)
*/
public val languageCode: aws.sdk.kotlin.services.connect.model.VocabularyLanguageCode? = builder.languageCode
/**
* The maximum number of results to return per page.
*/
public val maxResults: kotlin.Int = builder.maxResults
/**
* The starting pattern of the name of the vocabulary.
*/
public val nameStartsWith: kotlin.String? = builder.nameStartsWith
/**
* The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* The current state of the custom vocabulary.
*/
public val state: aws.sdk.kotlin.services.connect.model.VocabularyState? = builder.state
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connect.model.SearchVocabulariesRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SearchVocabulariesRequest(")
append("instanceId=$instanceId,")
append("languageCode=$languageCode,")
append("maxResults=$maxResults,")
append("nameStartsWith=$nameStartsWith,")
append("nextToken=$nextToken,")
append("state=$state")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = instanceId?.hashCode() ?: 0
result = 31 * result + (languageCode?.hashCode() ?: 0)
result = 31 * result + (maxResults)
result = 31 * result + (nameStartsWith?.hashCode() ?: 0)
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (state?.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 SearchVocabulariesRequest
if (instanceId != other.instanceId) return false
if (languageCode != other.languageCode) return false
if (maxResults != other.maxResults) return false
if (nameStartsWith != other.nameStartsWith) return false
if (nextToken != other.nextToken) return false
if (state != other.state) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connect.model.SearchVocabulariesRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The identifier of the Amazon Connect instance. You can [find the instance ID](https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html) in the Amazon Resource Name (ARN) of the instance.
*/
public var instanceId: kotlin.String? = null
/**
* The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see [What is Amazon Transcribe?](https://docs.aws.amazon.com/transcribe/latest/dg/transcribe-whatis.html)
*/
public var languageCode: aws.sdk.kotlin.services.connect.model.VocabularyLanguageCode? = null
/**
* The maximum number of results to return per page.
*/
public var maxResults: kotlin.Int = 0
/**
* The starting pattern of the name of the vocabulary.
*/
public var nameStartsWith: kotlin.String? = null
/**
* The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
*/
public var nextToken: kotlin.String? = null
/**
* The current state of the custom vocabulary.
*/
public var state: aws.sdk.kotlin.services.connect.model.VocabularyState? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connect.model.SearchVocabulariesRequest) : this() {
this.instanceId = x.instanceId
this.languageCode = x.languageCode
this.maxResults = x.maxResults
this.nameStartsWith = x.nameStartsWith
this.nextToken = x.nextToken
this.state = x.state
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connect.model.SearchVocabulariesRequest = SearchVocabulariesRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy