commonMain.aws.sdk.kotlin.services.devopsguru.model.Recommendation.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
/**
* Recommendation information to help you remediate detected anomalous behavior that generated an insight.
*/
public class Recommendation private constructor(builder: Builder) {
/**
* The category type of the recommendation.
*/
public val category: kotlin.String? = builder.category
/**
* A description of the problem.
*/
public val description: kotlin.String? = builder.description
/**
* A hyperlink to information to help you address the problem.
*/
public val link: kotlin.String? = builder.link
/**
* The name of the recommendation.
*/
public val name: kotlin.String? = builder.name
/**
* The reason DevOps Guru flagged the anomalous behavior as a problem.
*/
public val reason: kotlin.String? = builder.reason
/**
* Anomalies that are related to the problem. Use these Anomalies to learn more about what's happening and to help address the issue.
*/
public val relatedAnomalies: List? = builder.relatedAnomalies
/**
* Events that are related to the problem. Use these events to learn more about what's happening and to help address the issue.
*/
public val relatedEvents: List? = builder.relatedEvents
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.devopsguru.model.Recommendation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Recommendation(")
append("category=$category,")
append("description=$description,")
append("link=$link,")
append("name=$name,")
append("reason=$reason,")
append("relatedAnomalies=$relatedAnomalies,")
append("relatedEvents=$relatedEvents")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = category?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (link?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (reason?.hashCode() ?: 0)
result = 31 * result + (relatedAnomalies?.hashCode() ?: 0)
result = 31 * result + (relatedEvents?.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 Recommendation
if (category != other.category) return false
if (description != other.description) return false
if (link != other.link) return false
if (name != other.name) return false
if (reason != other.reason) return false
if (relatedAnomalies != other.relatedAnomalies) return false
if (relatedEvents != other.relatedEvents) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.devopsguru.model.Recommendation = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The category type of the recommendation.
*/
public var category: kotlin.String? = null
/**
* A description of the problem.
*/
public var description: kotlin.String? = null
/**
* A hyperlink to information to help you address the problem.
*/
public var link: kotlin.String? = null
/**
* The name of the recommendation.
*/
public var name: kotlin.String? = null
/**
* The reason DevOps Guru flagged the anomalous behavior as a problem.
*/
public var reason: kotlin.String? = null
/**
* Anomalies that are related to the problem. Use these Anomalies to learn more about what's happening and to help address the issue.
*/
public var relatedAnomalies: List? = null
/**
* Events that are related to the problem. Use these events to learn more about what's happening and to help address the issue.
*/
public var relatedEvents: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.devopsguru.model.Recommendation) : this() {
this.category = x.category
this.description = x.description
this.link = x.link
this.name = x.name
this.reason = x.reason
this.relatedAnomalies = x.relatedAnomalies
this.relatedEvents = x.relatedEvents
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.devopsguru.model.Recommendation = Recommendation(this)
internal fun correctErrors(): Builder {
return this
}
}
}