
commonMain.aws.sdk.kotlin.services.qbusiness.model.ActionReviewPayloadFieldAllowedValue.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.qbusiness.model
import aws.smithy.kotlin.runtime.content.Document
/**
* Information about the field values that an end user can use to provide to Amazon Q Business for Amazon Q Business to perform the requested plugin action.
*/
public class ActionReviewPayloadFieldAllowedValue private constructor(builder: Builder) {
/**
* The name of the field.
*/
public val displayValue: aws.smithy.kotlin.runtime.content.Document? = builder.displayValue
/**
* The field value.
*/
public val value: aws.smithy.kotlin.runtime.content.Document? = builder.value
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.qbusiness.model.ActionReviewPayloadFieldAllowedValue = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ActionReviewPayloadFieldAllowedValue(")
append("displayValue=$displayValue,")
append("value=$value")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = displayValue?.hashCode() ?: 0
result = 31 * result + (value?.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 ActionReviewPayloadFieldAllowedValue
if (displayValue != other.displayValue) return false
if (value != other.value) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qbusiness.model.ActionReviewPayloadFieldAllowedValue = Builder(this).apply(block).build()
public class Builder {
/**
* The name of the field.
*/
public var displayValue: aws.smithy.kotlin.runtime.content.Document? = null
/**
* The field value.
*/
public var value: aws.smithy.kotlin.runtime.content.Document? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.qbusiness.model.ActionReviewPayloadFieldAllowedValue) : this() {
this.displayValue = x.displayValue
this.value = x.value
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qbusiness.model.ActionReviewPayloadFieldAllowedValue = ActionReviewPayloadFieldAllowedValue(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy