commonMain.aws.sdk.kotlin.services.cloudsearch.model.DefineExpressionRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudsearch-jvm Show documentation
Show all versions of cloudsearch-jvm Show documentation
The AWS SDK for Kotlin client for CloudSearch
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudsearch.model
/**
* Container for the parameters to the `DefineExpression` operation. Specifies the name of the domain you want to update and the expression you want to configure.
*/
public class DefineExpressionRequest private constructor(builder: Builder) {
/**
* A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
*/
public val domainName: kotlin.String? = builder.domainName
/**
* A named expression that can be evaluated at search time. Can be used to sort the search results, define other expressions, or return computed information in the search results.
*/
public val expression: aws.sdk.kotlin.services.cloudsearch.model.Expression? = builder.expression
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudsearch.model.DefineExpressionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DefineExpressionRequest(")
append("domainName=$domainName,")
append("expression=$expression")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = domainName?.hashCode() ?: 0
result = 31 * result + (expression?.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 DefineExpressionRequest
if (domainName != other.domainName) return false
if (expression != other.expression) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudsearch.model.DefineExpressionRequest = Builder(this).apply(block).build()
public class Builder {
/**
* A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).
*/
public var domainName: kotlin.String? = null
/**
* A named expression that can be evaluated at search time. Can be used to sort the search results, define other expressions, or return computed information in the search results.
*/
public var expression: aws.sdk.kotlin.services.cloudsearch.model.Expression? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cloudsearch.model.DefineExpressionRequest) : this() {
this.domainName = x.domainName
this.expression = x.expression
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cloudsearch.model.DefineExpressionRequest = DefineExpressionRequest(this)
/**
* construct an [aws.sdk.kotlin.services.cloudsearch.model.Expression] inside the given [block]
*/
public fun expression(block: aws.sdk.kotlin.services.cloudsearch.model.Expression.Builder.() -> kotlin.Unit) {
this.expression = aws.sdk.kotlin.services.cloudsearch.model.Expression.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy