commonMain.aws.sdk.kotlin.services.timestreamwrite.model.DataModelConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of timestreamwrite-jvm Show documentation
Show all versions of timestreamwrite-jvm Show documentation
The AWS SDK for Kotlin client for Timestream Write
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.timestreamwrite.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
*
*/
public class DataModelConfiguration private constructor(builder: Builder) {
/**
*
*/
public val dataModel: aws.sdk.kotlin.services.timestreamwrite.model.DataModel? = builder.dataModel
/**
*
*/
public val dataModelS3Configuration: aws.sdk.kotlin.services.timestreamwrite.model.DataModelS3Configuration? = builder.dataModelS3Configuration
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.timestreamwrite.model.DataModelConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DataModelConfiguration(")
append("dataModel=$dataModel,")
append("dataModelS3Configuration=$dataModelS3Configuration")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dataModel?.hashCode() ?: 0
result = 31 * result + (dataModelS3Configuration?.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 DataModelConfiguration
if (dataModel != other.dataModel) return false
if (dataModelS3Configuration != other.dataModelS3Configuration) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.timestreamwrite.model.DataModelConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
*
*/
public var dataModel: aws.sdk.kotlin.services.timestreamwrite.model.DataModel? = null
/**
*
*/
public var dataModelS3Configuration: aws.sdk.kotlin.services.timestreamwrite.model.DataModelS3Configuration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.timestreamwrite.model.DataModelConfiguration) : this() {
this.dataModel = x.dataModel
this.dataModelS3Configuration = x.dataModelS3Configuration
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.timestreamwrite.model.DataModelConfiguration = DataModelConfiguration(this)
/**
* construct an [aws.sdk.kotlin.services.timestreamwrite.model.DataModel] inside the given [block]
*/
public fun dataModel(block: aws.sdk.kotlin.services.timestreamwrite.model.DataModel.Builder.() -> kotlin.Unit) {
this.dataModel = aws.sdk.kotlin.services.timestreamwrite.model.DataModel.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.timestreamwrite.model.DataModelS3Configuration] inside the given [block]
*/
public fun dataModelS3Configuration(block: aws.sdk.kotlin.services.timestreamwrite.model.DataModelS3Configuration.Builder.() -> kotlin.Unit) {
this.dataModelS3Configuration = aws.sdk.kotlin.services.timestreamwrite.model.DataModelS3Configuration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}