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

commonMain.aws.sdk.kotlin.services.appflow.serde.ScheduledTriggerPropertiesDocumentSerializer.kt Maven / Gradle / Ivy

The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.appflow.serde

import aws.sdk.kotlin.services.appflow.model.ScheduledTriggerProperties
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
import aws.smithy.kotlin.runtime.time.TimestampFormat

internal fun serializeScheduledTriggerPropertiesDocument(serializer: Serializer, input: ScheduledTriggerProperties) {
    val DATAPULLMODE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("dataPullMode"))
    val FIRSTEXECUTIONFROM_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Timestamp, JsonSerialName("firstExecutionFrom"))
    val FLOWERRORDEACTIVATIONTHRESHOLD_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("flowErrorDeactivationThreshold"))
    val SCHEDULEENDTIME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Timestamp, JsonSerialName("scheduleEndTime"))
    val SCHEDULEEXPRESSION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("scheduleExpression"))
    val SCHEDULEOFFSET_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("scheduleOffset"))
    val SCHEDULESTARTTIME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Timestamp, JsonSerialName("scheduleStartTime"))
    val TIMEZONE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("timezone"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(DATAPULLMODE_DESCRIPTOR)
        field(FIRSTEXECUTIONFROM_DESCRIPTOR)
        field(FLOWERRORDEACTIVATIONTHRESHOLD_DESCRIPTOR)
        field(SCHEDULEENDTIME_DESCRIPTOR)
        field(SCHEDULEEXPRESSION_DESCRIPTOR)
        field(SCHEDULEOFFSET_DESCRIPTOR)
        field(SCHEDULESTARTTIME_DESCRIPTOR)
        field(TIMEZONE_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        field(SCHEDULEEXPRESSION_DESCRIPTOR, input.scheduleExpression)
        input.dataPullMode?.let { field(DATAPULLMODE_DESCRIPTOR, it.value) }
        input.scheduleStartTime?.let { field(SCHEDULESTARTTIME_DESCRIPTOR, it, TimestampFormat.EPOCH_SECONDS) }
        input.scheduleEndTime?.let { field(SCHEDULEENDTIME_DESCRIPTOR, it, TimestampFormat.EPOCH_SECONDS) }
        input.timezone?.let { field(TIMEZONE_DESCRIPTOR, it) }
        input.scheduleOffset?.let { field(SCHEDULEOFFSET_DESCRIPTOR, it) }
        input.firstExecutionFrom?.let { field(FIRSTEXECUTIONFROM_DESCRIPTOR, it, TimestampFormat.EPOCH_SECONDS) }
        input.flowErrorDeactivationThreshold?.let { field(FLOWERRORDEACTIVATIONTHRESHOLD_DESCRIPTOR, it) }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy