commonMain.aws.sdk.kotlin.services.devopsguru.model.AnomalySourceMetadata.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
/**
* Metadata about the detection source that generates proactive anomalies. The anomaly is detected using analysis of the metric data
over a period of time
*/
public class AnomalySourceMetadata private constructor(builder: Builder) {
/**
* The source of the anomaly.
*/
public val source: kotlin.String? = builder.source
/**
* The name of the anomaly's resource.
*/
public val sourceResourceName: kotlin.String? = builder.sourceResourceName
/**
* The anomaly's resource type.
*/
public val sourceResourceType: kotlin.String? = builder.sourceResourceType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.devopsguru.model.AnomalySourceMetadata = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AnomalySourceMetadata(")
append("source=$source,")
append("sourceResourceName=$sourceResourceName,")
append("sourceResourceType=$sourceResourceType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = source?.hashCode() ?: 0
result = 31 * result + (sourceResourceName?.hashCode() ?: 0)
result = 31 * result + (sourceResourceType?.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 AnomalySourceMetadata
if (source != other.source) return false
if (sourceResourceName != other.sourceResourceName) return false
if (sourceResourceType != other.sourceResourceType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.devopsguru.model.AnomalySourceMetadata = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The source of the anomaly.
*/
public var source: kotlin.String? = null
/**
* The name of the anomaly's resource.
*/
public var sourceResourceName: kotlin.String? = null
/**
* The anomaly's resource type.
*/
public var sourceResourceType: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.devopsguru.model.AnomalySourceMetadata) : this() {
this.source = x.source
this.sourceResourceName = x.sourceResourceName
this.sourceResourceType = x.sourceResourceType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.devopsguru.model.AnomalySourceMetadata = AnomalySourceMetadata(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy