![JAR search and dependency download from the Maven repository](/logo.png)
commonMain.aws.sdk.kotlin.services.firehose.serde.AmazonOpenSearchServerlessDestinationDescriptionDocumentDeserializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of firehose-jvm Show documentation
Show all versions of firehose-jvm Show documentation
The AWS SDK for Kotlin client for Firehose
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.firehose.serde
import aws.sdk.kotlin.services.firehose.model.AmazonOpenSearchServerlessDestinationDescription
import aws.sdk.kotlin.services.firehose.model.AmazonOpenSearchServerlessS3BackupMode
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 deserializeAmazonOpenSearchServerlessDestinationDescriptionDocument(deserializer: Deserializer): AmazonOpenSearchServerlessDestinationDescription {
val builder = AmazonOpenSearchServerlessDestinationDescription.Builder()
val BUFFERINGHINTS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("BufferingHints"))
val CLOUDWATCHLOGGINGOPTIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("CloudWatchLoggingOptions"))
val COLLECTIONENDPOINT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("CollectionEndpoint"))
val INDEXNAME_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("IndexName"))
val PROCESSINGCONFIGURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("ProcessingConfiguration"))
val RETRYOPTIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("RetryOptions"))
val ROLEARN_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("RoleARN"))
val S3BACKUPMODE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("S3BackupMode"))
val S3DESTINATIONDESCRIPTION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("S3DestinationDescription"))
val VPCCONFIGURATIONDESCRIPTION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("VpcConfigurationDescription"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(BUFFERINGHINTS_DESCRIPTOR)
field(CLOUDWATCHLOGGINGOPTIONS_DESCRIPTOR)
field(COLLECTIONENDPOINT_DESCRIPTOR)
field(INDEXNAME_DESCRIPTOR)
field(PROCESSINGCONFIGURATION_DESCRIPTOR)
field(RETRYOPTIONS_DESCRIPTOR)
field(ROLEARN_DESCRIPTOR)
field(S3BACKUPMODE_DESCRIPTOR)
field(S3DESTINATIONDESCRIPTION_DESCRIPTOR)
field(VPCCONFIGURATIONDESCRIPTION_DESCRIPTOR)
}
deserializer.deserializeStruct(OBJ_DESCRIPTOR) {
loop@while (true) {
when (findNextFieldIndex()) {
BUFFERINGHINTS_DESCRIPTOR.index -> builder.bufferingHints = deserializeAmazonOpenSearchServerlessBufferingHintsDocument(deserializer)
CLOUDWATCHLOGGINGOPTIONS_DESCRIPTOR.index -> builder.cloudWatchLoggingOptions = deserializeCloudWatchLoggingOptionsDocument(deserializer)
COLLECTIONENDPOINT_DESCRIPTOR.index -> builder.collectionEndpoint = deserializeString()
INDEXNAME_DESCRIPTOR.index -> builder.indexName = deserializeString()
PROCESSINGCONFIGURATION_DESCRIPTOR.index -> builder.processingConfiguration = deserializeProcessingConfigurationDocument(deserializer)
RETRYOPTIONS_DESCRIPTOR.index -> builder.retryOptions = deserializeAmazonOpenSearchServerlessRetryOptionsDocument(deserializer)
ROLEARN_DESCRIPTOR.index -> builder.roleArn = deserializeString()
S3BACKUPMODE_DESCRIPTOR.index -> builder.s3BackupMode = deserializeString().let { AmazonOpenSearchServerlessS3BackupMode.fromValue(it) }
S3DESTINATIONDESCRIPTION_DESCRIPTOR.index -> builder.s3DestinationDescription = deserializeS3DestinationDescriptionDocument(deserializer)
VPCCONFIGURATIONDESCRIPTION_DESCRIPTOR.index -> builder.vpcConfigurationDescription = deserializeVpcConfigurationDescriptionDocument(deserializer)
null -> break@loop
else -> skipValue()
}
}
}
builder.correctErrors()
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy