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

commonMain.aws.sdk.kotlin.services.databasemigrationservice.serde.NeptuneSettingsDocumentSerializer.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.databasemigrationservice.serde

import aws.sdk.kotlin.services.databasemigrationservice.model.NeptuneSettings
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 serializeNeptuneSettingsDocument(serializer: Serializer, input: NeptuneSettings) {
    val ERRORRETRYDURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("ErrorRetryDuration"))
    val IAMAUTHENABLED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("IamAuthEnabled"))
    val MAXFILESIZE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("MaxFileSize"))
    val MAXRETRYCOUNT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("MaxRetryCount"))
    val S3BUCKETFOLDER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("S3BucketFolder"))
    val S3BUCKETNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("S3BucketName"))
    val SERVICEACCESSROLEARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ServiceAccessRoleArn"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(ERRORRETRYDURATION_DESCRIPTOR)
        field(IAMAUTHENABLED_DESCRIPTOR)
        field(MAXFILESIZE_DESCRIPTOR)
        field(MAXRETRYCOUNT_DESCRIPTOR)
        field(S3BUCKETFOLDER_DESCRIPTOR)
        field(S3BUCKETNAME_DESCRIPTOR)
        field(SERVICEACCESSROLEARN_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        input.serviceAccessRoleArn?.let { field(SERVICEACCESSROLEARN_DESCRIPTOR, it) }
        field(S3BUCKETNAME_DESCRIPTOR, input.s3BucketName)
        field(S3BUCKETFOLDER_DESCRIPTOR, input.s3BucketFolder)
        input.errorRetryDuration?.let { field(ERRORRETRYDURATION_DESCRIPTOR, it) }
        input.maxFileSize?.let { field(MAXFILESIZE_DESCRIPTOR, it) }
        input.maxRetryCount?.let { field(MAXRETRYCOUNT_DESCRIPTOR, it) }
        input.iamAuthEnabled?.let { field(IAMAUTHENABLED_DESCRIPTOR, it) }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy