commonMain.aws.sdk.kotlin.services.databasemigrationservice.serde.NeptuneSettingsDocumentDeserializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of databasemigrationservice-jvm Show documentation
Show all versions of databasemigrationservice-jvm Show documentation
The AWS SDK for Kotlin client for Database Migration Service
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.Deserializer
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.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 deserializeNeptuneSettingsDocument(deserializer: Deserializer): NeptuneSettings {
val builder = NeptuneSettings.Builder()
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)
}
deserializer.deserializeStruct(OBJ_DESCRIPTOR) {
loop@while (true) {
when (findNextFieldIndex()) {
ERRORRETRYDURATION_DESCRIPTOR.index -> builder.errorRetryDuration = deserializeInt()
IAMAUTHENABLED_DESCRIPTOR.index -> builder.iamAuthEnabled = deserializeBoolean()
MAXFILESIZE_DESCRIPTOR.index -> builder.maxFileSize = deserializeInt()
MAXRETRYCOUNT_DESCRIPTOR.index -> builder.maxRetryCount = deserializeInt()
S3BUCKETFOLDER_DESCRIPTOR.index -> builder.s3BucketFolder = deserializeString()
S3BUCKETNAME_DESCRIPTOR.index -> builder.s3BucketName = deserializeString()
SERVICEACCESSROLEARN_DESCRIPTOR.index -> builder.serviceAccessRoleArn = deserializeString()
null -> break@loop
else -> skipValue()
}
}
}
builder.correctErrors()
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy