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

com.pulumi.awsnative.networkmanager.kotlin.DeviceArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.networkmanager.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.networkmanager.DeviceArgs.builder
import com.pulumi.awsnative.networkmanager.kotlin.inputs.DeviceAwsLocationArgs
import com.pulumi.awsnative.networkmanager.kotlin.inputs.DeviceAwsLocationArgsBuilder
import com.pulumi.awsnative.networkmanager.kotlin.inputs.DeviceLocationArgs
import com.pulumi.awsnative.networkmanager.kotlin.inputs.DeviceLocationArgsBuilder
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 AWS::NetworkManager::Device type describes a device.
 * @property awsLocation The Amazon Web Services location of the device, if applicable.
 * @property description The description of the device.
 * @property globalNetworkId The ID of the global network.
 * @property location The site location.
 * @property model The device model
 * @property serialNumber The device serial number.
 * @property siteId The site ID.
 * @property tags The tags for the device.
 * @property type The device type.
 * @property vendor The device vendor.
 */
public data class DeviceArgs(
    public val awsLocation: Output? = null,
    public val description: Output? = null,
    public val globalNetworkId: Output? = null,
    public val location: Output? = null,
    public val model: Output? = null,
    public val serialNumber: Output? = null,
    public val siteId: Output? = null,
    public val tags: Output>? = null,
    public val type: Output? = null,
    public val vendor: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.networkmanager.DeviceArgs =
        com.pulumi.awsnative.networkmanager.DeviceArgs.builder()
            .awsLocation(awsLocation?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .description(description?.applyValue({ args0 -> args0 }))
            .globalNetworkId(globalNetworkId?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .model(model?.applyValue({ args0 -> args0 }))
            .serialNumber(serialNumber?.applyValue({ args0 -> args0 }))
            .siteId(siteId?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .type(type?.applyValue({ args0 -> args0 }))
            .vendor(vendor?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DeviceArgs].
 */
@PulumiTagMarker
public class DeviceArgsBuilder internal constructor() {
    private var awsLocation: Output? = null

    private var description: Output? = null

    private var globalNetworkId: Output? = null

    private var location: Output? = null

    private var model: Output? = null

    private var serialNumber: Output? = null

    private var siteId: Output? = null

    private var tags: Output>? = null

    private var type: Output? = null

    private var vendor: Output? = null

    /**
     * @param value The Amazon Web Services location of the device, if applicable.
     */
    @JvmName("ppjbgjpiuebgikra")
    public suspend fun awsLocation(`value`: Output) {
        this.awsLocation = value
    }

    /**
     * @param value The description of the device.
     */
    @JvmName("amadiewsajjabanh")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The ID of the global network.
     */
    @JvmName("wltxrnilqgkhsplq")
    public suspend fun globalNetworkId(`value`: Output) {
        this.globalNetworkId = value
    }

    /**
     * @param value The site location.
     */
    @JvmName("txtyfnfgascgeajf")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The device model
     */
    @JvmName("qsuxulngmexvpmxk")
    public suspend fun model(`value`: Output) {
        this.model = value
    }

    /**
     * @param value The device serial number.
     */
    @JvmName("lkgxtqqfmnyexngs")
    public suspend fun serialNumber(`value`: Output) {
        this.serialNumber = value
    }

    /**
     * @param value The site ID.
     */
    @JvmName("hvmosukiknxlwfun")
    public suspend fun siteId(`value`: Output) {
        this.siteId = value
    }

    /**
     * @param value The tags for the device.
     */
    @JvmName("ydwvgxjiptkvvrpy")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values The tags for the device.
     */
    @JvmName("ekgvwthtfayqfkjt")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The device type.
     */
    @JvmName("xahqfycsdlnedbjw")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The device vendor.
     */
    @JvmName("gxwpepppgbgwkfbp")
    public suspend fun vendor(`value`: Output) {
        this.vendor = value
    }

    /**
     * @param value The Amazon Web Services location of the device, if applicable.
     */
    @JvmName("keyaggkxcvuykiyc")
    public suspend fun awsLocation(`value`: DeviceAwsLocationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.awsLocation = mapped
    }

    /**
     * @param argument The Amazon Web Services location of the device, if applicable.
     */
    @JvmName("lhlaeplgusaauhik")
    public suspend fun awsLocation(argument: suspend DeviceAwsLocationArgsBuilder.() -> Unit) {
        val toBeMapped = DeviceAwsLocationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.awsLocation = mapped
    }

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

    /**
     * @param value The ID of the global network.
     */
    @JvmName("ggronwmfcfsegqmc")
    public suspend fun globalNetworkId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.globalNetworkId = mapped
    }

    /**
     * @param value The site location.
     */
    @JvmName("ihakthbcqibligaa")
    public suspend fun location(`value`: DeviceLocationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param argument The site location.
     */
    @JvmName("romuncajolicajdn")
    public suspend fun location(argument: suspend DeviceLocationArgsBuilder.() -> Unit) {
        val toBeMapped = DeviceLocationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.location = mapped
    }

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

    /**
     * @param value The device serial number.
     */
    @JvmName("mdaijgdwlbhrgmpg")
    public suspend fun serialNumber(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serialNumber = mapped
    }

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

    /**
     * @param value The tags for the device.
     */
    @JvmName("hpiacscxunvswykl")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The tags for the device.
     */
    @JvmName("sgneklvaqxmovgud")
    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 The tags for the device.
     */
    @JvmName("ulgviotamvmwmguu")
    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 The tags for the device.
     */
    @JvmName("rspucwdcddiyipyp")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values The tags for the device.
     */
    @JvmName("reumqacemirrfuuv")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

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

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

    internal fun build(): DeviceArgs = DeviceArgs(
        awsLocation = awsLocation,
        description = description,
        globalNetworkId = globalNetworkId,
        location = location,
        model = model,
        serialNumber = serialNumber,
        siteId = siteId,
        tags = tags,
        type = type,
        vendor = vendor,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy