commonMain.aws.sdk.kotlin.services.backupgateway.serde.BandwidthRateLimitIntervalDocumentSerializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of backupgateway-jvm Show documentation
Show all versions of backupgateway-jvm Show documentation
The AWS Kotlin client for Backup Gateway
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.backupgateway.serde
import aws.sdk.kotlin.services.backupgateway.model.BandwidthRateLimitInterval
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 serializeBandwidthRateLimitIntervalDocument(serializer: Serializer, input: BandwidthRateLimitInterval) {
val AVERAGEUPLOADRATELIMITINBITSPERSEC_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("AverageUploadRateLimitInBitsPerSec"))
val DAYSOFWEEK_DESCRIPTOR = SdkFieldDescriptor(SerialKind.List, JsonSerialName("DaysOfWeek"))
val ENDHOUROFDAY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("EndHourOfDay"))
val ENDMINUTEOFHOUR_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("EndMinuteOfHour"))
val STARTHOUROFDAY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("StartHourOfDay"))
val STARTMINUTEOFHOUR_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("StartMinuteOfHour"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(AVERAGEUPLOADRATELIMITINBITSPERSEC_DESCRIPTOR)
field(DAYSOFWEEK_DESCRIPTOR)
field(ENDHOUROFDAY_DESCRIPTOR)
field(ENDMINUTEOFHOUR_DESCRIPTOR)
field(STARTHOUROFDAY_DESCRIPTOR)
field(STARTMINUTEOFHOUR_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
input.averageUploadRateLimitInBitsPerSec?.let { field(AVERAGEUPLOADRATELIMITINBITSPERSEC_DESCRIPTOR, it) }
field(STARTHOUROFDAY_DESCRIPTOR, input.startHourOfDay)
field(ENDHOUROFDAY_DESCRIPTOR, input.endHourOfDay)
field(STARTMINUTEOFHOUR_DESCRIPTOR, input.startMinuteOfHour)
field(ENDMINUTEOFHOUR_DESCRIPTOR, input.endMinuteOfHour)
listField(DAYSOFWEEK_DESCRIPTOR) {
for (el0 in input.daysOfWeek) {
serializeInt(el0)
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy