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

com.pulumi.azure.media.kotlin.inputs.ServiceAccountStorageAccountManagedIdentityArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.media.kotlin.inputs

import com.pulumi.azure.media.inputs.ServiceAccountStorageAccountManagedIdentityArgs.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 useSystemAssignedIdentity Whether to use System Assigned Identity. Possible Values are `true` and `false`.
 * @property userAssignedIdentityId The ID of the User Assigned Identity. This value can only be set when `use_system_assigned_identity` is `false`
 */
public data class ServiceAccountStorageAccountManagedIdentityArgs(
    public val useSystemAssignedIdentity: Output? = null,
    public val userAssignedIdentityId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.media.inputs.ServiceAccountStorageAccountManagedIdentityArgs =
        com.pulumi.azure.media.inputs.ServiceAccountStorageAccountManagedIdentityArgs.builder()
            .useSystemAssignedIdentity(useSystemAssignedIdentity?.applyValue({ args0 -> args0 }))
            .userAssignedIdentityId(userAssignedIdentityId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ServiceAccountStorageAccountManagedIdentityArgs].
 */
@PulumiTagMarker
public class ServiceAccountStorageAccountManagedIdentityArgsBuilder internal constructor() {
    private var useSystemAssignedIdentity: Output? = null

    private var userAssignedIdentityId: Output? = null

    /**
     * @param value Whether to use System Assigned Identity. Possible Values are `true` and `false`.
     */
    @JvmName("otjfvvynggfpjaaw")
    public suspend fun useSystemAssignedIdentity(`value`: Output) {
        this.useSystemAssignedIdentity = value
    }

    /**
     * @param value The ID of the User Assigned Identity. This value can only be set when `use_system_assigned_identity` is `false`
     */
    @JvmName("abovkqilxnagewok")
    public suspend fun userAssignedIdentityId(`value`: Output) {
        this.userAssignedIdentityId = value
    }

    /**
     * @param value Whether to use System Assigned Identity. Possible Values are `true` and `false`.
     */
    @JvmName("coyrhwcekmtkaxkn")
    public suspend fun useSystemAssignedIdentity(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.useSystemAssignedIdentity = mapped
    }

    /**
     * @param value The ID of the User Assigned Identity. This value can only be set when `use_system_assigned_identity` is `false`
     */
    @JvmName("shrxgvjpoldfkeoh")
    public suspend fun userAssignedIdentityId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userAssignedIdentityId = mapped
    }

    internal fun build(): ServiceAccountStorageAccountManagedIdentityArgs =
        ServiceAccountStorageAccountManagedIdentityArgs(
            useSystemAssignedIdentity = useSystemAssignedIdentity,
            userAssignedIdentityId = userAssignedIdentityId,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy