commonMain.aws.sdk.kotlin.services.devicefarm.serde.ScheduleRunConfigurationDocumentSerializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of devicefarm-jvm Show documentation
Show all versions of devicefarm-jvm Show documentation
The AWS SDK for Kotlin client for Device Farm
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.devicefarm.serde
import aws.sdk.kotlin.services.devicefarm.model.ScheduleRunConfiguration
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 serializeScheduleRunConfigurationDocument(serializer: Serializer, input: ScheduleRunConfiguration) {
val AUXILIARYAPPS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("auxiliaryApps"))
val BILLINGMETHOD_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("billingMethod"))
val CUSTOMERARTIFACTPATHS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("customerArtifactPaths"))
val EXTRADATAPACKAGEARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("extraDataPackageArn"))
val LOCALE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("locale"))
val LOCATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("location"))
val NETWORKPROFILEARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("networkProfileArn"))
val RADIOS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("radios"))
val VPCECONFIGURATIONARNS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("vpceConfigurationArns"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(AUXILIARYAPPS_DESCRIPTOR)
field(BILLINGMETHOD_DESCRIPTOR)
field(CUSTOMERARTIFACTPATHS_DESCRIPTOR)
field(EXTRADATAPACKAGEARN_DESCRIPTOR)
field(LOCALE_DESCRIPTOR)
field(LOCATION_DESCRIPTOR)
field(NETWORKPROFILEARN_DESCRIPTOR)
field(RADIOS_DESCRIPTOR)
field(VPCECONFIGURATIONARNS_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
input.extraDataPackageArn?.let { field(EXTRADATAPACKAGEARN_DESCRIPTOR, it) }
input.networkProfileArn?.let { field(NETWORKPROFILEARN_DESCRIPTOR, it) }
input.locale?.let { field(LOCALE_DESCRIPTOR, it) }
input.location?.let { field(LOCATION_DESCRIPTOR, it, ::serializeLocationDocument) }
if (input.vpceConfigurationArns != null) {
listField(VPCECONFIGURATIONARNS_DESCRIPTOR) {
for (el0 in input.vpceConfigurationArns) {
serializeString(el0)
}
}
}
input.customerArtifactPaths?.let { field(CUSTOMERARTIFACTPATHS_DESCRIPTOR, it, ::serializeCustomerArtifactPathsDocument) }
input.radios?.let { field(RADIOS_DESCRIPTOR, it, ::serializeRadiosDocument) }
if (input.auxiliaryApps != null) {
listField(AUXILIARYAPPS_DESCRIPTOR) {
for (el0 in input.auxiliaryApps) {
serializeString(el0)
}
}
}
input.billingMethod?.let { field(BILLINGMETHOD_DESCRIPTOR, it.value) }
}
}