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

com.pulumi.gcp.cloudidentity.kotlin.inputs.GroupMembershipRoleArgs.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: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.cloudidentity.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudidentity.inputs.GroupMembershipRoleArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property expiryDetail The MembershipRole expiry details, only supported for MEMBER role.
 * Other roles cannot be accompanied with MEMBER role having expiry.
 * Structure is documented below.
 * @property name The name of the MembershipRole. Must be one of OWNER, MANAGER, MEMBER.
 * Possible values are: `OWNER`, `MANAGER`, `MEMBER`.
 */
public data class GroupMembershipRoleArgs(
    public val expiryDetail: Output? = null,
    public val name: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudidentity.inputs.GroupMembershipRoleArgs =
        com.pulumi.gcp.cloudidentity.inputs.GroupMembershipRoleArgs.builder()
            .expiryDetail(expiryDetail?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GroupMembershipRoleArgs].
 */
@PulumiTagMarker
public class GroupMembershipRoleArgsBuilder internal constructor() {
    private var expiryDetail: Output? = null

    private var name: Output? = null

    /**
     * @param value The MembershipRole expiry details, only supported for MEMBER role.
     * Other roles cannot be accompanied with MEMBER role having expiry.
     * Structure is documented below.
     */
    @JvmName("fvsoawlgcnpkjtfg")
    public suspend fun expiryDetail(`value`: Output) {
        this.expiryDetail = value
    }

    /**
     * @param value The name of the MembershipRole. Must be one of OWNER, MANAGER, MEMBER.
     * Possible values are: `OWNER`, `MANAGER`, `MEMBER`.
     */
    @JvmName("lhvloofwwrhtfcsc")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The MembershipRole expiry details, only supported for MEMBER role.
     * Other roles cannot be accompanied with MEMBER role having expiry.
     * Structure is documented below.
     */
    @JvmName("qdkgnifcfyxjhvvt")
    public suspend fun expiryDetail(`value`: GroupMembershipRoleExpiryDetailArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.expiryDetail = mapped
    }

    /**
     * @param argument The MembershipRole expiry details, only supported for MEMBER role.
     * Other roles cannot be accompanied with MEMBER role having expiry.
     * Structure is documented below.
     */
    @JvmName("lacfwykwfasdkysj")
    public suspend fun expiryDetail(argument: suspend GroupMembershipRoleExpiryDetailArgsBuilder.() -> Unit) {
        val toBeMapped = GroupMembershipRoleExpiryDetailArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.expiryDetail = mapped
    }

    /**
     * @param value The name of the MembershipRole. Must be one of OWNER, MANAGER, MEMBER.
     * Possible values are: `OWNER`, `MANAGER`, `MEMBER`.
     */
    @JvmName("libayubulhjwcmma")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): GroupMembershipRoleArgs = GroupMembershipRoleArgs(
        expiryDetail = expiryDetail,
        name = name ?: throw PulumiNullFieldException("name"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy