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

commonMain.aws.sdk.kotlin.services.timestreaminfluxdb.serde.InfluxDbV2ParametersDocumentSerializer.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.timestreaminfluxdb.serde

import aws.sdk.kotlin.services.timestreaminfluxdb.model.InfluxDbV2Parameters
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 serializeInfluxDbV2ParametersDocument(serializer: Serializer, input: InfluxDbV2Parameters) {
    val FLUXLOGENABLED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("fluxLogEnabled"))
    val HTTPIDLETIMEOUT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("httpIdleTimeout"))
    val HTTPREADHEADERTIMEOUT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("httpReadHeaderTimeout"))
    val HTTPREADTIMEOUT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("httpReadTimeout"))
    val HTTPWRITETIMEOUT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("httpWriteTimeout"))
    val INFLUXQLMAXSELECTBUCKETS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("influxqlMaxSelectBuckets"))
    val INFLUXQLMAXSELECTPOINT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("influxqlMaxSelectPoint"))
    val INFLUXQLMAXSELECTSERIES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("influxqlMaxSelectSeries"))
    val LOGLEVEL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("logLevel"))
    val METRICSDISABLED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("metricsDisabled"))
    val NOTASKS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("noTasks"))
    val PPROFDISABLED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("pprofDisabled"))
    val QUERYCONCURRENCY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("queryConcurrency"))
    val QUERYINITIALMEMORYBYTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("queryInitialMemoryBytes"))
    val QUERYMAXMEMORYBYTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("queryMaxMemoryBytes"))
    val QUERYMEMORYBYTES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("queryMemoryBytes"))
    val QUERYQUEUESIZE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("queryQueueSize"))
    val SESSIONLENGTH_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("sessionLength"))
    val SESSIONRENEWDISABLED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("sessionRenewDisabled"))
    val STORAGECACHEMAXMEMORYSIZE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("storageCacheMaxMemorySize"))
    val STORAGECACHESNAPSHOTMEMORYSIZE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("storageCacheSnapshotMemorySize"))
    val STORAGECACHESNAPSHOTWRITECOLDDURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("storageCacheSnapshotWriteColdDuration"))
    val STORAGECOMPACTFULLWRITECOLDDURATION_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("storageCompactFullWriteColdDuration"))
    val STORAGECOMPACTTHROUGHPUTBURST_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("storageCompactThroughputBurst"))
    val STORAGEMAXCONCURRENTCOMPACTIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("storageMaxConcurrentCompactions"))
    val STORAGEMAXINDEXLOGFILESIZE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("storageMaxIndexLogFileSize"))
    val STORAGENOVALIDATEFIELDSIZE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("storageNoValidateFieldSize"))
    val STORAGERETENTIONCHECKINTERVAL_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("storageRetentionCheckInterval"))
    val STORAGESERIESFILEMAXCONCURRENTSNAPSHOTCOMPACTIONS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("storageSeriesFileMaxConcurrentSnapshotCompactions"))
    val STORAGESERIESIDSETCACHESIZE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Long, JsonSerialName("storageSeriesIdSetCacheSize"))
    val STORAGEWALMAXCONCURRENTWRITES_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Integer, JsonSerialName("storageWalMaxConcurrentWrites"))
    val STORAGEWALMAXWRITEDELAY_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Struct, JsonSerialName("storageWalMaxWriteDelay"))
    val TRACINGTYPE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Enum, JsonSerialName("tracingType"))
    val UIDISABLED_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("uiDisabled"))
    val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
        field(FLUXLOGENABLED_DESCRIPTOR)
        field(HTTPIDLETIMEOUT_DESCRIPTOR)
        field(HTTPREADHEADERTIMEOUT_DESCRIPTOR)
        field(HTTPREADTIMEOUT_DESCRIPTOR)
        field(HTTPWRITETIMEOUT_DESCRIPTOR)
        field(INFLUXQLMAXSELECTBUCKETS_DESCRIPTOR)
        field(INFLUXQLMAXSELECTPOINT_DESCRIPTOR)
        field(INFLUXQLMAXSELECTSERIES_DESCRIPTOR)
        field(LOGLEVEL_DESCRIPTOR)
        field(METRICSDISABLED_DESCRIPTOR)
        field(NOTASKS_DESCRIPTOR)
        field(PPROFDISABLED_DESCRIPTOR)
        field(QUERYCONCURRENCY_DESCRIPTOR)
        field(QUERYINITIALMEMORYBYTES_DESCRIPTOR)
        field(QUERYMAXMEMORYBYTES_DESCRIPTOR)
        field(QUERYMEMORYBYTES_DESCRIPTOR)
        field(QUERYQUEUESIZE_DESCRIPTOR)
        field(SESSIONLENGTH_DESCRIPTOR)
        field(SESSIONRENEWDISABLED_DESCRIPTOR)
        field(STORAGECACHEMAXMEMORYSIZE_DESCRIPTOR)
        field(STORAGECACHESNAPSHOTMEMORYSIZE_DESCRIPTOR)
        field(STORAGECACHESNAPSHOTWRITECOLDDURATION_DESCRIPTOR)
        field(STORAGECOMPACTFULLWRITECOLDDURATION_DESCRIPTOR)
        field(STORAGECOMPACTTHROUGHPUTBURST_DESCRIPTOR)
        field(STORAGEMAXCONCURRENTCOMPACTIONS_DESCRIPTOR)
        field(STORAGEMAXINDEXLOGFILESIZE_DESCRIPTOR)
        field(STORAGENOVALIDATEFIELDSIZE_DESCRIPTOR)
        field(STORAGERETENTIONCHECKINTERVAL_DESCRIPTOR)
        field(STORAGESERIESFILEMAXCONCURRENTSNAPSHOTCOMPACTIONS_DESCRIPTOR)
        field(STORAGESERIESIDSETCACHESIZE_DESCRIPTOR)
        field(STORAGEWALMAXCONCURRENTWRITES_DESCRIPTOR)
        field(STORAGEWALMAXWRITEDELAY_DESCRIPTOR)
        field(TRACINGTYPE_DESCRIPTOR)
        field(UIDISABLED_DESCRIPTOR)
    }

    serializer.serializeStruct(OBJ_DESCRIPTOR) {
        input.fluxLogEnabled?.let { field(FLUXLOGENABLED_DESCRIPTOR, it) }
        input.logLevel?.let { field(LOGLEVEL_DESCRIPTOR, it.value) }
        input.noTasks?.let { field(NOTASKS_DESCRIPTOR, it) }
        input.queryConcurrency?.let { field(QUERYCONCURRENCY_DESCRIPTOR, it) }
        input.queryQueueSize?.let { field(QUERYQUEUESIZE_DESCRIPTOR, it) }
        input.tracingType?.let { field(TRACINGTYPE_DESCRIPTOR, it.value) }
        input.metricsDisabled?.let { field(METRICSDISABLED_DESCRIPTOR, it) }
        input.httpIdleTimeout?.let { field(HTTPIDLETIMEOUT_DESCRIPTOR, it, ::serializeDurationDocument) }
        input.httpReadHeaderTimeout?.let { field(HTTPREADHEADERTIMEOUT_DESCRIPTOR, it, ::serializeDurationDocument) }
        input.httpReadTimeout?.let { field(HTTPREADTIMEOUT_DESCRIPTOR, it, ::serializeDurationDocument) }
        input.httpWriteTimeout?.let { field(HTTPWRITETIMEOUT_DESCRIPTOR, it, ::serializeDurationDocument) }
        input.influxqlMaxSelectBuckets?.let { field(INFLUXQLMAXSELECTBUCKETS_DESCRIPTOR, it) }
        input.influxqlMaxSelectPoint?.let { field(INFLUXQLMAXSELECTPOINT_DESCRIPTOR, it) }
        input.influxqlMaxSelectSeries?.let { field(INFLUXQLMAXSELECTSERIES_DESCRIPTOR, it) }
        input.pprofDisabled?.let { field(PPROFDISABLED_DESCRIPTOR, it) }
        input.queryInitialMemoryBytes?.let { field(QUERYINITIALMEMORYBYTES_DESCRIPTOR, it) }
        input.queryMaxMemoryBytes?.let { field(QUERYMAXMEMORYBYTES_DESCRIPTOR, it) }
        input.queryMemoryBytes?.let { field(QUERYMEMORYBYTES_DESCRIPTOR, it) }
        input.sessionLength?.let { field(SESSIONLENGTH_DESCRIPTOR, it) }
        input.sessionRenewDisabled?.let { field(SESSIONRENEWDISABLED_DESCRIPTOR, it) }
        input.storageCacheMaxMemorySize?.let { field(STORAGECACHEMAXMEMORYSIZE_DESCRIPTOR, it) }
        input.storageCacheSnapshotMemorySize?.let { field(STORAGECACHESNAPSHOTMEMORYSIZE_DESCRIPTOR, it) }
        input.storageCacheSnapshotWriteColdDuration?.let { field(STORAGECACHESNAPSHOTWRITECOLDDURATION_DESCRIPTOR, it, ::serializeDurationDocument) }
        input.storageCompactFullWriteColdDuration?.let { field(STORAGECOMPACTFULLWRITECOLDDURATION_DESCRIPTOR, it, ::serializeDurationDocument) }
        input.storageCompactThroughputBurst?.let { field(STORAGECOMPACTTHROUGHPUTBURST_DESCRIPTOR, it) }
        input.storageMaxConcurrentCompactions?.let { field(STORAGEMAXCONCURRENTCOMPACTIONS_DESCRIPTOR, it) }
        input.storageMaxIndexLogFileSize?.let { field(STORAGEMAXINDEXLOGFILESIZE_DESCRIPTOR, it) }
        input.storageNoValidateFieldSize?.let { field(STORAGENOVALIDATEFIELDSIZE_DESCRIPTOR, it) }
        input.storageRetentionCheckInterval?.let { field(STORAGERETENTIONCHECKINTERVAL_DESCRIPTOR, it, ::serializeDurationDocument) }
        input.storageSeriesFileMaxConcurrentSnapshotCompactions?.let { field(STORAGESERIESFILEMAXCONCURRENTSNAPSHOTCOMPACTIONS_DESCRIPTOR, it) }
        input.storageSeriesIdSetCacheSize?.let { field(STORAGESERIESIDSETCACHESIZE_DESCRIPTOR, it) }
        input.storageWalMaxConcurrentWrites?.let { field(STORAGEWALMAXCONCURRENTWRITES_DESCRIPTOR, it) }
        input.storageWalMaxWriteDelay?.let { field(STORAGEWALMAXWRITEDELAY_DESCRIPTOR, it, ::serializeDurationDocument) }
        input.uiDisabled?.let { field(UIDISABLED_DESCRIPTOR, it) }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy