commonMain.aws.sdk.kotlin.services.outposts.serde.RackPhysicalPropertiesDocumentSerializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of outposts-jvm Show documentation
Show all versions of outposts-jvm Show documentation
The AWS SDK for Kotlin client for Outposts
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.outposts.serde
import aws.sdk.kotlin.services.outposts.model.RackPhysicalProperties
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 serializeRackPhysicalPropertiesDocument(serializer: Serializer, input: RackPhysicalProperties) {
val FIBEROPTICCABLETYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("FiberOpticCableType"))
val MAXIMUMSUPPORTEDWEIGHTLBS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("MaximumSupportedWeightLbs"))
val OPTICALSTANDARD_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("OpticalStandard"))
val POWERCONNECTOR_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("PowerConnector"))
val POWERDRAWKVA_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("PowerDrawKva"))
val POWERFEEDDROP_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("PowerFeedDrop"))
val POWERPHASE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("PowerPhase"))
val UPLINKCOUNT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("UplinkCount"))
val UPLINKGBPS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("UplinkGbps"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(FIBEROPTICCABLETYPE_DESCRIPTOR)
field(MAXIMUMSUPPORTEDWEIGHTLBS_DESCRIPTOR)
field(OPTICALSTANDARD_DESCRIPTOR)
field(POWERCONNECTOR_DESCRIPTOR)
field(POWERDRAWKVA_DESCRIPTOR)
field(POWERFEEDDROP_DESCRIPTOR)
field(POWERPHASE_DESCRIPTOR)
field(UPLINKCOUNT_DESCRIPTOR)
field(UPLINKGBPS_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
input.powerDrawKva?.let { field(POWERDRAWKVA_DESCRIPTOR, it.value) }
input.powerPhase?.let { field(POWERPHASE_DESCRIPTOR, it.value) }
input.powerConnector?.let { field(POWERCONNECTOR_DESCRIPTOR, it.value) }
input.powerFeedDrop?.let { field(POWERFEEDDROP_DESCRIPTOR, it.value) }
input.uplinkGbps?.let { field(UPLINKGBPS_DESCRIPTOR, it.value) }
input.uplinkCount?.let { field(UPLINKCOUNT_DESCRIPTOR, it.value) }
input.fiberOpticCableType?.let { field(FIBEROPTICCABLETYPE_DESCRIPTOR, it.value) }
input.opticalStandard?.let { field(OPTICALSTANDARD_DESCRIPTOR, it.value) }
input.maximumSupportedWeightLbs?.let { field(MAXIMUMSUPPORTEDWEIGHTLBS_DESCRIPTOR, it.value) }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy