commonMain.aws.sdk.kotlin.services.fsx.serde.CreateFileCacheLustreConfigurationDocumentSerializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fsx-jvm Show documentation
Show all versions of fsx-jvm Show documentation
The AWS SDK for Kotlin client for FSx
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.fsx.serde
import aws.sdk.kotlin.services.fsx.model.CreateFileCacheLustreConfiguration
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 serializeCreateFileCacheLustreConfigurationDocument(serializer: Serializer, input: CreateFileCacheLustreConfiguration) {
val DEPLOYMENTTYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("DeploymentType"))
val METADATACONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("MetadataConfiguration"))
val PERUNITSTORAGETHROUGHPUT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("PerUnitStorageThroughput"))
val WEEKLYMAINTENANCESTARTTIME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("WeeklyMaintenanceStartTime"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(DEPLOYMENTTYPE_DESCRIPTOR)
field(METADATACONFIGURATION_DESCRIPTOR)
field(PERUNITSTORAGETHROUGHPUT_DESCRIPTOR)
field(WEEKLYMAINTENANCESTARTTIME_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
input.perUnitStorageThroughput?.let { field(PERUNITSTORAGETHROUGHPUT_DESCRIPTOR, it) }
input.deploymentType?.let { field(DEPLOYMENTTYPE_DESCRIPTOR, it.value) }
input.weeklyMaintenanceStartTime?.let { field(WEEKLYMAINTENANCESTARTTIME_DESCRIPTOR, it) }
input.metadataConfiguration?.let { field(METADATACONFIGURATION_DESCRIPTOR, it, ::serializeFileCacheLustreMetadataConfigurationDocument) }
}
}