
commonMain.aws.sdk.kotlin.services.qbusiness.model.ActionReviewPayloadField.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
/**
* A user input field in an plugin action review payload.
*/
public class ActionReviewPayloadField private constructor(builder: Builder) {
/**
* 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 val allowedValues: List? = builder.allowedValues
/**
* The name of the field.
*/
public val displayName: kotlin.String? = builder.displayName
/**
* The display order of fields in a payload.
*/
public val displayOrder: kotlin.Int? = builder.displayOrder
/**
* Information about whether the field is required.
*/
public val required: kotlin.Boolean? = builder.required
/**
* The type of field.
*/
public val type: aws.sdk.kotlin.services.qbusiness.model.ActionPayloadFieldType? = builder.type
/**
* 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.ActionReviewPayloadField = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ActionReviewPayloadField(")
append("allowedValues=$allowedValues,")
append("displayName=$displayName,")
append("displayOrder=$displayOrder,")
append("required=$required,")
append("type=$type,")
append("value=$value")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = allowedValues?.hashCode() ?: 0
result = 31 * result + (displayName?.hashCode() ?: 0)
result = 31 * result + (displayOrder ?: 0)
result = 31 * result + (required?.hashCode() ?: 0)
result = 31 * result + (type?.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 ActionReviewPayloadField
if (allowedValues != other.allowedValues) return false
if (displayName != other.displayName) return false
if (displayOrder != other.displayOrder) return false
if (required != other.required) return false
if (type != other.type) return false
if (value != other.value) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qbusiness.model.ActionReviewPayloadField = Builder(this).apply(block).build()
public class Builder {
/**
* 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 var allowedValues: List? = null
/**
* The name of the field.
*/
public var displayName: kotlin.String? = null
/**
* The display order of fields in a payload.
*/
public var displayOrder: kotlin.Int? = null
/**
* Information about whether the field is required.
*/
public var required: kotlin.Boolean? = null
/**
* The type of field.
*/
public var type: aws.sdk.kotlin.services.qbusiness.model.ActionPayloadFieldType? = 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.ActionReviewPayloadField) : this() {
this.allowedValues = x.allowedValues
this.displayName = x.displayName
this.displayOrder = x.displayOrder
this.required = x.required
this.type = x.type
this.value = x.value
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qbusiness.model.ActionReviewPayloadField = ActionReviewPayloadField(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy