
commonMain.aws.sdk.kotlin.services.kendra.serde.GitHubDocumentCrawlPropertiesDocumentSerializer.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kendra.serde
import aws.sdk.kotlin.services.kendra.model.GitHubDocumentCrawlProperties
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 serializeGitHubDocumentCrawlPropertiesDocument(serializer: Serializer, input: GitHubDocumentCrawlProperties) {
val CRAWLISSUE_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("CrawlIssue"))
val CRAWLISSUECOMMENT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("CrawlIssueComment"))
val CRAWLISSUECOMMENTATTACHMENT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("CrawlIssueCommentAttachment"))
val CRAWLPULLREQUEST_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("CrawlPullRequest"))
val CRAWLPULLREQUESTCOMMENT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("CrawlPullRequestComment"))
val CRAWLPULLREQUESTCOMMENTATTACHMENT_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("CrawlPullRequestCommentAttachment"))
val CRAWLREPOSITORYDOCUMENTS_DESCRIPTOR = SdkFieldDescriptor(SerialKind.Boolean, JsonSerialName("CrawlRepositoryDocuments"))
val OBJ_DESCRIPTOR = SdkObjectDescriptor.build {
field(CRAWLISSUE_DESCRIPTOR)
field(CRAWLISSUECOMMENT_DESCRIPTOR)
field(CRAWLISSUECOMMENTATTACHMENT_DESCRIPTOR)
field(CRAWLPULLREQUEST_DESCRIPTOR)
field(CRAWLPULLREQUESTCOMMENT_DESCRIPTOR)
field(CRAWLPULLREQUESTCOMMENTATTACHMENT_DESCRIPTOR)
field(CRAWLREPOSITORYDOCUMENTS_DESCRIPTOR)
}
serializer.serializeStruct(OBJ_DESCRIPTOR) {
if (input.crawlRepositoryDocuments != false) field(CRAWLREPOSITORYDOCUMENTS_DESCRIPTOR, input.crawlRepositoryDocuments)
if (input.crawlIssue != false) field(CRAWLISSUE_DESCRIPTOR, input.crawlIssue)
if (input.crawlIssueComment != false) field(CRAWLISSUECOMMENT_DESCRIPTOR, input.crawlIssueComment)
if (input.crawlIssueCommentAttachment != false) field(CRAWLISSUECOMMENTATTACHMENT_DESCRIPTOR, input.crawlIssueCommentAttachment)
if (input.crawlPullRequest != false) field(CRAWLPULLREQUEST_DESCRIPTOR, input.crawlPullRequest)
if (input.crawlPullRequestComment != false) field(CRAWLPULLREQUESTCOMMENT_DESCRIPTOR, input.crawlPullRequestComment)
if (input.crawlPullRequestCommentAttachment != false) field(CRAWLPULLREQUESTCOMMENTATTACHMENT_DESCRIPTOR, input.crawlPullRequestCommentAttachment)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy