commonMain.aws.sdk.kotlin.services.cloudwatchlogs.model.LiveTailSessionLogEvent.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudwatchlogs-jvm Show documentation
Show all versions of cloudwatchlogs-jvm Show documentation
The AWS SDK for Kotlin client for CloudWatch Logs
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudwatchlogs.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* This object contains the information for one log event returned in a Live Tail stream.
*/
public class LiveTailSessionLogEvent private constructor(builder: Builder) {
/**
* The timestamp specifying when this log event was ingested into the log group.
*/
public val ingestionTime: kotlin.Long? = builder.ingestionTime
/**
* The name or ARN of the log group that ingested this log event.
*/
public val logGroupIdentifier: kotlin.String? = builder.logGroupIdentifier
/**
* The name of the log stream that ingested this log event.
*/
public val logStreamName: kotlin.String? = builder.logStreamName
/**
* The log event message text.
*/
public val message: kotlin.String? = builder.message
/**
* The timestamp specifying when this log event was created.
*/
public val timestamp: kotlin.Long? = builder.timestamp
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudwatchlogs.model.LiveTailSessionLogEvent = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LiveTailSessionLogEvent(")
append("ingestionTime=$ingestionTime,")
append("logGroupIdentifier=$logGroupIdentifier,")
append("logStreamName=$logStreamName,")
append("message=$message,")
append("timestamp=$timestamp")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = ingestionTime?.hashCode() ?: 0
result = 31 * result + (logGroupIdentifier?.hashCode() ?: 0)
result = 31 * result + (logStreamName?.hashCode() ?: 0)
result = 31 * result + (message?.hashCode() ?: 0)
result = 31 * result + (timestamp?.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 LiveTailSessionLogEvent
if (ingestionTime != other.ingestionTime) return false
if (logGroupIdentifier != other.logGroupIdentifier) return false
if (logStreamName != other.logStreamName) return false
if (message != other.message) return false
if (timestamp != other.timestamp) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudwatchlogs.model.LiveTailSessionLogEvent = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The timestamp specifying when this log event was ingested into the log group.
*/
public var ingestionTime: kotlin.Long? = null
/**
* The name or ARN of the log group that ingested this log event.
*/
public var logGroupIdentifier: kotlin.String? = null
/**
* The name of the log stream that ingested this log event.
*/
public var logStreamName: kotlin.String? = null
/**
* The log event message text.
*/
public var message: kotlin.String? = null
/**
* The timestamp specifying when this log event was created.
*/
public var timestamp: kotlin.Long? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cloudwatchlogs.model.LiveTailSessionLogEvent) : this() {
this.ingestionTime = x.ingestionTime
this.logGroupIdentifier = x.logGroupIdentifier
this.logStreamName = x.logStreamName
this.message = x.message
this.timestamp = x.timestamp
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cloudwatchlogs.model.LiveTailSessionLogEvent = LiveTailSessionLogEvent(this)
internal fun correctErrors(): Builder {
return this
}
}
}