com.pulumi.azure.marketplace.kotlin.RoleAssignmentArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.marketplace.kotlin
import com.pulumi.azure.marketplace.RoleAssignmentArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property condition
* @property conditionVersion
* @property delegatedManagedIdentityResourceId
* @property description
* @property name
* @property principalId
* @property roleDefinitionId
* @property roleDefinitionName
* @property skipServicePrincipalAadCheck
*/
public data class RoleAssignmentArgs(
public val condition: Output? = null,
public val conditionVersion: Output? = null,
public val delegatedManagedIdentityResourceId: Output? = null,
public val description: Output? = null,
public val name: Output? = null,
public val principalId: Output? = null,
public val roleDefinitionId: Output? = null,
public val roleDefinitionName: Output? = null,
public val skipServicePrincipalAadCheck: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.marketplace.RoleAssignmentArgs =
com.pulumi.azure.marketplace.RoleAssignmentArgs.builder()
.condition(condition?.applyValue({ args0 -> args0 }))
.conditionVersion(conditionVersion?.applyValue({ args0 -> args0 }))
.delegatedManagedIdentityResourceId(
delegatedManagedIdentityResourceId?.applyValue({ args0 ->
args0
}),
)
.description(description?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.principalId(principalId?.applyValue({ args0 -> args0 }))
.roleDefinitionId(roleDefinitionId?.applyValue({ args0 -> args0 }))
.roleDefinitionName(roleDefinitionName?.applyValue({ args0 -> args0 }))
.skipServicePrincipalAadCheck(skipServicePrincipalAadCheck?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RoleAssignmentArgs].
*/
@PulumiTagMarker
public class RoleAssignmentArgsBuilder internal constructor() {
private var condition: Output? = null
private var conditionVersion: Output? = null
private var delegatedManagedIdentityResourceId: Output? = null
private var description: Output? = null
private var name: Output? = null
private var principalId: Output? = null
private var roleDefinitionId: Output? = null
private var roleDefinitionName: Output? = null
private var skipServicePrincipalAadCheck: Output? = null
/**
* @param value
*/
@JvmName("atnohvirgcmtrjgd")
public suspend fun condition(`value`: Output) {
this.condition = value
}
/**
* @param value
*/
@JvmName("etxsmtcrmykacjqn")
public suspend fun conditionVersion(`value`: Output) {
this.conditionVersion = value
}
/**
* @param value
*/
@JvmName("tdgpsbbghqqxterj")
public suspend fun delegatedManagedIdentityResourceId(`value`: Output) {
this.delegatedManagedIdentityResourceId = value
}
/**
* @param value
*/
@JvmName("mtdebbsdribgqkfr")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value
*/
@JvmName("mitlwgrranpthlxl")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value
*/
@JvmName("evksusaqjfprkvqy")
public suspend fun principalId(`value`: Output) {
this.principalId = value
}
/**
* @param value
*/
@JvmName("vjlxgwvsgyswqkab")
public suspend fun roleDefinitionId(`value`: Output) {
this.roleDefinitionId = value
}
/**
* @param value
*/
@JvmName("cgtrtpxgyedsbvnh")
public suspend fun roleDefinitionName(`value`: Output) {
this.roleDefinitionName = value
}
/**
* @param value
*/
@JvmName("bevloeqmruqfitcw")
public suspend fun skipServicePrincipalAadCheck(`value`: Output) {
this.skipServicePrincipalAadCheck = value
}
/**
* @param value
*/
@JvmName("qxrhcvxthdfqhnta")
public suspend fun condition(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.condition = mapped
}
/**
* @param value
*/
@JvmName("xcipvkwyshpinpmq")
public suspend fun conditionVersion(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.conditionVersion = mapped
}
/**
* @param value
*/
@JvmName("fcgglpikrtmydjlj")
public suspend fun delegatedManagedIdentityResourceId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.delegatedManagedIdentityResourceId = mapped
}
/**
* @param value
*/
@JvmName("daksxlkjdkdvaipd")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value
*/
@JvmName("pfynoyxwbqwdtldg")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value
*/
@JvmName("asbtwkywbjecgouk")
public suspend fun principalId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.principalId = mapped
}
/**
* @param value
*/
@JvmName("evhyefkofjcaxkws")
public suspend fun roleDefinitionId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.roleDefinitionId = mapped
}
/**
* @param value
*/
@JvmName("vvjrvvyvseiplguf")
public suspend fun roleDefinitionName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.roleDefinitionName = mapped
}
/**
* @param value
*/
@JvmName("jdmethtjttrjvblk")
public suspend fun skipServicePrincipalAadCheck(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.skipServicePrincipalAadCheck = mapped
}
internal fun build(): RoleAssignmentArgs = RoleAssignmentArgs(
condition = condition,
conditionVersion = conditionVersion,
delegatedManagedIdentityResourceId = delegatedManagedIdentityResourceId,
description = description,
name = name,
principalId = principalId,
roleDefinitionId = roleDefinitionId,
roleDefinitionName = roleDefinitionName,
skipServicePrincipalAadCheck = skipServicePrincipalAadCheck,
)
}