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

com.pulumi.azure.netapp.kotlin.inputs.GetAccountIdentity.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.netapp.kotlin.inputs

import com.pulumi.azure.netapp.inputs.GetAccountIdentity.builder
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

/**
 *
 * @property identityIds
 * @property principalId
 * @property tenantId
 * @property type
 */
public data class GetAccountIdentity(
    public val identityIds: List? = null,
    public val principalId: String,
    public val tenantId: String,
    public val type: String,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.netapp.inputs.GetAccountIdentity =
        com.pulumi.azure.netapp.inputs.GetAccountIdentity.builder()
            .identityIds(identityIds?.let({ args0 -> args0.map({ args0 -> args0 }) }))
            .principalId(principalId.let({ args0 -> args0 }))
            .tenantId(tenantId.let({ args0 -> args0 }))
            .type(type.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetAccountIdentity].
 */
@PulumiTagMarker
public class GetAccountIdentityBuilder internal constructor() {
    private var identityIds: List? = null

    private var principalId: String? = null

    private var tenantId: String? = null

    private var type: String? = null

    /**
     * @param value
     */
    @JvmName("guirymmtaqjrhpks")
    public suspend fun identityIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.identityIds = mapped
    }

    /**
     * @param values
     */
    @JvmName("hkdhkhnhbrclnedw")
    public suspend fun identityIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.identityIds = mapped
    }

    /**
     * @param value
     */
    @JvmName("lhlevnljkrsxdtns")
    public suspend fun principalId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.principalId = mapped
    }

    /**
     * @param value
     */
    @JvmName("xihukotwmsrqwsuf")
    public suspend fun tenantId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.tenantId = mapped
    }

    /**
     * @param value
     */
    @JvmName("drhmigexeiqjkuxl")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.type = mapped
    }

    internal fun build(): GetAccountIdentity = GetAccountIdentity(
        identityIds = identityIds,
        principalId = principalId ?: throw PulumiNullFieldException("principalId"),
        tenantId = tenantId ?: throw PulumiNullFieldException("tenantId"),
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy