commonMain.aws.sdk.kotlin.services.wisdom.model.NotifyRecommendationsReceivedResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wisdom-jvm Show documentation
Show all versions of wisdom-jvm Show documentation
The AWS SDK for Kotlin client for Wisdom
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wisdom.model
import aws.smithy.kotlin.runtime.SdkDsl
public class NotifyRecommendationsReceivedResponse private constructor(builder: Builder) {
/**
* The identifiers of recommendations that are causing errors.
*/
public val errors: List? = builder.errors
/**
* The identifiers of the recommendations.
*/
public val recommendationIds: List? = builder.recommendationIds
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wisdom.model.NotifyRecommendationsReceivedResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("NotifyRecommendationsReceivedResponse(")
append("errors=$errors,")
append("recommendationIds=$recommendationIds")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = errors?.hashCode() ?: 0
result = 31 * result + (recommendationIds?.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 NotifyRecommendationsReceivedResponse
if (errors != other.errors) return false
if (recommendationIds != other.recommendationIds) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wisdom.model.NotifyRecommendationsReceivedResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The identifiers of recommendations that are causing errors.
*/
public var errors: List? = null
/**
* The identifiers of the recommendations.
*/
public var recommendationIds: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wisdom.model.NotifyRecommendationsReceivedResponse) : this() {
this.errors = x.errors
this.recommendationIds = x.recommendationIds
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wisdom.model.NotifyRecommendationsReceivedResponse = NotifyRecommendationsReceivedResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}