commonMain.aws.sdk.kotlin.services.timestreamwrite.model.CreateBatchLoadTaskRequest.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 CreateBatchLoadTaskRequest private constructor(builder: Builder) {
/**
*
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
*
*/
public val dataModelConfiguration: aws.sdk.kotlin.services.timestreamwrite.model.DataModelConfiguration? = builder.dataModelConfiguration
/**
* Defines configuration details about the data source for a batch load task.
*/
public val dataSourceConfiguration: aws.sdk.kotlin.services.timestreamwrite.model.DataSourceConfiguration? = builder.dataSourceConfiguration
/**
*
*/
public val recordVersion: kotlin.Long? = builder.recordVersion
/**
* Report configuration for a batch load task. This contains details about where error reports are stored.
*/
public val reportConfiguration: aws.sdk.kotlin.services.timestreamwrite.model.ReportConfiguration? = builder.reportConfiguration
/**
* Target Timestream database for a batch load task.
*/
public val targetDatabaseName: kotlin.String? = builder.targetDatabaseName
/**
* Target Timestream table for a batch load task.
*/
public val targetTableName: kotlin.String? = builder.targetTableName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.timestreamwrite.model.CreateBatchLoadTaskRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateBatchLoadTaskRequest(")
append("clientToken=*** Sensitive Data Redacted ***,")
append("dataModelConfiguration=$dataModelConfiguration,")
append("dataSourceConfiguration=$dataSourceConfiguration,")
append("recordVersion=$recordVersion,")
append("reportConfiguration=$reportConfiguration,")
append("targetDatabaseName=$targetDatabaseName,")
append("targetTableName=$targetTableName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientToken?.hashCode() ?: 0
result = 31 * result + (dataModelConfiguration?.hashCode() ?: 0)
result = 31 * result + (dataSourceConfiguration?.hashCode() ?: 0)
result = 31 * result + (recordVersion?.hashCode() ?: 0)
result = 31 * result + (reportConfiguration?.hashCode() ?: 0)
result = 31 * result + (targetDatabaseName?.hashCode() ?: 0)
result = 31 * result + (targetTableName?.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 CreateBatchLoadTaskRequest
if (clientToken != other.clientToken) return false
if (dataModelConfiguration != other.dataModelConfiguration) return false
if (dataSourceConfiguration != other.dataSourceConfiguration) return false
if (recordVersion != other.recordVersion) return false
if (reportConfiguration != other.reportConfiguration) return false
if (targetDatabaseName != other.targetDatabaseName) return false
if (targetTableName != other.targetTableName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.timestreamwrite.model.CreateBatchLoadTaskRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
*
*/
public var clientToken: kotlin.String? = null
/**
*
*/
public var dataModelConfiguration: aws.sdk.kotlin.services.timestreamwrite.model.DataModelConfiguration? = null
/**
* Defines configuration details about the data source for a batch load task.
*/
public var dataSourceConfiguration: aws.sdk.kotlin.services.timestreamwrite.model.DataSourceConfiguration? = null
/**
*
*/
public var recordVersion: kotlin.Long? = null
/**
* Report configuration for a batch load task. This contains details about where error reports are stored.
*/
public var reportConfiguration: aws.sdk.kotlin.services.timestreamwrite.model.ReportConfiguration? = null
/**
* Target Timestream database for a batch load task.
*/
public var targetDatabaseName: kotlin.String? = null
/**
* Target Timestream table for a batch load task.
*/
public var targetTableName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.timestreamwrite.model.CreateBatchLoadTaskRequest) : this() {
this.clientToken = x.clientToken
this.dataModelConfiguration = x.dataModelConfiguration
this.dataSourceConfiguration = x.dataSourceConfiguration
this.recordVersion = x.recordVersion
this.reportConfiguration = x.reportConfiguration
this.targetDatabaseName = x.targetDatabaseName
this.targetTableName = x.targetTableName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.timestreamwrite.model.CreateBatchLoadTaskRequest = CreateBatchLoadTaskRequest(this)
/**
* construct an [aws.sdk.kotlin.services.timestreamwrite.model.DataModelConfiguration] inside the given [block]
*/
public fun dataModelConfiguration(block: aws.sdk.kotlin.services.timestreamwrite.model.DataModelConfiguration.Builder.() -> kotlin.Unit) {
this.dataModelConfiguration = aws.sdk.kotlin.services.timestreamwrite.model.DataModelConfiguration.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.timestreamwrite.model.DataSourceConfiguration] inside the given [block]
*/
public fun dataSourceConfiguration(block: aws.sdk.kotlin.services.timestreamwrite.model.DataSourceConfiguration.Builder.() -> kotlin.Unit) {
this.dataSourceConfiguration = aws.sdk.kotlin.services.timestreamwrite.model.DataSourceConfiguration.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.timestreamwrite.model.ReportConfiguration] inside the given [block]
*/
public fun reportConfiguration(block: aws.sdk.kotlin.services.timestreamwrite.model.ReportConfiguration.Builder.() -> kotlin.Unit) {
this.reportConfiguration = aws.sdk.kotlin.services.timestreamwrite.model.ReportConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}