
commonMain.aws.sdk.kotlin.services.qconnect.model.PutFeedbackRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.qconnect.model
public class PutFeedbackRequest private constructor(builder: Builder) {
/**
* The identifier of the Amazon Q assistant.
*/
public val assistantId: kotlin.String? = builder.assistantId
/**
* Information about the feedback provided.
*/
public val contentFeedback: aws.sdk.kotlin.services.qconnect.model.ContentFeedbackData? = builder.contentFeedback
/**
* The identifier of the feedback target.
*/
public val targetId: kotlin.String? = builder.targetId
/**
* The type of the feedback target.
*/
public val targetType: aws.sdk.kotlin.services.qconnect.model.TargetType? = builder.targetType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.qconnect.model.PutFeedbackRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PutFeedbackRequest(")
append("assistantId=$assistantId,")
append("contentFeedback=$contentFeedback,")
append("targetId=$targetId,")
append("targetType=$targetType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = assistantId?.hashCode() ?: 0
result = 31 * result + (contentFeedback?.hashCode() ?: 0)
result = 31 * result + (targetId?.hashCode() ?: 0)
result = 31 * result + (targetType?.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 PutFeedbackRequest
if (assistantId != other.assistantId) return false
if (contentFeedback != other.contentFeedback) return false
if (targetId != other.targetId) return false
if (targetType != other.targetType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qconnect.model.PutFeedbackRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The identifier of the Amazon Q assistant.
*/
public var assistantId: kotlin.String? = null
/**
* Information about the feedback provided.
*/
public var contentFeedback: aws.sdk.kotlin.services.qconnect.model.ContentFeedbackData? = null
/**
* The identifier of the feedback target.
*/
public var targetId: kotlin.String? = null
/**
* The type of the feedback target.
*/
public var targetType: aws.sdk.kotlin.services.qconnect.model.TargetType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.qconnect.model.PutFeedbackRequest) : this() {
this.assistantId = x.assistantId
this.contentFeedback = x.contentFeedback
this.targetId = x.targetId
this.targetType = x.targetType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qconnect.model.PutFeedbackRequest = PutFeedbackRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy