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