aws.sdk.kotlin.services.sagemaker.transform.OutputConfigDocumentSerializer.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sagemaker.transform
import aws.sdk.kotlin.services.sagemaker.model.OutputConfig
import aws.sdk.kotlin.services.sagemaker.model.TargetDevice
import aws.sdk.kotlin.services.sagemaker.model.TargetPlatform
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 serializeOutputConfigDocument(serializer: Serializer, input: OutputConfig) {
val COMPILEROPTIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("CompilerOptions"))
val KMSKEYID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("KmsKeyId"))
val S3OUTPUTLOCATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("S3OutputLocation"))
val TARGETDEVICE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("TargetDevice"))
val TARGETPLATFORM_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("TargetPlatform"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(COMPILEROPTIONS_DESCRIPTOR)
field(KMSKEYID_DESCRIPTOR)
field(S3OUTPUTLOCATION_DESCRIPTOR)
field(TARGETDEVICE_DESCRIPTOR)
field(TARGETPLATFORM_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
input.s3OutputLocation?.let { field(S3OUTPUTLOCATION_DESCRIPTOR, it) }
input.targetDevice?.let { field(TARGETDEVICE_DESCRIPTOR, it.value) }
input.targetPlatform?.let { field(TARGETPLATFORM_DESCRIPTOR, it, ::serializeTargetPlatformDocument) }
input.compilerOptions?.let { field(COMPILEROPTIONS_DESCRIPTOR, it) }
input.kmsKeyId?.let { field(KMSKEYID_DESCRIPTOR, it) }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy