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

commonMain.aws.sdk.kotlin.services.autoscaling.serde.PredictiveScalingMetricSpecificationDocumentSerializer.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.autoscaling.serde

import aws.sdk.kotlin.services.autoscaling.model.PredictiveScalingMetricSpecification
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.formurl.FormUrlSerialName
import aws.smithy.kotlin.runtime.serde.serializeList
import aws.smithy.kotlin.runtime.serde.serializeMap
import aws.smithy.kotlin.runtime.serde.serializeStruct

internal fun serializePredictiveScalingMetricSpecificationDocument(serializer: Serializer, input: PredictiveScalingMetricSpecification) {
    val CUSTOMIZEDCAPACITYMETRICSPECIFICATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, FormUrlSerialName("CustomizedCapacityMetricSpecification"))
    val CUSTOMIZEDLOADMETRICSPECIFICATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, FormUrlSerialName("CustomizedLoadMetricSpecification"))
    val CUSTOMIZEDSCALINGMETRICSPECIFICATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, FormUrlSerialName("CustomizedScalingMetricSpecification"))
    val PREDEFINEDLOADMETRICSPECIFICATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, FormUrlSerialName("PredefinedLoadMetricSpecification"))
    val PREDEFINEDMETRICPAIRSPECIFICATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, FormUrlSerialName("PredefinedMetricPairSpecification"))
    val PREDEFINEDSCALINGMETRICSPECIFICATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, FormUrlSerialName("PredefinedScalingMetricSpecification"))
    val TARGETVALUE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Double, FormUrlSerialName("TargetValue"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        trait(FormUrlSerialName("PredictiveScalingMetricSpecification"))
        field(CUSTOMIZEDCAPACITYMETRICSPECIFICATION_DESCRIPTOR)
        field(CUSTOMIZEDLOADMETRICSPECIFICATION_DESCRIPTOR)
        field(CUSTOMIZEDSCALINGMETRICSPECIFICATION_DESCRIPTOR)
        field(PREDEFINEDLOADMETRICSPECIFICATION_DESCRIPTOR)
        field(PREDEFINEDMETRICPAIRSPECIFICATION_DESCRIPTOR)
        field(PREDEFINEDSCALINGMETRICSPECIFICATION_DESCRIPTOR)
        field(TARGETVALUE_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        input.targetValue?.let { field(TARGETVALUE_DESCRIPTOR, it) }
        input.predefinedMetricPairSpecification?.let { field(PREDEFINEDMETRICPAIRSPECIFICATION_DESCRIPTOR, it, ::serializePredictiveScalingPredefinedMetricPairDocument) }
        input.predefinedScalingMetricSpecification?.let { field(PREDEFINEDSCALINGMETRICSPECIFICATION_DESCRIPTOR, it, ::serializePredictiveScalingPredefinedScalingMetricDocument) }
        input.predefinedLoadMetricSpecification?.let { field(PREDEFINEDLOADMETRICSPECIFICATION_DESCRIPTOR, it, ::serializePredictiveScalingPredefinedLoadMetricDocument) }
        input.customizedScalingMetricSpecification?.let { field(CUSTOMIZEDSCALINGMETRICSPECIFICATION_DESCRIPTOR, it, ::serializePredictiveScalingCustomizedScalingMetricDocument) }
        input.customizedLoadMetricSpecification?.let { field(CUSTOMIZEDLOADMETRICSPECIFICATION_DESCRIPTOR, it, ::serializePredictiveScalingCustomizedLoadMetricDocument) }
        input.customizedCapacityMetricSpecification?.let { field(CUSTOMIZEDCAPACITYMETRICSPECIFICATION_DESCRIPTOR, it, ::serializePredictiveScalingCustomizedCapacityMetricDocument) }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy