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

com.pulumi.azurenative.iotoperationsmq.kotlin.KafkaConnectorTopicMapArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.iotoperationsmq.kotlin

import com.pulumi.azurenative.iotoperationsmq.KafkaConnectorTopicMapArgs.builder
import com.pulumi.azurenative.iotoperationsmq.kotlin.enums.KafkaMessageCompressionType
import com.pulumi.azurenative.iotoperationsmq.kotlin.enums.KafkaPartitionStrategy
import com.pulumi.azurenative.iotoperationsmq.kotlin.inputs.ExtendedLocationPropertyArgs
import com.pulumi.azurenative.iotoperationsmq.kotlin.inputs.ExtendedLocationPropertyArgsBuilder
import com.pulumi.azurenative.iotoperationsmq.kotlin.inputs.KafkaRoutesArgs
import com.pulumi.azurenative.iotoperationsmq.kotlin.inputs.KafkaRoutesArgsBuilder
import com.pulumi.azurenative.iotoperationsmq.kotlin.inputs.KafkaTopicMapBatchingArgs
import com.pulumi.azurenative.iotoperationsmq.kotlin.inputs.KafkaTopicMapBatchingArgsBuilder
import com.pulumi.core.Either
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * MQ kafkaConnector/topicMap resource
 * Azure REST API version: 2023-10-04-preview.
 * ## Example Usage
 * ### KafkaConnectorTopicMap_CreateOrUpdate
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var kafkaConnectorTopicMap = new AzureNative.IoTOperationsMQ.KafkaConnectorTopicMap("kafkaConnectorTopicMap", new()
 *     {
 *         Batching = new AzureNative.IoTOperationsMQ.Inputs.KafkaTopicMapBatchingArgs
 *         {
 *             Enabled = true,
 *             LatencyMs = 9110,
 *             MaxBytes = 732052221,
 *             MaxMessages = 373078076,
 *         },
 *         Compression = AzureNative.IoTOperationsMQ.KafkaMessageCompressionType.None,
 *         CopyMqttProperties = "efpqgkycuawnzyubdyt",
 *         ExtendedLocation = new AzureNative.IoTOperationsMQ.Inputs.ExtendedLocationPropertyArgs
 *         {
 *             Name = "an",
 *             Type = AzureNative.IoTOperationsMQ.ExtendedLocationType.CustomLocation,
 *         },
 *         KafkaConnectorName = "216VN",
 *         KafkaConnectorRef = "icivjwerdspx",
 *         Location = "pavphpzfsgdudpyvufyebqh",
 *         MqName = "-1-eD-7-J",
 *         PartitionKeyProperty = "c",
 *         PartitionStrategy = AzureNative.IoTOperationsMQ.KafkaPartitionStrategy.@Default,
 *         ResourceGroupName = "rgiotoperationsmq",
 *         Routes = new[]
 *         {
 *             new AzureNative.IoTOperationsMQ.Inputs.KafkaRoutesArgs
 *             {
 *                 KafkaToMqtt = new AzureNative.IoTOperationsMQ.Inputs.KafkaToMqttRoutesArgs
 *                 {
 *                     ConsumerGroupId = "usork",
 *                     KafkaTopic = "ggwhwbsr",
 *                     MqttTopic = "jwvmmhfqqkkmqrpslbdfmpbdetfu",
 *                     Name = "lrnvudysggscnqvmnlkrk",
 *                     Qos = 1,
 *                 },
 *                 MqttToKafka = new AzureNative.IoTOperationsMQ.Inputs.MqttToKafkaRoutesArgs
 *                 {
 *                     KafkaAcks = AzureNative.IoTOperationsMQ.KafkaAcks.Zero,
 *                     KafkaTopic = "tellycttwulueqcpqf",
 *                     MqttTopic = "raipkrcwvdnnflywhgjwnquarf",
 *                     Name = "qpshqcaxvxnyjzimvchngupzezdei",
 *                     Qos = 1,
 *                     SharedSubscription = new AzureNative.IoTOperationsMQ.Inputs.KafkaSharedSubscriptionPropertiesArgs
 *                     {
 *                         GroupMinimumShareNumber = 216,
 *                         GroupName = "nwdyccsditzhchuksmi",
 *                     },
 *                 },
 *             },
 *         },
 *         Tags = null,
 *         TopicMapName = "q582ViEY-b7wF1OO2A",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	iotoperationsmq "github.com/pulumi/pulumi-azure-native-sdk/iotoperationsmq/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := iotoperationsmq.NewKafkaConnectorTopicMap(ctx, "kafkaConnectorTopicMap", &iotoperationsmq.KafkaConnectorTopicMapArgs{
 * 			Batching: &iotoperationsmq.KafkaTopicMapBatchingArgs{
 * 				Enabled:     pulumi.Bool(true),
 * 				LatencyMs:   pulumi.Int(9110),
 * 				MaxBytes:    pulumi.Float64(732052221),
 * 				MaxMessages: pulumi.Float64(373078076),
 * 			},
 * 			Compression:        pulumi.String(iotoperationsmq.KafkaMessageCompressionTypeNone),
 * 			CopyMqttProperties: pulumi.String("efpqgkycuawnzyubdyt"),
 * 			ExtendedLocation: &iotoperationsmq.ExtendedLocationPropertyArgs{
 * 				Name: pulumi.String("an"),
 * 				Type: pulumi.String(iotoperationsmq.ExtendedLocationTypeCustomLocation),
 * 			},
 * 			KafkaConnectorName:   pulumi.String("216VN"),
 * 			KafkaConnectorRef:    pulumi.String("icivjwerdspx"),
 * 			Location:             pulumi.String("pavphpzfsgdudpyvufyebqh"),
 * 			MqName:               pulumi.String("-1-eD-7-J"),
 * 			PartitionKeyProperty: pulumi.String("c"),
 * 			PartitionStrategy:    pulumi.String(iotoperationsmq.KafkaPartitionStrategyDefault),
 * 			ResourceGroupName:    pulumi.String("rgiotoperationsmq"),
 * 			Routes: iotoperationsmq.KafkaRoutesArray{
 * 				&iotoperationsmq.KafkaRoutesArgs{
 * 					KafkaToMqtt: &iotoperationsmq.KafkaToMqttRoutesArgs{
 * 						ConsumerGroupId: pulumi.String("usork"),
 * 						KafkaTopic:      pulumi.String("ggwhwbsr"),
 * 						MqttTopic:       pulumi.String("jwvmmhfqqkkmqrpslbdfmpbdetfu"),
 * 						Name:            pulumi.String("lrnvudysggscnqvmnlkrk"),
 * 						Qos:             pulumi.Int(1),
 * 					},
 * 					MqttToKafka: &iotoperationsmq.MqttToKafkaRoutesArgs{
 * 						KafkaAcks:  pulumi.String(iotoperationsmq.KafkaAcksZero),
 * 						KafkaTopic: pulumi.String("tellycttwulueqcpqf"),
 * 						MqttTopic:  pulumi.String("raipkrcwvdnnflywhgjwnquarf"),
 * 						Name:       pulumi.String("qpshqcaxvxnyjzimvchngupzezdei"),
 * 						Qos:        pulumi.Int(1),
 * 						SharedSubscription: &iotoperationsmq.KafkaSharedSubscriptionPropertiesArgs{
 * 							GroupMinimumShareNumber: pulumi.Int(216),
 * 							GroupName:               pulumi.String("nwdyccsditzhchuksmi"),
 * 						},
 * 					},
 * 				},
 * 			},
 * 			Tags:         nil,
 * 			TopicMapName: pulumi.String("q582ViEY-b7wF1OO2A"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.iotoperationsmq.KafkaConnectorTopicMap;
 * import com.pulumi.azurenative.iotoperationsmq.KafkaConnectorTopicMapArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.KafkaTopicMapBatchingArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.ExtendedLocationPropertyArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.KafkaRoutesArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.KafkaToMqttRoutesArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.MqttToKafkaRoutesArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.KafkaSharedSubscriptionPropertiesArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var kafkaConnectorTopicMap = new KafkaConnectorTopicMap("kafkaConnectorTopicMap", KafkaConnectorTopicMapArgs.builder()
 *             .batching(KafkaTopicMapBatchingArgs.builder()
 *                 .enabled(true)
 *                 .latencyMs(9110)
 *                 .maxBytes(732052221)
 *                 .maxMessages(373078076)
 *                 .build())
 *             .compression("none")
 *             .copyMqttProperties("efpqgkycuawnzyubdyt")
 *             .extendedLocation(ExtendedLocationPropertyArgs.builder()
 *                 .name("an")
 *                 .type("CustomLocation")
 *                 .build())
 *             .kafkaConnectorName("216VN")
 *             .kafkaConnectorRef("icivjwerdspx")
 *             .location("pavphpzfsgdudpyvufyebqh")
 *             .mqName("-1-eD-7-J")
 *             .partitionKeyProperty("c")
 *             .partitionStrategy("default")
 *             .resourceGroupName("rgiotoperationsmq")
 *             .routes(KafkaRoutesArgs.builder()
 *                 .kafkaToMqtt(KafkaToMqttRoutesArgs.builder()
 *                     .consumerGroupId("usork")
 *                     .kafkaTopic("ggwhwbsr")
 *                     .mqttTopic("jwvmmhfqqkkmqrpslbdfmpbdetfu")
 *                     .name("lrnvudysggscnqvmnlkrk")
 *                     .qos(1)
 *                     .build())
 *                 .mqttToKafka(MqttToKafkaRoutesArgs.builder()
 *                     .kafkaAcks("zero")
 *                     .kafkaTopic("tellycttwulueqcpqf")
 *                     .mqttTopic("raipkrcwvdnnflywhgjwnquarf")
 *                     .name("qpshqcaxvxnyjzimvchngupzezdei")
 *                     .qos(1)
 *                     .sharedSubscription(KafkaSharedSubscriptionPropertiesArgs.builder()
 *                         .groupMinimumShareNumber(216)
 *                         .groupName("nwdyccsditzhchuksmi")
 *                         .build())
 *                     .build())
 *                 .build())
 *             .tags()
 *             .topicMapName("q582ViEY-b7wF1OO2A")
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:iotoperationsmq:KafkaConnectorTopicMap kdcutfmwzjixcfzbkpelp /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperationsMQ/mq/{mqName}/kafkaConnector/{kafkaConnectorName}/topicMap/{topicMapName}
 * ```
 * @property batching The batching settings for kafka messages.
 * @property compression The compression to use for kafka messages.
 * @property copyMqttProperties The flag to copy Mqtt properties.
 * @property extendedLocation Extended Location
 * @property kafkaConnectorName Name of MQ kafkaConnector resource
 * @property kafkaConnectorRef The kafkaConnector CRD it refers to.
 * @property location The geo-location where the resource lives
 * @property mqName Name of MQ resource
 * @property partitionKeyProperty The partition to use for Kafka.
 * @property partitionStrategy The partition strategy to use for Kafka.
 * @property resourceGroupName The name of the resource group. The name is case insensitive.
 * @property routes The route details for Kafka connector.
 * @property tags Resource tags.
 * @property topicMapName Name of MQ kafka/topicMap resource
 */
public data class KafkaConnectorTopicMapArgs(
    public val batching: Output? = null,
    public val compression: Output>? = null,
    public val copyMqttProperties: Output? = null,
    public val extendedLocation: Output? = null,
    public val kafkaConnectorName: Output? = null,
    public val kafkaConnectorRef: Output? = null,
    public val location: Output? = null,
    public val mqName: Output? = null,
    public val partitionKeyProperty: Output? = null,
    public val partitionStrategy: Output>? = null,
    public val resourceGroupName: Output? = null,
    public val routes: Output>? = null,
    public val tags: Output>? = null,
    public val topicMapName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.iotoperationsmq.KafkaConnectorTopicMapArgs =
        com.pulumi.azurenative.iotoperationsmq.KafkaConnectorTopicMapArgs.builder()
            .batching(batching?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .compression(
                compression?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .copyMqttProperties(copyMqttProperties?.applyValue({ args0 -> args0 }))
            .extendedLocation(extendedLocation?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .kafkaConnectorName(kafkaConnectorName?.applyValue({ args0 -> args0 }))
            .kafkaConnectorRef(kafkaConnectorRef?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .mqName(mqName?.applyValue({ args0 -> args0 }))
            .partitionKeyProperty(partitionKeyProperty?.applyValue({ args0 -> args0 }))
            .partitionStrategy(
                partitionStrategy?.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            )
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .routes(routes?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .topicMapName(topicMapName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [KafkaConnectorTopicMapArgs].
 */
@PulumiTagMarker
public class KafkaConnectorTopicMapArgsBuilder internal constructor() {
    private var batching: Output? = null

    private var compression: Output>? = null

    private var copyMqttProperties: Output? = null

    private var extendedLocation: Output? = null

    private var kafkaConnectorName: Output? = null

    private var kafkaConnectorRef: Output? = null

    private var location: Output? = null

    private var mqName: Output? = null

    private var partitionKeyProperty: Output? = null

    private var partitionStrategy: Output>? = null

    private var resourceGroupName: Output? = null

    private var routes: Output>? = null

    private var tags: Output>? = null

    private var topicMapName: Output? = null

    /**
     * @param value The batching settings for kafka messages.
     */
    @JvmName("iustpofdkixrfmpw")
    public suspend fun batching(`value`: Output) {
        this.batching = value
    }

    /**
     * @param value The compression to use for kafka messages.
     */
    @JvmName("vlytjucgwhxxnfjf")
    public suspend fun compression(`value`: Output>) {
        this.compression = value
    }

    /**
     * @param value The flag to copy Mqtt properties.
     */
    @JvmName("amkcjeycfubormhv")
    public suspend fun copyMqttProperties(`value`: Output) {
        this.copyMqttProperties = value
    }

    /**
     * @param value Extended Location
     */
    @JvmName("tqdtxphrrgyrmeyt")
    public suspend fun extendedLocation(`value`: Output) {
        this.extendedLocation = value
    }

    /**
     * @param value Name of MQ kafkaConnector resource
     */
    @JvmName("qqiajtwcbhtsfceu")
    public suspend fun kafkaConnectorName(`value`: Output) {
        this.kafkaConnectorName = value
    }

    /**
     * @param value The kafkaConnector CRD it refers to.
     */
    @JvmName("ruleymnikoulmqfw")
    public suspend fun kafkaConnectorRef(`value`: Output) {
        this.kafkaConnectorRef = value
    }

    /**
     * @param value The geo-location where the resource lives
     */
    @JvmName("qgxqeuoopdxpmhil")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value Name of MQ resource
     */
    @JvmName("oxjsgawigmubfpop")
    public suspend fun mqName(`value`: Output) {
        this.mqName = value
    }

    /**
     * @param value The partition to use for Kafka.
     */
    @JvmName("anqvgrnorjfoppnk")
    public suspend fun partitionKeyProperty(`value`: Output) {
        this.partitionKeyProperty = value
    }

    /**
     * @param value The partition strategy to use for Kafka.
     */
    @JvmName("oddjlblslkcbabyk")
    public suspend fun partitionStrategy(`value`: Output>) {
        this.partitionStrategy = value
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("ljrrkmoumnsefkqd")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value The route details for Kafka connector.
     */
    @JvmName("cdccxuysoydgqkop")
    public suspend fun routes(`value`: Output>) {
        this.routes = value
    }

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

    /**
     * @param values The route details for Kafka connector.
     */
    @JvmName("vsltuijkaadhcdko")
    public suspend fun routes(values: List>) {
        this.routes = Output.all(values)
    }

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

    /**
     * @param value Name of MQ kafka/topicMap resource
     */
    @JvmName("frkutvldlbuoqsck")
    public suspend fun topicMapName(`value`: Output) {
        this.topicMapName = value
    }

    /**
     * @param value The batching settings for kafka messages.
     */
    @JvmName("pfsseydxqvdbivdy")
    public suspend fun batching(`value`: KafkaTopicMapBatchingArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.batching = mapped
    }

    /**
     * @param argument The batching settings for kafka messages.
     */
    @JvmName("brxbpqrcorgluwmc")
    public suspend fun batching(argument: suspend KafkaTopicMapBatchingArgsBuilder.() -> Unit) {
        val toBeMapped = KafkaTopicMapBatchingArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.batching = mapped
    }

    /**
     * @param value The compression to use for kafka messages.
     */
    @JvmName("rxvqtmlphidgnoin")
    public suspend fun compression(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.compression = mapped
    }

    /**
     * @param value The compression to use for kafka messages.
     */
    @JvmName("klqirlxqxnvfyncu")
    public fun compression(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.compression = mapped
    }

    /**
     * @param value The compression to use for kafka messages.
     */
    @JvmName("tgienpwfpqncqhqh")
    public fun compression(`value`: KafkaMessageCompressionType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.compression = mapped
    }

    /**
     * @param value The flag to copy Mqtt properties.
     */
    @JvmName("jtecqivlummsfjib")
    public suspend fun copyMqttProperties(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.copyMqttProperties = mapped
    }

    /**
     * @param value Extended Location
     */
    @JvmName("lxmlixrrayuwxncu")
    public suspend fun extendedLocation(`value`: ExtendedLocationPropertyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.extendedLocation = mapped
    }

    /**
     * @param argument Extended Location
     */
    @JvmName("kivoipanstlsnswf")
    public suspend fun extendedLocation(argument: suspend ExtendedLocationPropertyArgsBuilder.() -> Unit) {
        val toBeMapped = ExtendedLocationPropertyArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.extendedLocation = mapped
    }

    /**
     * @param value Name of MQ kafkaConnector resource
     */
    @JvmName("rbiutvfskmmomsbm")
    public suspend fun kafkaConnectorName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kafkaConnectorName = mapped
    }

    /**
     * @param value The kafkaConnector CRD it refers to.
     */
    @JvmName("bhhkrwfdugbuowmh")
    public suspend fun kafkaConnectorRef(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kafkaConnectorRef = mapped
    }

    /**
     * @param value The geo-location where the resource lives
     */
    @JvmName("qvrhdkcfhkehexvi")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

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

    /**
     * @param value The partition to use for Kafka.
     */
    @JvmName("uvmfnsrnymnkvepw")
    public suspend fun partitionKeyProperty(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.partitionKeyProperty = mapped
    }

    /**
     * @param value The partition strategy to use for Kafka.
     */
    @JvmName("spwskqdpyxucagwq")
    public suspend fun partitionStrategy(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.partitionStrategy = mapped
    }

    /**
     * @param value The partition strategy to use for Kafka.
     */
    @JvmName("garxfwtrcqodnkvu")
    public fun partitionStrategy(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.partitionStrategy = mapped
    }

    /**
     * @param value The partition strategy to use for Kafka.
     */
    @JvmName("nxowqwkdnkjcjvwl")
    public fun partitionStrategy(`value`: KafkaPartitionStrategy) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.partitionStrategy = mapped
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("jvqxbfnxmimyudvu")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value The route details for Kafka connector.
     */
    @JvmName("cvbylsfontdxykqg")
    public suspend fun routes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.routes = mapped
    }

    /**
     * @param argument The route details for Kafka connector.
     */
    @JvmName("dvxwmgxlssnpgpgb")
    public suspend fun routes(argument: List Unit>) {
        val toBeMapped = argument.toList().map { KafkaRoutesArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.routes = mapped
    }

    /**
     * @param argument The route details for Kafka connector.
     */
    @JvmName("rgdkubfrscggtvob")
    public suspend fun routes(vararg argument: suspend KafkaRoutesArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { KafkaRoutesArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.routes = mapped
    }

    /**
     * @param argument The route details for Kafka connector.
     */
    @JvmName("tfbclxxjlycrneix")
    public suspend fun routes(argument: suspend KafkaRoutesArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(KafkaRoutesArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.routes = mapped
    }

    /**
     * @param values The route details for Kafka connector.
     */
    @JvmName("hkmxmrhxyboolqem")
    public suspend fun routes(vararg values: KafkaRoutesArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.routes = mapped
    }

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

    /**
     * @param values Resource tags.
     */
    @JvmName("mkhlqahgfevdgmhl")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Name of MQ kafka/topicMap resource
     */
    @JvmName("knldyyhpovakjipo")
    public suspend fun topicMapName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.topicMapName = mapped
    }

    internal fun build(): KafkaConnectorTopicMapArgs = KafkaConnectorTopicMapArgs(
        batching = batching,
        compression = compression,
        copyMqttProperties = copyMqttProperties,
        extendedLocation = extendedLocation,
        kafkaConnectorName = kafkaConnectorName,
        kafkaConnectorRef = kafkaConnectorRef,
        location = location,
        mqName = mqName,
        partitionKeyProperty = partitionKeyProperty,
        partitionStrategy = partitionStrategy,
        resourceGroupName = resourceGroupName,
        routes = routes,
        tags = tags,
        topicMapName = topicMapName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy