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

com.pulumi.alicloud.ram.kotlin.inputs.GetPolicyDocumentStatementPrincipal.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: 3.62.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.alicloud.ram.kotlin.inputs

import com.pulumi.alicloud.ram.inputs.GetPolicyDocumentStatementPrincipal.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 entity The trusted entity. Valid values: `RAM`, `Service` and `Federated`.
 * @property identifiers The identifiers of the principal.
 */
public data class GetPolicyDocumentStatementPrincipal(
    public val entity: String,
    public val identifiers: List,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.alicloud.ram.inputs.GetPolicyDocumentStatementPrincipal =
        com.pulumi.alicloud.ram.inputs.GetPolicyDocumentStatementPrincipal.builder()
            .entity(entity.let({ args0 -> args0 }))
            .identifiers(identifiers.let({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [GetPolicyDocumentStatementPrincipal].
 */
@PulumiTagMarker
public class GetPolicyDocumentStatementPrincipalBuilder internal constructor() {
    private var entity: String? = null

    private var identifiers: List? = null

    /**
     * @param value The trusted entity. Valid values: `RAM`, `Service` and `Federated`.
     */
    @JvmName("adrajndrwtjtnffx")
    public suspend fun entity(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.entity = mapped
    }

    /**
     * @param value The identifiers of the principal.
     */
    @JvmName("hyvyxvodvnfhfbbi")
    public suspend fun identifiers(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.identifiers = mapped
    }

    /**
     * @param values The identifiers of the principal.
     */
    @JvmName("ecvfgnojngwsgygc")
    public suspend fun identifiers(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.identifiers = mapped
    }

    internal fun build(): GetPolicyDocumentStatementPrincipal = GetPolicyDocumentStatementPrincipal(
        entity = entity ?: throw PulumiNullFieldException("entity"),
        identifiers = identifiers ?: throw PulumiNullFieldException("identifiers"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy