commonMain.aws.sdk.kotlin.services.datazone.model.InExpression.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datazone-jvm Show documentation
Show all versions of datazone-jvm Show documentation
The AWS SDK for Kotlin client for DataZone
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.datazone.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Specifies whether values are in the expression.
*/
public class InExpression private constructor(builder: Builder) {
/**
* The name of the column.
*/
public val columnName: kotlin.String = requireNotNull(builder.columnName) { "A non-null value must be provided for columnName" }
/**
* The values that might be in the expression.
*/
public val values: List = requireNotNull(builder.values) { "A non-null value must be provided for values" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datazone.model.InExpression = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InExpression(")
append("columnName=$columnName,")
append("values=$values")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = columnName.hashCode()
result = 31 * result + (values.hashCode())
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 InExpression
if (columnName != other.columnName) return false
if (values != other.values) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datazone.model.InExpression = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the column.
*/
public var columnName: kotlin.String? = null
/**
* The values that might be in the expression.
*/
public var values: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datazone.model.InExpression) : this() {
this.columnName = x.columnName
this.values = x.values
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datazone.model.InExpression = InExpression(this)
internal fun correctErrors(): Builder {
if (columnName == null) columnName = ""
if (values == null) values = emptyList()
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy