
commonMain.aws.sdk.kotlin.services.qapps.model.Submission.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.qapps.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.content.Document
import aws.smithy.kotlin.runtime.time.Instant
/**
* A record created when a user submits a form card.
*/
public class Submission private constructor(builder: Builder) {
/**
* The unique identifier of the submission.
*/
public val submissionId: kotlin.String? = builder.submissionId
/**
* The date and time when the card is submitted.
*/
public val timestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.timestamp
/**
* The data submitted by the user.
*/
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.qapps.model.Submission = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Submission(")
append("submissionId=$submissionId,")
append("timestamp=$timestamp,")
append("value=$value")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = submissionId?.hashCode() ?: 0
result = 31 * result + (timestamp?.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 Submission
if (submissionId != other.submissionId) return false
if (timestamp != other.timestamp) return false
if (value != other.value) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qapps.model.Submission = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The unique identifier of the submission.
*/
public var submissionId: kotlin.String? = null
/**
* The date and time when the card is submitted.
*/
public var timestamp: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The data submitted by the user.
*/
public var value: aws.smithy.kotlin.runtime.content.Document? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.qapps.model.Submission) : this() {
this.submissionId = x.submissionId
this.timestamp = x.timestamp
this.value = x.value
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qapps.model.Submission = Submission(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy