
commonMain.aws.sdk.kotlin.services.pi.model.Recommendation.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.pi.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The list of recommendations for the insight.
*/
public class Recommendation private constructor(builder: Builder) {
/**
* The recommendation details to help resolve the performance issue. For example, `Investigate the following SQLs that contributed to 100% of the total DBLoad during that time period: sql-id`
*/
public val recommendationDescription: kotlin.String? = builder.recommendationDescription
/**
* The unique identifier for the recommendation.
*/
public val recommendationId: kotlin.String? = builder.recommendationId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pi.model.Recommendation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Recommendation(")
append("recommendationDescription=*** Sensitive Data Redacted ***,")
append("recommendationId=$recommendationId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = recommendationDescription?.hashCode() ?: 0
result = 31 * result + (recommendationId?.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 (recommendationDescription != other.recommendationDescription) return false
if (recommendationId != other.recommendationId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pi.model.Recommendation = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The recommendation details to help resolve the performance issue. For example, `Investigate the following SQLs that contributed to 100% of the total DBLoad during that time period: sql-id`
*/
public var recommendationDescription: kotlin.String? = null
/**
* The unique identifier for the recommendation.
*/
public var recommendationId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pi.model.Recommendation) : this() {
this.recommendationDescription = x.recommendationDescription
this.recommendationId = x.recommendationId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pi.model.Recommendation = Recommendation(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy