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

com.pulumi.awsnative.iotwireless.kotlin.ServiceProfileArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.iotwireless.kotlin

import com.pulumi.awsnative.iotwireless.ServiceProfileArgs.builder
import com.pulumi.awsnative.iotwireless.kotlin.inputs.ServiceProfileLoRaWanServiceProfileArgs
import com.pulumi.awsnative.iotwireless.kotlin.inputs.ServiceProfileLoRaWanServiceProfileArgsBuilder
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

/**
 * An example resource schema demonstrating some basic constructs and validation rules.
 * @property loRaWan LoRaWAN supports all LoRa specific attributes for service profile for CreateServiceProfile operation
 * @property name Name of service profile
 * @property tags A list of key-value pairs that contain metadata for the service profile.
 */
public data class ServiceProfileArgs(
    public val loRaWan: Output? = null,
    public val name: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iotwireless.ServiceProfileArgs =
        com.pulumi.awsnative.iotwireless.ServiceProfileArgs.builder()
            .loRaWan(loRaWan?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ServiceProfileArgs].
 */
@PulumiTagMarker
public class ServiceProfileArgsBuilder internal constructor() {
    private var loRaWan: Output? = null

    private var name: Output? = null

    private var tags: Output>? = null

    /**
     * @param value LoRaWAN supports all LoRa specific attributes for service profile for CreateServiceProfile operation
     */
    @JvmName("yovunbjydojhiqrr")
    public suspend fun loRaWan(`value`: Output) {
        this.loRaWan = value
    }

    /**
     * @param value Name of service profile
     */
    @JvmName("qklcuffocbdnclkk")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A list of key-value pairs that contain metadata for the service profile.
     */
    @JvmName("qyvabxwutfopcsqr")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values A list of key-value pairs that contain metadata for the service profile.
     */
    @JvmName("hmxgmagcqdqstqla")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value LoRaWAN supports all LoRa specific attributes for service profile for CreateServiceProfile operation
     */
    @JvmName("duwptifkqyshaeaf")
    public suspend fun loRaWan(`value`: ServiceProfileLoRaWanServiceProfileArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.loRaWan = mapped
    }

    /**
     * @param argument LoRaWAN supports all LoRa specific attributes for service profile for CreateServiceProfile operation
     */
    @JvmName("bnpvweeexxucgien")
    public suspend fun loRaWan(argument: suspend ServiceProfileLoRaWanServiceProfileArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceProfileLoRaWanServiceProfileArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.loRaWan = mapped
    }

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

    /**
     * @param value A list of key-value pairs that contain metadata for the service profile.
     */
    @JvmName("emvcmmevgyayanmm")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument A list of key-value pairs that contain metadata for the service profile.
     */
    @JvmName("wnicxwydpgwfydwd")
    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 list of key-value pairs that contain metadata for the service profile.
     */
    @JvmName("dmeqpchugakhmtoa")
    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 list of key-value pairs that contain metadata for the service profile.
     */
    @JvmName("cxhrplalfoggmfej")
    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 list of key-value pairs that contain metadata for the service profile.
     */
    @JvmName("cxtnluibqajwepuo")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ServiceProfileArgs = ServiceProfileArgs(
        loRaWan = loRaWan,
        name = name,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy