
commonMain.aws.sdk.kotlin.services.pipes.model.CloudwatchLogsLogDestination.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.pipes.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The Amazon CloudWatch Logs logging configuration settings for the pipe.
*/
public class CloudwatchLogsLogDestination private constructor(builder: Builder) {
/**
* The Amazon Web Services Resource Name (ARN) for the CloudWatch log group to which EventBridge sends the log records.
*/
public val logGroupArn: kotlin.String? = builder.logGroupArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pipes.model.CloudwatchLogsLogDestination = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CloudwatchLogsLogDestination(")
append("logGroupArn=$logGroupArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = logGroupArn?.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 CloudwatchLogsLogDestination
if (logGroupArn != other.logGroupArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pipes.model.CloudwatchLogsLogDestination = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Web Services Resource Name (ARN) for the CloudWatch log group to which EventBridge sends the log records.
*/
public var logGroupArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pipes.model.CloudwatchLogsLogDestination) : this() {
this.logGroupArn = x.logGroupArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pipes.model.CloudwatchLogsLogDestination = CloudwatchLogsLogDestination(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy