
commonMain.aws.sdk.kotlin.services.kafkaconnect.model.LogDeliveryDescription.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kafkaconnect.model
/**
* The description of the log delivery settings.
*/
public class LogDeliveryDescription private constructor(builder: Builder) {
/**
* The workers can send worker logs to different destination types. This configuration specifies the details of these destinations.
*/
public val workerLogDelivery: aws.sdk.kotlin.services.kafkaconnect.model.WorkerLogDeliveryDescription? = builder.workerLogDelivery
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kafkaconnect.model.LogDeliveryDescription = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LogDeliveryDescription(")
append("workerLogDelivery=$workerLogDelivery")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = workerLogDelivery?.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 LogDeliveryDescription
if (workerLogDelivery != other.workerLogDelivery) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kafkaconnect.model.LogDeliveryDescription = Builder(this).apply(block).build()
public class Builder {
/**
* The workers can send worker logs to different destination types. This configuration specifies the details of these destinations.
*/
public var workerLogDelivery: aws.sdk.kotlin.services.kafkaconnect.model.WorkerLogDeliveryDescription? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kafkaconnect.model.LogDeliveryDescription) : this() {
this.workerLogDelivery = x.workerLogDelivery
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kafkaconnect.model.LogDeliveryDescription = LogDeliveryDescription(this)
/**
* construct an [aws.sdk.kotlin.services.kafkaconnect.model.WorkerLogDeliveryDescription] inside the given [block]
*/
public fun workerLogDelivery(block: aws.sdk.kotlin.services.kafkaconnect.model.WorkerLogDeliveryDescription.Builder.() -> kotlin.Unit) {
this.workerLogDelivery = aws.sdk.kotlin.services.kafkaconnect.model.WorkerLogDeliveryDescription.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy