commonMain.aws.sdk.kotlin.services.personalize.model.GetSolutionMetricsResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of personalize-jvm Show documentation
Show all versions of personalize-jvm Show documentation
The AWS SDK for Kotlin client for Personalize
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.personalize.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetSolutionMetricsResponse private constructor(builder: Builder) {
/**
* The metrics for the solution version. For more information, see [ Evaluating a solution version with metrics ](https://docs.aws.amazon.com/personalize/latest/dg/working-with-training-metrics.html).
*/
public val metrics: Map? = builder.metrics
/**
* The same solution version ARN as specified in the request.
*/
public val solutionVersionArn: kotlin.String? = builder.solutionVersionArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.personalize.model.GetSolutionMetricsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetSolutionMetricsResponse(")
append("metrics=$metrics,")
append("solutionVersionArn=$solutionVersionArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = metrics?.hashCode() ?: 0
result = 31 * result + (solutionVersionArn?.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 GetSolutionMetricsResponse
if (metrics != other.metrics) return false
if (solutionVersionArn != other.solutionVersionArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.personalize.model.GetSolutionMetricsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The metrics for the solution version. For more information, see [ Evaluating a solution version with metrics ](https://docs.aws.amazon.com/personalize/latest/dg/working-with-training-metrics.html).
*/
public var metrics: Map? = null
/**
* The same solution version ARN as specified in the request.
*/
public var solutionVersionArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.personalize.model.GetSolutionMetricsResponse) : this() {
this.metrics = x.metrics
this.solutionVersionArn = x.solutionVersionArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.personalize.model.GetSolutionMetricsResponse = GetSolutionMetricsResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}