All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.mediaconvert.transform.H264QvbrSettingsDocumentSerializer.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.mediaconvert.transform

import aws.sdk.kotlin.services.mediaconvert.model.H264QvbrSettings
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 serializeH264QvbrSettingsDocument(serializer: Serializer, input: H264QvbrSettings) {
    val MAXAVERAGEBITRATE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("maxAverageBitrate"))
    val QVBRQUALITYLEVEL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("qvbrQualityLevel"))
    val QVBRQUALITYLEVELFINETUNE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Double, JsonSerialName("qvbrQualityLevelFineTune"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(MAXAVERAGEBITRATE_DESCRIPTOR)
        field(QVBRQUALITYLEVEL_DESCRIPTOR)
        field(QVBRQUALITYLEVELFINETUNE_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        if (input.maxAverageBitrate != 0) field(MAXAVERAGEBITRATE_DESCRIPTOR, input.maxAverageBitrate)
        if (input.qvbrQualityLevel != 0) field(QVBRQUALITYLEVEL_DESCRIPTOR, input.qvbrQualityLevel)
        if (input.qvbrQualityLevelFineTune != 0.0) field(QVBRQUALITYLEVELFINETUNE_DESCRIPTOR, input.qvbrQualityLevelFineTune)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy