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

com.pulumi.awsnative.appflow.kotlin.outputs.FlowTask.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.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.appflow.kotlin.outputs

import com.pulumi.awsnative.appflow.kotlin.enums.FlowTaskType
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property connectorOperator Operation to be performed on provided source fields
 * @property destinationField A field value on which source field should be validated
 * @property sourceFields Source fields on which particular task will be applied
 * @property taskProperties A Map used to store task related info
 * @property taskType Type of task
 */
public data class FlowTask(
    public val connectorOperator: FlowConnectorOperator? = null,
    public val destinationField: String? = null,
    public val sourceFields: List,
    public val taskProperties: List? = null,
    public val taskType: FlowTaskType,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.appflow.outputs.FlowTask): FlowTask =
            FlowTask(
                connectorOperator = javaType.connectorOperator().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.appflow.kotlin.outputs.FlowConnectorOperator.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                destinationField = javaType.destinationField().map({ args0 -> args0 }).orElse(null),
                sourceFields = javaType.sourceFields().map({ args0 -> args0 }),
                taskProperties = javaType.taskProperties().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.awsnative.appflow.kotlin.outputs.FlowTaskPropertiesObject.Companion.toKotlin(args0)
                    })
                }),
                taskType = javaType.taskType().let({ args0 ->
                    com.pulumi.awsnative.appflow.kotlin.enums.FlowTaskType.Companion.toKotlin(args0)
                }),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy