
commonMain.aws.sdk.kotlin.services.cloudfront.model.GetRealtimeLogConfigResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudfront.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetRealtimeLogConfigResponse private constructor(builder: Builder) {
/**
* A real-time log configuration.
*/
public val realtimeLogConfig: aws.sdk.kotlin.services.cloudfront.model.RealtimeLogConfig? = builder.realtimeLogConfig
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudfront.model.GetRealtimeLogConfigResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetRealtimeLogConfigResponse(")
append("realtimeLogConfig=$realtimeLogConfig")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = realtimeLogConfig?.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 GetRealtimeLogConfigResponse
if (realtimeLogConfig != other.realtimeLogConfig) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudfront.model.GetRealtimeLogConfigResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A real-time log configuration.
*/
public var realtimeLogConfig: aws.sdk.kotlin.services.cloudfront.model.RealtimeLogConfig? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cloudfront.model.GetRealtimeLogConfigResponse) : this() {
this.realtimeLogConfig = x.realtimeLogConfig
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cloudfront.model.GetRealtimeLogConfigResponse = GetRealtimeLogConfigResponse(this)
/**
* construct an [aws.sdk.kotlin.services.cloudfront.model.RealtimeLogConfig] inside the given [block]
*/
public fun realtimeLogConfig(block: aws.sdk.kotlin.services.cloudfront.model.RealtimeLogConfig.Builder.() -> kotlin.Unit) {
this.realtimeLogConfig = aws.sdk.kotlin.services.cloudfront.model.RealtimeLogConfig.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy