commonMain.aws.sdk.kotlin.services.applicationinsights.model.DescribeObservationRequest.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 DescribeObservationRequest private constructor(builder: Builder) {
/**
* The AWS account ID for the resource group owner.
*/
public val accountId: kotlin.String? = builder.accountId
/**
* The ID of the observation.
*/
public val observationId: kotlin.String? = builder.observationId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.applicationinsights.model.DescribeObservationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeObservationRequest(")
append("accountId=$accountId,")
append("observationId=$observationId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accountId?.hashCode() ?: 0
result = 31 * result + (observationId?.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 DescribeObservationRequest
if (accountId != other.accountId) return false
if (observationId != other.observationId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.applicationinsights.model.DescribeObservationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The AWS account ID for the resource group owner.
*/
public var accountId: kotlin.String? = null
/**
* The ID of the observation.
*/
public var observationId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.applicationinsights.model.DescribeObservationRequest) : this() {
this.accountId = x.accountId
this.observationId = x.observationId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.applicationinsights.model.DescribeObservationRequest = DescribeObservationRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy