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

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

package com.pulumi.gcp.accesscontextmanager.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimeterStatusEgressPolicyEgressToOperationMethodSelectorArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property method Value for `method` should be a valid method name for the corresponding
 * `serviceName` in `ApiOperation`. If `*` used as value for method,
 * then ALL methods and permissions are allowed.
 * @property permission Value for permission should be a valid Cloud IAM permission for the
 * corresponding `serviceName` in `ApiOperation`.
 */
public data class ServicePerimeterStatusEgressPolicyEgressToOperationMethodSelectorArgs(
    public val method: Output? = null,
    public val permission: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimeterStatusEgressPolicyEgressToOperationMethodSelectorArgs =
        com.pulumi.gcp.accesscontextmanager.inputs.ServicePerimeterStatusEgressPolicyEgressToOperationMethodSelectorArgs.builder()
            .method(method?.applyValue({ args0 -> args0 }))
            .permission(permission?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ServicePerimeterStatusEgressPolicyEgressToOperationMethodSelectorArgs].
 */
@PulumiTagMarker
public class ServicePerimeterStatusEgressPolicyEgressToOperationMethodSelectorArgsBuilder internal constructor() {
    private var method: Output? = null

    private var permission: Output? = null

    /**
     * @param value Value for `method` should be a valid method name for the corresponding
     * `serviceName` in `ApiOperation`. If `*` used as value for method,
     * then ALL methods and permissions are allowed.
     */
    @JvmName("amwifpxbwaajnign")
    public suspend fun method(`value`: Output) {
        this.method = value
    }

    /**
     * @param value Value for permission should be a valid Cloud IAM permission for the
     * corresponding `serviceName` in `ApiOperation`.
     */
    @JvmName("jnehvpwxjnlqahvy")
    public suspend fun permission(`value`: Output) {
        this.permission = value
    }

    /**
     * @param value Value for `method` should be a valid method name for the corresponding
     * `serviceName` in `ApiOperation`. If `*` used as value for method,
     * then ALL methods and permissions are allowed.
     */
    @JvmName("jsvtekeqxlpdaljo")
    public suspend fun method(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.method = mapped
    }

    /**
     * @param value Value for permission should be a valid Cloud IAM permission for the
     * corresponding `serviceName` in `ApiOperation`.
     */
    @JvmName("quvrlaxecspphoac")
    public suspend fun permission(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.permission = mapped
    }

    internal fun build(): ServicePerimeterStatusEgressPolicyEgressToOperationMethodSelectorArgs =
        ServicePerimeterStatusEgressPolicyEgressToOperationMethodSelectorArgs(
            method = method,
            permission = permission,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy