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

com.pulumi.awsnative.appflow.kotlin.inputs.ConnectorProfileConfigArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.appflow.kotlin.inputs

import com.pulumi.awsnative.appflow.inputs.ConnectorProfileConfigArgs.builder
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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Connector specific configurations needed to create connector profile
 * @property connectorProfileCredentials The connector-specific credentials required by each connector.
 * @property connectorProfileProperties The connector-specific properties of the profile configuration.
 */
public data class ConnectorProfileConfigArgs(
    public val connectorProfileCredentials: Output? = null,
    public val connectorProfileProperties: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.appflow.inputs.ConnectorProfileConfigArgs =
        com.pulumi.awsnative.appflow.inputs.ConnectorProfileConfigArgs.builder()
            .connectorProfileCredentials(
                connectorProfileCredentials?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .connectorProfileProperties(
                connectorProfileProperties?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [ConnectorProfileConfigArgs].
 */
@PulumiTagMarker
public class ConnectorProfileConfigArgsBuilder internal constructor() {
    private var connectorProfileCredentials: Output? = null

    private var connectorProfileProperties: Output? = null

    /**
     * @param value The connector-specific credentials required by each connector.
     */
    @JvmName("issqwxgvfosqrojc")
    public suspend fun connectorProfileCredentials(`value`: Output) {
        this.connectorProfileCredentials = value
    }

    /**
     * @param value The connector-specific properties of the profile configuration.
     */
    @JvmName("muopalcjmkxcqwya")
    public suspend fun connectorProfileProperties(`value`: Output) {
        this.connectorProfileProperties = value
    }

    /**
     * @param value The connector-specific credentials required by each connector.
     */
    @JvmName("oiwsgjvbsvruemrv")
    public suspend fun connectorProfileCredentials(`value`: ConnectorProfileCredentialsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.connectorProfileCredentials = mapped
    }

    /**
     * @param argument The connector-specific credentials required by each connector.
     */
    @JvmName("ebyuaveyxdspgbkk")
    public suspend fun connectorProfileCredentials(argument: suspend ConnectorProfileCredentialsArgsBuilder.() -> Unit) {
        val toBeMapped = ConnectorProfileCredentialsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.connectorProfileCredentials = mapped
    }

    /**
     * @param value The connector-specific properties of the profile configuration.
     */
    @JvmName("faefyvfstekuskdy")
    public suspend fun connectorProfileProperties(`value`: ConnectorProfilePropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.connectorProfileProperties = mapped
    }

    /**
     * @param argument The connector-specific properties of the profile configuration.
     */
    @JvmName("gnbkjanycscuawsj")
    public suspend fun connectorProfileProperties(argument: suspend ConnectorProfilePropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = ConnectorProfilePropertiesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.connectorProfileProperties = mapped
    }

    internal fun build(): ConnectorProfileConfigArgs = ConnectorProfileConfigArgs(
        connectorProfileCredentials = connectorProfileCredentials,
        connectorProfileProperties = connectorProfileProperties,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy