
commonMain.aws.sdk.kotlin.services.iot.serde.VpcDestinationConfigurationDocumentSerializer.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.serde
import aws.sdk.kotlin.services.iot.model.VpcDestinationConfiguration
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 serializeVpcDestinationConfigurationDocument(serializer: Serializer, input: VpcDestinationConfiguration) {
val ROLEARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("roleArn"))
val SECURITYGROUPS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("securityGroups"))
val SUBNETIDS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("subnetIds"))
val VPCID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("vpcId"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(ROLEARN_DESCRIPTOR)
field(SECURITYGROUPS_DESCRIPTOR)
field(SUBNETIDS_DESCRIPTOR)
field(VPCID_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
listField(SUBNETIDS_DESCRIPTOR) {
for (el0 in input.subnetIds) {
serializeString(el0)
}
}
if (input.securityGroups != null) {
listField(SECURITYGROUPS_DESCRIPTOR) {
for (el0 in input.securityGroups) {
serializeString(el0)
}
}
}
field(VPCID_DESCRIPTOR, input.vpcId)
field(ROLEARN_DESCRIPTOR, input.roleArn)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy