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

com.pulumi.awsnative.customerprofiles.kotlin.inputs.IntegrationTaskArgs.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.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.customerprofiles.kotlin.inputs

import com.pulumi.awsnative.customerprofiles.inputs.IntegrationTaskArgs.builder
import com.pulumi.awsnative.customerprofiles.kotlin.enums.IntegrationTaskType
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
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

/**
 *
 * @property connectorOperator The operation to be performed on the provided source fields.
 * @property destinationField A field in a destination connector, or a field value against which Amazon AppFlow validates a source field.
 * @property sourceFields The source fields to which a particular task is applied.
 * @property taskProperties A map used to store task-related information. The service looks for particular information based on the TaskType.
 * @property taskType Specifies the particular task implementation that Amazon AppFlow performs.
 */
public data class IntegrationTaskArgs(
    public val connectorOperator: Output? = null,
    public val destinationField: Output? = null,
    public val sourceFields: Output>,
    public val taskProperties: Output>? = null,
    public val taskType: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.customerprofiles.inputs.IntegrationTaskArgs =
        com.pulumi.awsnative.customerprofiles.inputs.IntegrationTaskArgs.builder()
            .connectorOperator(connectorOperator?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .destinationField(destinationField?.applyValue({ args0 -> args0 }))
            .sourceFields(sourceFields.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .taskProperties(
                taskProperties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .taskType(taskType.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [IntegrationTaskArgs].
 */
@PulumiTagMarker
public class IntegrationTaskArgsBuilder internal constructor() {
    private var connectorOperator: Output? = null

    private var destinationField: Output? = null

    private var sourceFields: Output>? = null

    private var taskProperties: Output>? = null

    private var taskType: Output? = null

    /**
     * @param value The operation to be performed on the provided source fields.
     */
    @JvmName("snkhlknadmghphnq")
    public suspend fun connectorOperator(`value`: Output) {
        this.connectorOperator = value
    }

    /**
     * @param value A field in a destination connector, or a field value against which Amazon AppFlow validates a source field.
     */
    @JvmName("xaghkjgvvjnybdwd")
    public suspend fun destinationField(`value`: Output) {
        this.destinationField = value
    }

    /**
     * @param value The source fields to which a particular task is applied.
     */
    @JvmName("ksytcupnxivcdidl")
    public suspend fun sourceFields(`value`: Output>) {
        this.sourceFields = value
    }

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

    /**
     * @param values The source fields to which a particular task is applied.
     */
    @JvmName("gyqvlwtbierkgcrx")
    public suspend fun sourceFields(values: List>) {
        this.sourceFields = Output.all(values)
    }

    /**
     * @param value A map used to store task-related information. The service looks for particular information based on the TaskType.
     */
    @JvmName("dotnxiowogtothga")
    public suspend fun taskProperties(`value`: Output>) {
        this.taskProperties = value
    }

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

    /**
     * @param values A map used to store task-related information. The service looks for particular information based on the TaskType.
     */
    @JvmName("lojdflgmvnrsihtn")
    public suspend fun taskProperties(values: List>) {
        this.taskProperties = Output.all(values)
    }

    /**
     * @param value Specifies the particular task implementation that Amazon AppFlow performs.
     */
    @JvmName("npednmpjkjldtgfx")
    public suspend fun taskType(`value`: Output) {
        this.taskType = value
    }

    /**
     * @param value The operation to be performed on the provided source fields.
     */
    @JvmName("ydvmqgosgqoscjag")
    public suspend fun connectorOperator(`value`: IntegrationConnectorOperatorArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.connectorOperator = mapped
    }

    /**
     * @param argument The operation to be performed on the provided source fields.
     */
    @JvmName("amwhrcslkuwojfva")
    public suspend fun connectorOperator(argument: suspend IntegrationConnectorOperatorArgsBuilder.() -> Unit) {
        val toBeMapped = IntegrationConnectorOperatorArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.connectorOperator = mapped
    }

    /**
     * @param value A field in a destination connector, or a field value against which Amazon AppFlow validates a source field.
     */
    @JvmName("agcynwxtujdqgkxy")
    public suspend fun destinationField(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.destinationField = mapped
    }

    /**
     * @param value The source fields to which a particular task is applied.
     */
    @JvmName("ebrmnbnlhpogiejp")
    public suspend fun sourceFields(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sourceFields = mapped
    }

    /**
     * @param values The source fields to which a particular task is applied.
     */
    @JvmName("nfypdtdhbovxqbrt")
    public suspend fun sourceFields(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sourceFields = mapped
    }

    /**
     * @param value A map used to store task-related information. The service looks for particular information based on the TaskType.
     */
    @JvmName("iwwcuqsxgkwgwrxn")
    public suspend fun taskProperties(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.taskProperties = mapped
    }

    /**
     * @param argument A map used to store task-related information. The service looks for particular information based on the TaskType.
     */
    @JvmName("ivxpfaykeebbaauc")
    public suspend fun taskProperties(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            IntegrationTaskPropertiesMapArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.taskProperties = mapped
    }

    /**
     * @param argument A map used to store task-related information. The service looks for particular information based on the TaskType.
     */
    @JvmName("wkcwmokhyujoccev")
    public suspend fun taskProperties(vararg argument: suspend IntegrationTaskPropertiesMapArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            IntegrationTaskPropertiesMapArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.taskProperties = mapped
    }

    /**
     * @param argument A map used to store task-related information. The service looks for particular information based on the TaskType.
     */
    @JvmName("vcafrngmuyexaunu")
    public suspend fun taskProperties(argument: suspend IntegrationTaskPropertiesMapArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            IntegrationTaskPropertiesMapArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.taskProperties = mapped
    }

    /**
     * @param values A map used to store task-related information. The service looks for particular information based on the TaskType.
     */
    @JvmName("ssycxxicjrftemku")
    public suspend fun taskProperties(vararg values: IntegrationTaskPropertiesMapArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.taskProperties = mapped
    }

    /**
     * @param value Specifies the particular task implementation that Amazon AppFlow performs.
     */
    @JvmName("vusptuioeokoarto")
    public suspend fun taskType(`value`: IntegrationTaskType) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.taskType = mapped
    }

    internal fun build(): IntegrationTaskArgs = IntegrationTaskArgs(
        connectorOperator = connectorOperator,
        destinationField = destinationField,
        sourceFields = sourceFields ?: throw PulumiNullFieldException("sourceFields"),
        taskProperties = taskProperties,
        taskType = taskType ?: throw PulumiNullFieldException("taskType"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy