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

com.pulumi.azure.role.kotlin.inputs.GetRoleDefinitionPlainArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.role.kotlin.inputs

import com.pulumi.azure.role.inputs.GetRoleDefinitionPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getRoleDefinition.
 * @property name Specifies the Name of either a built-in or custom Role Definition.
 * > You can also use this for built-in roles such as `Contributor`, `Owner`, `Reader` and `Virtual Machine Contributor`
 * @property roleDefinitionId Specifies the ID of the Role Definition as a UUID/GUID.
 * @property scope Specifies the Scope at which the Custom Role Definition exists.
 * > **Note:** One of `name` or `role_definition_id` must be specified.
 */
public data class GetRoleDefinitionPlainArgs(
    public val name: String? = null,
    public val roleDefinitionId: String? = null,
    public val scope: String? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.role.inputs.GetRoleDefinitionPlainArgs =
        com.pulumi.azure.role.inputs.GetRoleDefinitionPlainArgs.builder()
            .name(name?.let({ args0 -> args0 }))
            .roleDefinitionId(roleDefinitionId?.let({ args0 -> args0 }))
            .scope(scope?.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetRoleDefinitionPlainArgs].
 */
@PulumiTagMarker
public class GetRoleDefinitionPlainArgsBuilder internal constructor() {
    private var name: String? = null

    private var roleDefinitionId: String? = null

    private var scope: String? = null

    /**
     * @param value Specifies the Name of either a built-in or custom Role Definition.
     * > You can also use this for built-in roles such as `Contributor`, `Owner`, `Reader` and `Virtual Machine Contributor`
     */
    @JvmName("vjnqyutjkpnnbhgj")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.name = mapped
    }

    /**
     * @param value Specifies the ID of the Role Definition as a UUID/GUID.
     */
    @JvmName("vbwsxqbegcggmrtw")
    public suspend fun roleDefinitionId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.roleDefinitionId = mapped
    }

    /**
     * @param value Specifies the Scope at which the Custom Role Definition exists.
     * > **Note:** One of `name` or `role_definition_id` must be specified.
     */
    @JvmName("rgotaniljxrcrfhu")
    public suspend fun scope(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.scope = mapped
    }

    internal fun build(): GetRoleDefinitionPlainArgs = GetRoleDefinitionPlainArgs(
        name = name,
        roleDefinitionId = roleDefinitionId,
        scope = scope,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy