
commonMain.aws.sdk.kotlin.services.xray.model.GetInsightRequest.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 GetInsightRequest private constructor(builder: Builder) {
/**
* The insight's unique identifier. Use the GetInsightSummaries action to retrieve an InsightId.
*/
public val insightId: kotlin.String? = builder.insightId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.xray.model.GetInsightRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetInsightRequest(")
append("insightId=$insightId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = insightId?.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 GetInsightRequest
if (insightId != other.insightId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.xray.model.GetInsightRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The insight's unique identifier. Use the GetInsightSummaries action to retrieve an InsightId.
*/
public var insightId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.xray.model.GetInsightRequest) : this() {
this.insightId = x.insightId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.xray.model.GetInsightRequest = GetInsightRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy