commonMain.aws.sdk.kotlin.services.datasync.serde.OptionsDocumentSerializer.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.datasync.serde
import aws.sdk.kotlin.services.datasync.model.Options
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 serializeOptionsDocument(serializer: Serializer, input: Options) {
val ATIME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("Atime"))
val BYTESPERSECOND_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("BytesPerSecond"))
val GID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("Gid"))
val LOGLEVEL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("LogLevel"))
val MTIME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("Mtime"))
val OBJECTTAGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("ObjectTags"))
val OVERWRITEMODE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("OverwriteMode"))
val POSIXPERMISSIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("PosixPermissions"))
val PRESERVEDELETEDFILES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("PreserveDeletedFiles"))
val PRESERVEDEVICES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("PreserveDevices"))
val SECURITYDESCRIPTORCOPYFLAGS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("SecurityDescriptorCopyFlags"))
val TASKQUEUEING_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("TaskQueueing"))
val TRANSFERMODE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("TransferMode"))
val UID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("Uid"))
val VERIFYMODE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("VerifyMode"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(ATIME_DESCRIPTOR)
field(BYTESPERSECOND_DESCRIPTOR)
field(GID_DESCRIPTOR)
field(LOGLEVEL_DESCRIPTOR)
field(MTIME_DESCRIPTOR)
field(OBJECTTAGS_DESCRIPTOR)
field(OVERWRITEMODE_DESCRIPTOR)
field(POSIXPERMISSIONS_DESCRIPTOR)
field(PRESERVEDELETEDFILES_DESCRIPTOR)
field(PRESERVEDEVICES_DESCRIPTOR)
field(SECURITYDESCRIPTORCOPYFLAGS_DESCRIPTOR)
field(TASKQUEUEING_DESCRIPTOR)
field(TRANSFERMODE_DESCRIPTOR)
field(UID_DESCRIPTOR)
field(VERIFYMODE_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
input.verifyMode?.let { field(VERIFYMODE_DESCRIPTOR, it.value) }
input.overwriteMode?.let { field(OVERWRITEMODE_DESCRIPTOR, it.value) }
input.atime?.let { field(ATIME_DESCRIPTOR, it.value) }
input.mtime?.let { field(MTIME_DESCRIPTOR, it.value) }
input.uid?.let { field(UID_DESCRIPTOR, it.value) }
input.gid?.let { field(GID_DESCRIPTOR, it.value) }
input.preserveDeletedFiles?.let { field(PRESERVEDELETEDFILES_DESCRIPTOR, it.value) }
input.preserveDevices?.let { field(PRESERVEDEVICES_DESCRIPTOR, it.value) }
input.posixPermissions?.let { field(POSIXPERMISSIONS_DESCRIPTOR, it.value) }
input.bytesPerSecond?.let { field(BYTESPERSECOND_DESCRIPTOR, it) }
input.taskQueueing?.let { field(TASKQUEUEING_DESCRIPTOR, it.value) }
input.logLevel?.let { field(LOGLEVEL_DESCRIPTOR, it.value) }
input.transferMode?.let { field(TRANSFERMODE_DESCRIPTOR, it.value) }
input.securityDescriptorCopyFlags?.let { field(SECURITYDESCRIPTORCOPYFLAGS_DESCRIPTOR, it.value) }
input.objectTags?.let { field(OBJECTTAGS_DESCRIPTOR, it.value) }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy