commonMain.aws.sdk.kotlin.services.glacier.serde.JobParametersDocumentSerializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glacier-jvm Show documentation
Show all versions of glacier-jvm Show documentation
The AWS Kotlin client for Glacier
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glacier.serde
import aws.sdk.kotlin.services.glacier.model.JobParameters
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 serializeJobParametersDocument(serializer: Serializer, input: JobParameters) {
val ARCHIVEID_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("ArchiveId"))
val DESCRIPTION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Description"))
val FORMAT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Format"))
val INVENTORYRETRIEVALPARAMETERS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("InventoryRetrievalParameters"))
val OUTPUTLOCATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("OutputLocation"))
val RETRIEVALBYTERANGE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("RetrievalByteRange"))
val SNSTOPIC_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("SNSTopic"))
val SELECTPARAMETERS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("SelectParameters"))
val TIER_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Tier"))
val TYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.String, JsonSerialName("Type"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(ARCHIVEID_DESCRIPTOR)
field(DESCRIPTION_DESCRIPTOR)
field(FORMAT_DESCRIPTOR)
field(INVENTORYRETRIEVALPARAMETERS_DESCRIPTOR)
field(OUTPUTLOCATION_DESCRIPTOR)
field(RETRIEVALBYTERANGE_DESCRIPTOR)
field(SNSTOPIC_DESCRIPTOR)
field(SELECTPARAMETERS_DESCRIPTOR)
field(TIER_DESCRIPTOR)
field(TYPE_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
input.format?.let { field(FORMAT_DESCRIPTOR, it) }
input.type?.let { field(TYPE_DESCRIPTOR, it) }
input.archiveId?.let { field(ARCHIVEID_DESCRIPTOR, it) }
input.description?.let { field(DESCRIPTION_DESCRIPTOR, it) }
input.snsTopic?.let { field(SNSTOPIC_DESCRIPTOR, it) }
input.retrievalByteRange?.let { field(RETRIEVALBYTERANGE_DESCRIPTOR, it) }
input.tier?.let { field(TIER_DESCRIPTOR, it) }
input.inventoryRetrievalParameters?.let { field(INVENTORYRETRIEVALPARAMETERS_DESCRIPTOR, it, ::serializeInventoryRetrievalJobInputDocument) }
input.selectParameters?.let { field(SELECTPARAMETERS_DESCRIPTOR, it, ::serializeSelectParametersDocument) }
input.outputLocation?.let { field(OUTPUTLOCATION_DESCRIPTOR, it, ::serializeOutputLocationDocument) }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy