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