commonMain.aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsReferenceData.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
/**
* Reference data used to evaluate Performance Insights to determine if its performance is anomalous or not.
*/
public class PerformanceInsightsReferenceData private constructor(builder: Builder) {
/**
* The specific reference values used to evaluate the Performance Insights. For more information, see ` PerformanceInsightsReferenceComparisonValues `.
*/
public val comparisonValues: aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsReferenceComparisonValues? = builder.comparisonValues
/**
* The name of the reference data.
*/
public val name: kotlin.String? = builder.name
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsReferenceData = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PerformanceInsightsReferenceData(")
append("comparisonValues=$comparisonValues,")
append("name=$name")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = comparisonValues?.hashCode() ?: 0
result = 31 * result + (name?.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 PerformanceInsightsReferenceData
if (comparisonValues != other.comparisonValues) return false
if (name != other.name) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsReferenceData = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The specific reference values used to evaluate the Performance Insights. For more information, see ` PerformanceInsightsReferenceComparisonValues `.
*/
public var comparisonValues: aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsReferenceComparisonValues? = null
/**
* The name of the reference data.
*/
public var name: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsReferenceData) : this() {
this.comparisonValues = x.comparisonValues
this.name = x.name
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsReferenceData = PerformanceInsightsReferenceData(this)
/**
* construct an [aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsReferenceComparisonValues] inside the given [block]
*/
public fun comparisonValues(block: aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsReferenceComparisonValues.Builder.() -> kotlin.Unit) {
this.comparisonValues = aws.sdk.kotlin.services.devopsguru.model.PerformanceInsightsReferenceComparisonValues.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy