commonMain.aws.sdk.kotlin.services.timestreamquery.model.TargetConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of timestreamquery-jvm Show documentation
Show all versions of timestreamquery-jvm Show documentation
The AWS SDK for Kotlin client for Timestream Query
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.timestreamquery.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Configuration used for writing the output of a query.
*/
public class TargetConfiguration private constructor(builder: Builder) {
/**
* Configuration needed to write data into the Timestream database and table.
*/
public val timestreamConfiguration: aws.sdk.kotlin.services.timestreamquery.model.TimestreamConfiguration? = builder.timestreamConfiguration
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.timestreamquery.model.TargetConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TargetConfiguration(")
append("timestreamConfiguration=$timestreamConfiguration")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = timestreamConfiguration?.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 TargetConfiguration
if (timestreamConfiguration != other.timestreamConfiguration) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.timestreamquery.model.TargetConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Configuration needed to write data into the Timestream database and table.
*/
public var timestreamConfiguration: aws.sdk.kotlin.services.timestreamquery.model.TimestreamConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.timestreamquery.model.TargetConfiguration) : this() {
this.timestreamConfiguration = x.timestreamConfiguration
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.timestreamquery.model.TargetConfiguration = TargetConfiguration(this)
/**
* construct an [aws.sdk.kotlin.services.timestreamquery.model.TimestreamConfiguration] inside the given [block]
*/
public fun timestreamConfiguration(block: aws.sdk.kotlin.services.timestreamquery.model.TimestreamConfiguration.Builder.() -> kotlin.Unit) {
this.timestreamConfiguration = aws.sdk.kotlin.services.timestreamquery.model.TimestreamConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}