commonMain.aws.sdk.kotlin.services.applicationinsights.model.DescribeProblemObservationsResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of applicationinsights-jvm Show documentation
Show all versions of applicationinsights-jvm Show documentation
The AWS SDK for Kotlin client for Application Insights
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.applicationinsights.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DescribeProblemObservationsResponse private constructor(builder: Builder) {
/**
* Observations related to the problem.
*/
public val relatedObservations: aws.sdk.kotlin.services.applicationinsights.model.RelatedObservations? = builder.relatedObservations
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.applicationinsights.model.DescribeProblemObservationsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeProblemObservationsResponse(")
append("relatedObservations=$relatedObservations")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = relatedObservations?.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 DescribeProblemObservationsResponse
if (relatedObservations != other.relatedObservations) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.applicationinsights.model.DescribeProblemObservationsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Observations related to the problem.
*/
public var relatedObservations: aws.sdk.kotlin.services.applicationinsights.model.RelatedObservations? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.applicationinsights.model.DescribeProblemObservationsResponse) : this() {
this.relatedObservations = x.relatedObservations
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.applicationinsights.model.DescribeProblemObservationsResponse = DescribeProblemObservationsResponse(this)
/**
* construct an [aws.sdk.kotlin.services.applicationinsights.model.RelatedObservations] inside the given [block]
*/
public fun relatedObservations(block: aws.sdk.kotlin.services.applicationinsights.model.RelatedObservations.Builder.() -> kotlin.Unit) {
this.relatedObservations = aws.sdk.kotlin.services.applicationinsights.model.RelatedObservations.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy