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

com.pulumi.awsnative.iotsitewise.kotlin.ProjectArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.iotsitewise.kotlin

import com.pulumi.awsnative.iotsitewise.ProjectArgs.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

/**
 * Resource schema for AWS::IoTSiteWise::Project
 * @property assetIds The IDs of the assets to be associated to the project.
 * @property portalId The ID of the portal in which to create the project.
 * @property projectDescription A description for the project.
 * @property projectName A friendly name for the project.
 * @property tags A list of key-value pairs that contain metadata for the project.
 */
public data class ProjectArgs(
    public val assetIds: Output>? = null,
    public val portalId: Output? = null,
    public val projectDescription: Output? = null,
    public val projectName: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iotsitewise.ProjectArgs =
        com.pulumi.awsnative.iotsitewise.ProjectArgs.builder()
            .assetIds(assetIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .portalId(portalId?.applyValue({ args0 -> args0 }))
            .projectDescription(projectDescription?.applyValue({ args0 -> args0 }))
            .projectName(projectName?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ProjectArgs].
 */
@PulumiTagMarker
public class ProjectArgsBuilder internal constructor() {
    private var assetIds: Output>? = null

    private var portalId: Output? = null

    private var projectDescription: Output? = null

    private var projectName: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The IDs of the assets to be associated to the project.
     */
    @JvmName("wkatepfulkrsclak")
    public suspend fun assetIds(`value`: Output>) {
        this.assetIds = value
    }

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

    /**
     * @param values The IDs of the assets to be associated to the project.
     */
    @JvmName("krywffqljaxgjoug")
    public suspend fun assetIds(values: List>) {
        this.assetIds = Output.all(values)
    }

    /**
     * @param value The ID of the portal in which to create the project.
     */
    @JvmName("yaocrvfonnoknnej")
    public suspend fun portalId(`value`: Output) {
        this.portalId = value
    }

    /**
     * @param value A description for the project.
     */
    @JvmName("beiveuxstbwdqwwb")
    public suspend fun projectDescription(`value`: Output) {
        this.projectDescription = value
    }

    /**
     * @param value A friendly name for the project.
     */
    @JvmName("nlolcaoiqirqdmcy")
    public suspend fun projectName(`value`: Output) {
        this.projectName = value
    }

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

    @JvmName("mfcyswmaxrlqmfqo")
    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 project.
     */
    @JvmName("leajldhbgmprmmso")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The IDs of the assets to be associated to the project.
     */
    @JvmName("cylbgvnxsnvabapg")
    public suspend fun assetIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.assetIds = mapped
    }

    /**
     * @param values The IDs of the assets to be associated to the project.
     */
    @JvmName("herfxmoaeihdpowr")
    public suspend fun assetIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.assetIds = mapped
    }

    /**
     * @param value The ID of the portal in which to create the project.
     */
    @JvmName("lygutifyeimohnyl")
    public suspend fun portalId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.portalId = mapped
    }

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

    /**
     * @param value A friendly name for the project.
     */
    @JvmName("gxsxbafsjcdyveam")
    public suspend fun projectName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.projectName = mapped
    }

    /**
     * @param value A list of key-value pairs that contain metadata for the project.
     */
    @JvmName("hcskdrsqejuabffq")
    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 project.
     */
    @JvmName("dotdiujsoddqwhxa")
    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 project.
     */
    @JvmName("xawpcgbneqbrmgpb")
    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 project.
     */
    @JvmName("etqlfuwjfkiybxov")
    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 project.
     */
    @JvmName("bwmhfotagwirlwew")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ProjectArgs = ProjectArgs(
        assetIds = assetIds,
        portalId = portalId,
        projectDescription = projectDescription,
        projectName = projectName,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy