commonMain.aws.sdk.kotlin.services.timestreamwrite.model.ReportConfiguration.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
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.timestreamwrite.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Report configuration for a batch load task. This contains details about where error reports are stored.
*/
public class ReportConfiguration private constructor(builder: Builder) {
/**
* Configuration of an S3 location to write error reports and events for a batch load.
*/
public val reportS3Configuration: aws.sdk.kotlin.services.timestreamwrite.model.ReportS3Configuration? = builder.reportS3Configuration
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.timestreamwrite.model.ReportConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ReportConfiguration(")
append("reportS3Configuration=$reportS3Configuration")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = reportS3Configuration?.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 ReportConfiguration
if (reportS3Configuration != other.reportS3Configuration) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.timestreamwrite.model.ReportConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Configuration of an S3 location to write error reports and events for a batch load.
*/
public var reportS3Configuration: aws.sdk.kotlin.services.timestreamwrite.model.ReportS3Configuration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.timestreamwrite.model.ReportConfiguration) : this() {
this.reportS3Configuration = x.reportS3Configuration
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.timestreamwrite.model.ReportConfiguration = ReportConfiguration(this)
/**
* construct an [aws.sdk.kotlin.services.timestreamwrite.model.ReportS3Configuration] inside the given [block]
*/
public fun reportS3Configuration(block: aws.sdk.kotlin.services.timestreamwrite.model.ReportS3Configuration.Builder.() -> kotlin.Unit) {
this.reportS3Configuration = aws.sdk.kotlin.services.timestreamwrite.model.ReportS3Configuration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}