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

com.pulumi.azurenative.operationsmanagement.kotlin.inputs.SolutionPropertiesArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.operationsmanagement.kotlin.inputs

import com.pulumi.azurenative.operationsmanagement.inputs.SolutionPropertiesArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Solution properties supported by the OperationsManagement resource provider.
 * @property containedResources The azure resources that will be contained within the solutions. They will be locked and gets deleted automatically when the solution is deleted.
 * @property referencedResources The resources that will be referenced from this solution. Deleting any of those solution out of band will break the solution.
 * @property workspaceResourceId The azure resourceId for the workspace where the solution will be deployed/enabled.
 */
public data class SolutionPropertiesArgs(
    public val containedResources: Output>? = null,
    public val referencedResources: Output>? = null,
    public val workspaceResourceId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.operationsmanagement.inputs.SolutionPropertiesArgs =
        com.pulumi.azurenative.operationsmanagement.inputs.SolutionPropertiesArgs.builder()
            .containedResources(containedResources?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .referencedResources(referencedResources?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .workspaceResourceId(workspaceResourceId.applyValue({ args0 -> args0 })).build()
}

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

    private var referencedResources: Output>? = null

    private var workspaceResourceId: Output? = null

    /**
     * @param value The azure resources that will be contained within the solutions. They will be locked and gets deleted automatically when the solution is deleted.
     */
    @JvmName("fchomuknobhtqkcy")
    public suspend fun containedResources(`value`: Output>) {
        this.containedResources = value
    }

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

    /**
     * @param values The azure resources that will be contained within the solutions. They will be locked and gets deleted automatically when the solution is deleted.
     */
    @JvmName("mbutvnjwqawkwmse")
    public suspend fun containedResources(values: List>) {
        this.containedResources = Output.all(values)
    }

    /**
     * @param value The resources that will be referenced from this solution. Deleting any of those solution out of band will break the solution.
     */
    @JvmName("qfguswqnojjaockc")
    public suspend fun referencedResources(`value`: Output>) {
        this.referencedResources = value
    }

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

    /**
     * @param values The resources that will be referenced from this solution. Deleting any of those solution out of band will break the solution.
     */
    @JvmName("erldesbvbvqwwjtk")
    public suspend fun referencedResources(values: List>) {
        this.referencedResources = Output.all(values)
    }

    /**
     * @param value The azure resourceId for the workspace where the solution will be deployed/enabled.
     */
    @JvmName("iwiouhiedscdkvbv")
    public suspend fun workspaceResourceId(`value`: Output) {
        this.workspaceResourceId = value
    }

    /**
     * @param value The azure resources that will be contained within the solutions. They will be locked and gets deleted automatically when the solution is deleted.
     */
    @JvmName("obrthuqvndrweawn")
    public suspend fun containedResources(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.containedResources = mapped
    }

    /**
     * @param values The azure resources that will be contained within the solutions. They will be locked and gets deleted automatically when the solution is deleted.
     */
    @JvmName("xeqhltnvcanfsqwu")
    public suspend fun containedResources(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.containedResources = mapped
    }

    /**
     * @param value The resources that will be referenced from this solution. Deleting any of those solution out of band will break the solution.
     */
    @JvmName("qjfxrrbqmedmcenc")
    public suspend fun referencedResources(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.referencedResources = mapped
    }

    /**
     * @param values The resources that will be referenced from this solution. Deleting any of those solution out of band will break the solution.
     */
    @JvmName("yqmshausotbhhqao")
    public suspend fun referencedResources(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.referencedResources = mapped
    }

    /**
     * @param value The azure resourceId for the workspace where the solution will be deployed/enabled.
     */
    @JvmName("jkxsogxcuinmlubu")
    public suspend fun workspaceResourceId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.workspaceResourceId = mapped
    }

    internal fun build(): SolutionPropertiesArgs = SolutionPropertiesArgs(
        containedResources = containedResources,
        referencedResources = referencedResources,
        workspaceResourceId = workspaceResourceId ?: throw PulumiNullFieldException("workspaceResourceId"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy