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

com.pulumi.awsnative.kafkaconnect.kotlin.WorkerConfigurationArgs.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.kafkaconnect.kotlin

import com.pulumi.awsnative.kafkaconnect.WorkerConfigurationArgs.builder
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

/**
 * The configuration of the workers, which are the processes that run the connector logic.
 * @property description A summary description of the worker configuration.
 * @property name The name of the worker configuration.
 * @property propertiesFileContent Base64 encoded contents of connect-distributed.properties file.
 * @property tags A collection of tags associated with a resource
 */
public data class WorkerConfigurationArgs(
    public val description: Output? = null,
    public val name: Output? = null,
    public val propertiesFileContent: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.kafkaconnect.WorkerConfigurationArgs =
        com.pulumi.awsnative.kafkaconnect.WorkerConfigurationArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .propertiesFileContent(propertiesFileContent?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [WorkerConfigurationArgs].
 */
@PulumiTagMarker
public class WorkerConfigurationArgsBuilder internal constructor() {
    private var description: Output? = null

    private var name: Output? = null

    private var propertiesFileContent: Output? = null

    private var tags: Output>? = null

    /**
     * @param value A summary description of the worker configuration.
     */
    @JvmName("lcbsxbveacosxjqj")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The name of the worker configuration.
     */
    @JvmName("daumqhwpwhitbejp")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Base64 encoded contents of connect-distributed.properties file.
     */
    @JvmName("ovvepwwmhwrucojq")
    public suspend fun propertiesFileContent(`value`: Output) {
        this.propertiesFileContent = value
    }

    /**
     * @param value A collection of tags associated with a resource
     */
    @JvmName("dbfdqywowrpxoiwp")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values A collection of tags associated with a resource
     */
    @JvmName("xprymklhdefpcryn")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value A summary description of the worker configuration.
     */
    @JvmName("jikxelcgdsebqnid")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The name of the worker configuration.
     */
    @JvmName("xdhjuobopevvrjwi")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Base64 encoded contents of connect-distributed.properties file.
     */
    @JvmName("ocalbmaoymbfytia")
    public suspend fun propertiesFileContent(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.propertiesFileContent = mapped
    }

    /**
     * @param value A collection of tags associated with a resource
     */
    @JvmName("ipywxoplrixebubg")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument A collection of tags associated with a resource
     */
    @JvmName("kyfevietdpmnlfxy")
    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 collection of tags associated with a resource
     */
    @JvmName("hgbdbjrvqbnolpcc")
    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 collection of tags associated with a resource
     */
    @JvmName("vopseaufjdeajqmc")
    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 collection of tags associated with a resource
     */
    @JvmName("fqwbuvkidgdrgkiu")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): WorkerConfigurationArgs = WorkerConfigurationArgs(
        description = description,
        name = name,
        propertiesFileContent = propertiesFileContent,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy