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

com.pulumi.aws.appflow.kotlin.inputs.FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.appflow.kotlin.inputs

import com.pulumi.aws.appflow.inputs.FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataArgs.builder
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 errorHandlingConfig
 * @property idFieldNames
 * @property objectPath
 * @property successResponseHandlingConfig Determines how Amazon AppFlow handles the success response that it gets from the connector after placing data. See Success Response Handling Config for more details.
 * @property writeOperationType
 */
public data class FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataArgs(
    public val errorHandlingConfig: Output? =
        null,
    public val idFieldNames: Output>? = null,
    public val objectPath: Output,
    public val successResponseHandlingConfig: Output? =
        null,
    public val writeOperationType: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.appflow.inputs.FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataArgs =
        com.pulumi.aws.appflow.inputs.FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataArgs.builder()
            .errorHandlingConfig(
                errorHandlingConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .idFieldNames(idFieldNames?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .objectPath(objectPath.applyValue({ args0 -> args0 }))
            .successResponseHandlingConfig(
                successResponseHandlingConfig?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            )
            .writeOperationType(writeOperationType?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataArgs].
 */
@PulumiTagMarker
public class FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataArgsBuilder internal constructor() {
    private var errorHandlingConfig:
        Output? =
        null

    private var idFieldNames: Output>? = null

    private var objectPath: Output? = null

    private var successResponseHandlingConfig:
        Output? =
        null

    private var writeOperationType: Output? = null

    /**
     * @param value
     */
    @JvmName("wvhekcqmtjlxftao")
    public suspend fun errorHandlingConfig(`value`: Output) {
        this.errorHandlingConfig = value
    }

    /**
     * @param value
     */
    @JvmName("tphuqwyehnkcrcul")
    public suspend fun idFieldNames(`value`: Output>) {
        this.idFieldNames = value
    }

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

    /**
     * @param values
     */
    @JvmName("bsiundewospdjbdo")
    public suspend fun idFieldNames(values: List>) {
        this.idFieldNames = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("lfnffinwfmuvpppj")
    public suspend fun objectPath(`value`: Output) {
        this.objectPath = value
    }

    /**
     * @param value Determines how Amazon AppFlow handles the success response that it gets from the connector after placing data. See Success Response Handling Config for more details.
     */
    @JvmName("vkvscrvwihhpqibo")
    public suspend fun successResponseHandlingConfig(`value`: Output) {
        this.successResponseHandlingConfig = value
    }

    /**
     * @param value
     */
    @JvmName("witpbvtyskrvwwpj")
    public suspend fun writeOperationType(`value`: Output) {
        this.writeOperationType = value
    }

    /**
     * @param value
     */
    @JvmName("adjwpyicihetavqr")
    public suspend fun errorHandlingConfig(`value`: FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataErrorHandlingConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.errorHandlingConfig = mapped
    }

    /**
     * @param argument
     */
    @JvmName("udssxnimtfuingbo")
    public suspend fun errorHandlingConfig(argument: suspend FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataErrorHandlingConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataErrorHandlingConfigArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.errorHandlingConfig = mapped
    }

    /**
     * @param value
     */
    @JvmName("ultyrbrfgedapjdv")
    public suspend fun idFieldNames(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.idFieldNames = mapped
    }

    /**
     * @param values
     */
    @JvmName("keejhdxbmwwjxhtc")
    public suspend fun idFieldNames(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.idFieldNames = mapped
    }

    /**
     * @param value
     */
    @JvmName("midvgdmbcphgtlwg")
    public suspend fun objectPath(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.objectPath = mapped
    }

    /**
     * @param value Determines how Amazon AppFlow handles the success response that it gets from the connector after placing data. See Success Response Handling Config for more details.
     */
    @JvmName("pdshjryydbmfetdg")
    public suspend fun successResponseHandlingConfig(`value`: FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataSuccessResponseHandlingConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.successResponseHandlingConfig = mapped
    }

    /**
     * @param argument Determines how Amazon AppFlow handles the success response that it gets from the connector after placing data. See Success Response Handling Config for more details.
     */
    @JvmName("uedwsdwuxmsgmlro")
    public suspend fun successResponseHandlingConfig(argument: suspend FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataSuccessResponseHandlingConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataSuccessResponseHandlingConfigArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.successResponseHandlingConfig = mapped
    }

    /**
     * @param value
     */
    @JvmName("dvavhjwkdeyjgemh")
    public suspend fun writeOperationType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.writeOperationType = mapped
    }

    internal fun build(): FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataArgs =
        FlowDestinationFlowConfigDestinationConnectorPropertiesSapoDataArgs(
            errorHandlingConfig = errorHandlingConfig,
            idFieldNames = idFieldNames,
            objectPath = objectPath ?: throw PulumiNullFieldException("objectPath"),
            successResponseHandlingConfig = successResponseHandlingConfig,
            writeOperationType = writeOperationType,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy