commonMain.aws.sdk.kotlin.services.databrew.serde.ViewFrameDocumentSerializer.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.databrew.serde
import aws.sdk.kotlin.services.databrew.model.ViewFrame
import aws.smithy.kotlin.runtime.serde.SdkFieldDescriptor
import aws.smithy.kotlin.runtime.serde.SdkObjectDescriptor
import aws.smithy.kotlin.runtime.serde.SerialKind
import aws.smithy.kotlin.runtime.serde.Serializer
import aws.smithy.kotlin.runtime.serde.asSdkSerializable
import aws.smithy.kotlin.runtime.serde.deserializeList
import aws.smithy.kotlin.runtime.serde.deserializeMap
import aws.smithy.kotlin.runtime.serde.deserializeStruct
import aws.smithy.kotlin.runtime.serde.field
import aws.smithy.kotlin.runtime.serde.json.JsonDeserializer
import aws.smithy.kotlin.runtime.serde.json.JsonSerialName
import aws.smithy.kotlin.runtime.serde.serializeList
import aws.smithy.kotlin.runtime.serde.serializeMap
import aws.smithy.kotlin.runtime.serde.serializeStruct
internal fun serializeViewFrameDocument(serializer: Serializer, input: ViewFrame) {
val ANALYTICS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("Analytics"))
val COLUMNRANGE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("ColumnRange"))
val HIDDENCOLUMNS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("HiddenColumns"))
val ROWRANGE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("RowRange"))
val STARTCOLUMNINDEX_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("StartColumnIndex"))
val STARTROWINDEX_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("StartRowIndex"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(ANALYTICS_DESCRIPTOR)
field(COLUMNRANGE_DESCRIPTOR)
field(HIDDENCOLUMNS_DESCRIPTOR)
field(ROWRANGE_DESCRIPTOR)
field(STARTCOLUMNINDEX_DESCRIPTOR)
field(STARTROWINDEX_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
field(STARTCOLUMNINDEX_DESCRIPTOR, input.startColumnIndex)
input.columnRange?.let { field(COLUMNRANGE_DESCRIPTOR, it) }
if (input.hiddenColumns != null) {
listField(HIDDENCOLUMNS_DESCRIPTOR) {
for (el0 in input.hiddenColumns) {
serializeString(el0)
}
}
}
input.startRowIndex?.let { field(STARTROWINDEX_DESCRIPTOR, it) }
input.rowRange?.let { field(ROWRANGE_DESCRIPTOR, it) }
input.analytics?.let { field(ANALYTICS_DESCRIPTOR, it.value) }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy