commonMain.aws.sdk.kotlin.services.qldb.model.ValueHolder.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qldb-jvm Show documentation
Show all versions of qldb-jvm Show documentation
The AWS SDK for Kotlin client for QLDB
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.qldb.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A structure that can contain a value in multiple encoding formats.
*/
public class ValueHolder private constructor(builder: Builder) {
/**
* An Amazon Ion plaintext value contained in a `ValueHolder` structure.
*/
public val ionText: kotlin.String? = builder.ionText
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.qldb.model.ValueHolder = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ValueHolder(")
append("*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = ionText?.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 ValueHolder
if (ionText != other.ionText) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qldb.model.ValueHolder = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An Amazon Ion plaintext value contained in a `ValueHolder` structure.
*/
public var ionText: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.qldb.model.ValueHolder) : this() {
this.ionText = x.ionText
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qldb.model.ValueHolder = ValueHolder(this)
internal fun correctErrors(): Builder {
return this
}
}
}