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

com.pulumi.googlenative.healthcare.v1beta1.kotlin.inputs.ParserConfigArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.healthcare.v1beta1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.healthcare.v1beta1.inputs.ParserConfigArgs.builder
import com.pulumi.googlenative.healthcare.v1beta1.kotlin.enums.ParserConfigVersion
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * The configuration for the parser. It determines how the server parses the messages.
 * @property allowNullHeader Determines whether messages with no header are allowed.
 * @property schema Schemas used to parse messages in this store, if schematized parsing is desired.
 * @property segmentTerminator Byte(s) to use as the segment terminator. If this is unset, '\r' is used as segment terminator, matching the HL7 version 2 specification.
 * @property version Immutable. Determines the version of both the default parser to be used when `schema` is not given, as well as the schematized parser used when `schema` is specified. This field is immutable after HL7v2 store creation.
 */
public data class ParserConfigArgs(
    public val allowNullHeader: Output? = null,
    public val schema: Output? = null,
    public val segmentTerminator: Output? = null,
    public val version: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.healthcare.v1beta1.inputs.ParserConfigArgs =
        com.pulumi.googlenative.healthcare.v1beta1.inputs.ParserConfigArgs.builder()
            .allowNullHeader(allowNullHeader?.applyValue({ args0 -> args0 }))
            .schema(schema?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .segmentTerminator(segmentTerminator?.applyValue({ args0 -> args0 }))
            .version(version?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ParserConfigArgs].
 */
@PulumiTagMarker
public class ParserConfigArgsBuilder internal constructor() {
    private var allowNullHeader: Output? = null

    private var schema: Output? = null

    private var segmentTerminator: Output? = null

    private var version: Output? = null

    /**
     * @param value Determines whether messages with no header are allowed.
     */
    @JvmName("eqkfntxbkkrmxrlm")
    public suspend fun allowNullHeader(`value`: Output) {
        this.allowNullHeader = value
    }

    /**
     * @param value Schemas used to parse messages in this store, if schematized parsing is desired.
     */
    @JvmName("jhilpkyhiisrdavd")
    public suspend fun schema(`value`: Output) {
        this.schema = value
    }

    /**
     * @param value Byte(s) to use as the segment terminator. If this is unset, '\r' is used as segment terminator, matching the HL7 version 2 specification.
     */
    @JvmName("mkhgssaikduuikpd")
    public suspend fun segmentTerminator(`value`: Output) {
        this.segmentTerminator = value
    }

    /**
     * @param value Immutable. Determines the version of both the default parser to be used when `schema` is not given, as well as the schematized parser used when `schema` is specified. This field is immutable after HL7v2 store creation.
     */
    @JvmName("kaalknknghlweptd")
    public suspend fun version(`value`: Output) {
        this.version = value
    }

    /**
     * @param value Determines whether messages with no header are allowed.
     */
    @JvmName("nesssqbpdhymdarn")
    public suspend fun allowNullHeader(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowNullHeader = mapped
    }

    /**
     * @param value Schemas used to parse messages in this store, if schematized parsing is desired.
     */
    @JvmName("mlncccdiqmmgddjq")
    public suspend fun schema(`value`: SchemaPackageArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.schema = mapped
    }

    /**
     * @param argument Schemas used to parse messages in this store, if schematized parsing is desired.
     */
    @JvmName("fmuuldpntlfitrij")
    public suspend fun schema(argument: suspend SchemaPackageArgsBuilder.() -> Unit) {
        val toBeMapped = SchemaPackageArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.schema = mapped
    }

    /**
     * @param value Byte(s) to use as the segment terminator. If this is unset, '\r' is used as segment terminator, matching the HL7 version 2 specification.
     */
    @JvmName("kaefklierfybpkrv")
    public suspend fun segmentTerminator(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.segmentTerminator = mapped
    }

    /**
     * @param value Immutable. Determines the version of both the default parser to be used when `schema` is not given, as well as the schematized parser used when `schema` is specified. This field is immutable after HL7v2 store creation.
     */
    @JvmName("xydfohccyvwniolj")
    public suspend fun version(`value`: ParserConfigVersion?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.version = mapped
    }

    internal fun build(): ParserConfigArgs = ParserConfigArgs(
        allowNullHeader = allowNullHeader,
        schema = schema,
        segmentTerminator = segmentTerminator,
        version = version,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy