commonMain.aws.sdk.kotlin.services.devopsguru.model.RecommendationRelatedCloudWatchMetricsSourceDetail.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of devopsguru-jvm Show documentation
Show all versions of devopsguru-jvm Show documentation
The AWS SDK for Kotlin client for DevOps Guru
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.devopsguru.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Information about an Amazon CloudWatch metric that is analyzed by DevOps Guru. It is one of many analyzed metrics that are used to generate insights.
*/
public class RecommendationRelatedCloudWatchMetricsSourceDetail private constructor(builder: Builder) {
/**
* The name of the CloudWatch metric.
*/
public val metricName: kotlin.String? = builder.metricName
/**
* The namespace of the CloudWatch metric. A namespace is a container for CloudWatch metrics.
*/
public val namespace: kotlin.String? = builder.namespace
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.devopsguru.model.RecommendationRelatedCloudWatchMetricsSourceDetail = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RecommendationRelatedCloudWatchMetricsSourceDetail(")
append("metricName=$metricName,")
append("namespace=$namespace")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = metricName?.hashCode() ?: 0
result = 31 * result + (namespace?.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 RecommendationRelatedCloudWatchMetricsSourceDetail
if (metricName != other.metricName) return false
if (namespace != other.namespace) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.devopsguru.model.RecommendationRelatedCloudWatchMetricsSourceDetail = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the CloudWatch metric.
*/
public var metricName: kotlin.String? = null
/**
* The namespace of the CloudWatch metric. A namespace is a container for CloudWatch metrics.
*/
public var namespace: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.devopsguru.model.RecommendationRelatedCloudWatchMetricsSourceDetail) : this() {
this.metricName = x.metricName
this.namespace = x.namespace
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.devopsguru.model.RecommendationRelatedCloudWatchMetricsSourceDetail = RecommendationRelatedCloudWatchMetricsSourceDetail(this)
internal fun correctErrors(): Builder {
return this
}
}
}