commonMain.aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsReferenceMetric.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
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.devopsguru.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Information about a reference metric used to evaluate Performance Insights.
*/
public class PerformanceInsightsReferenceMetric private constructor(builder: Builder) {
/**
* A query to be processed on the metric.
*/
public val metricQuery: aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsMetricQuery? = builder.metricQuery
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsReferenceMetric = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PerformanceInsightsReferenceMetric(")
append("metricQuery=$metricQuery")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = metricQuery?.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 PerformanceInsightsReferenceMetric
if (metricQuery != other.metricQuery) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsReferenceMetric = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A query to be processed on the metric.
*/
public var metricQuery: aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsMetricQuery? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsReferenceMetric) : this() {
this.metricQuery = x.metricQuery
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsReferenceMetric = PerformanceInsightsReferenceMetric(this)
/**
* construct an [aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsMetricQuery] inside the given [block]
*/
public fun metricQuery(block: aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsMetricQuery.Builder.() -> kotlin.Unit) {
this.metricQuery = aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsMetricQuery.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy