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

com.pulumi.awsnative.b2bi.kotlin.TransformerArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.b2bi.kotlin

import com.pulumi.awsnative.b2bi.TransformerArgs.builder
import com.pulumi.awsnative.b2bi.kotlin.enums.TransformerFileFormat
import com.pulumi.awsnative.b2bi.kotlin.enums.TransformerStatus
import com.pulumi.awsnative.b2bi.kotlin.inputs.TransformerEdiTypePropertiesArgs
import com.pulumi.awsnative.b2bi.kotlin.inputs.TransformerEdiTypePropertiesArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Definition of AWS::B2BI::Transformer Resource Type
 * @property ediType Returns the details for the EDI standard that is being used for the transformer. Currently, only X12 is supported. X12 is a set of standards and corresponding messages that define specific business documents.
 * @property fileFormat Returns that the currently supported file formats for EDI transformations are `JSON` and `XML` .
 * @property mappingTemplate Returns a sample EDI document that is used by a transformer as a guide for processing the EDI data.
 * @property name Returns the descriptive name for the transformer.
 * @property sampleDocument Returns a sample EDI document that is used by a transformer as a guide for processing the EDI data.
 * @property status Returns the state of the newly created transformer. The transformer can be either `active` or `inactive` . For the transformer to be used in a capability, its status must `active` .
 * @property tags A key-value pair for a specific transformer. Tags are metadata that you can use to search for and group capabilities for various purposes.
 */
public data class TransformerArgs(
    public val ediType: Output? = null,
    public val fileFormat: Output? = null,
    public val mappingTemplate: Output? = null,
    public val name: Output? = null,
    public val sampleDocument: Output? = null,
    public val status: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.b2bi.TransformerArgs =
        com.pulumi.awsnative.b2bi.TransformerArgs.builder()
            .ediType(ediType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .fileFormat(fileFormat?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .mappingTemplate(mappingTemplate?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .sampleDocument(sampleDocument?.applyValue({ args0 -> args0 }))
            .status(status?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [TransformerArgs].
 */
@PulumiTagMarker
public class TransformerArgsBuilder internal constructor() {
    private var ediType: Output? = null

    private var fileFormat: Output? = null

    private var mappingTemplate: Output? = null

    private var name: Output? = null

    private var sampleDocument: Output? = null

    private var status: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Returns the details for the EDI standard that is being used for the transformer. Currently, only X12 is supported. X12 is a set of standards and corresponding messages that define specific business documents.
     */
    @JvmName("dohnytbvhxdvctni")
    public suspend fun ediType(`value`: Output) {
        this.ediType = value
    }

    /**
     * @param value Returns that the currently supported file formats for EDI transformations are `JSON` and `XML` .
     */
    @JvmName("gbagwnkqsefshkpl")
    public suspend fun fileFormat(`value`: Output) {
        this.fileFormat = value
    }

    /**
     * @param value Returns a sample EDI document that is used by a transformer as a guide for processing the EDI data.
     */
    @JvmName("hjqcuqvhlfanwdmj")
    public suspend fun mappingTemplate(`value`: Output) {
        this.mappingTemplate = value
    }

    /**
     * @param value Returns the descriptive name for the transformer.
     */
    @JvmName("ksgfdibrqtcvftfs")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Returns a sample EDI document that is used by a transformer as a guide for processing the EDI data.
     */
    @JvmName("ndqgogpcwfeicvoi")
    public suspend fun sampleDocument(`value`: Output) {
        this.sampleDocument = value
    }

    /**
     * @param value Returns the state of the newly created transformer. The transformer can be either `active` or `inactive` . For the transformer to be used in a capability, its status must `active` .
     */
    @JvmName("dwgeeccrofpstrcr")
    public suspend fun status(`value`: Output) {
        this.status = value
    }

    /**
     * @param value A key-value pair for a specific transformer. Tags are metadata that you can use to search for and group capabilities for various purposes.
     */
    @JvmName("xwedburrwkdhuweh")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("etetgcyuirhoolwc")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values A key-value pair for a specific transformer. Tags are metadata that you can use to search for and group capabilities for various purposes.
     */
    @JvmName("cmgjyhffyxvbvsmc")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Returns the details for the EDI standard that is being used for the transformer. Currently, only X12 is supported. X12 is a set of standards and corresponding messages that define specific business documents.
     */
    @JvmName("cxqfjpkbiwolaxsb")
    public suspend fun ediType(`value`: TransformerEdiTypePropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ediType = mapped
    }

    /**
     * @param argument Returns the details for the EDI standard that is being used for the transformer. Currently, only X12 is supported. X12 is a set of standards and corresponding messages that define specific business documents.
     */
    @JvmName("dkiifwpwbfvuouum")
    public suspend fun ediType(argument: suspend TransformerEdiTypePropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = TransformerEdiTypePropertiesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.ediType = mapped
    }

    /**
     * @param value Returns that the currently supported file formats for EDI transformations are `JSON` and `XML` .
     */
    @JvmName("ylsljjbdrnsvfqjc")
    public suspend fun fileFormat(`value`: TransformerFileFormat?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fileFormat = mapped
    }

    /**
     * @param value Returns a sample EDI document that is used by a transformer as a guide for processing the EDI data.
     */
    @JvmName("oyfubunkyitsbkjg")
    public suspend fun mappingTemplate(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mappingTemplate = mapped
    }

    /**
     * @param value Returns the descriptive name for the transformer.
     */
    @JvmName("cuttaedtxidlgxao")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Returns a sample EDI document that is used by a transformer as a guide for processing the EDI data.
     */
    @JvmName("tsqxmqfvlpldvnxm")
    public suspend fun sampleDocument(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sampleDocument = mapped
    }

    /**
     * @param value Returns the state of the newly created transformer. The transformer can be either `active` or `inactive` . For the transformer to be used in a capability, its status must `active` .
     */
    @JvmName("huotxbgosakyauvw")
    public suspend fun status(`value`: TransformerStatus?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.status = mapped
    }

    /**
     * @param value A key-value pair for a specific transformer. Tags are metadata that you can use to search for and group capabilities for various purposes.
     */
    @JvmName("duaoiudvqirwidla")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument A key-value pair for a specific transformer. Tags are metadata that you can use to search for and group capabilities for various purposes.
     */
    @JvmName("qfpdwptmntebllxi")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument A key-value pair for a specific transformer. Tags are metadata that you can use to search for and group capabilities for various purposes.
     */
    @JvmName("ejcjicvrurwgqdew")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument A key-value pair for a specific transformer. Tags are metadata that you can use to search for and group capabilities for various purposes.
     */
    @JvmName("oxmjgomsbaeamukl")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values A key-value pair for a specific transformer. Tags are metadata that you can use to search for and group capabilities for various purposes.
     */
    @JvmName("ahinusxxedvpblkk")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): TransformerArgs = TransformerArgs(
        ediType = ediType,
        fileFormat = fileFormat,
        mappingTemplate = mappingTemplate,
        name = name,
        sampleDocument = sampleDocument,
        status = status,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy