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

com.pulumi.gcp.projects.kotlin.inputs.ApiKeyRestrictionsAndroidKeyRestrictionsArgs.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.projects.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.projects.inputs.ApiKeyRestrictionsAndroidKeyRestrictionsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property allowedApplications A list of Android applications that are allowed to make API calls with this key.
 */
public data class ApiKeyRestrictionsAndroidKeyRestrictionsArgs(
    public val allowedApplications: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.projects.inputs.ApiKeyRestrictionsAndroidKeyRestrictionsArgs = com.pulumi.gcp.projects.inputs.ApiKeyRestrictionsAndroidKeyRestrictionsArgs.builder()
        .allowedApplications(
            allowedApplications.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                })
            }),
        ).build()
}

/**
 * Builder for [ApiKeyRestrictionsAndroidKeyRestrictionsArgs].
 */
@PulumiTagMarker
public class ApiKeyRestrictionsAndroidKeyRestrictionsArgsBuilder internal constructor() {
    private var allowedApplications:
        Output>? = null

    /**
     * @param value A list of Android applications that are allowed to make API calls with this key.
     */
    @JvmName("trlblhdgjaagacia")
    public suspend fun allowedApplications(`value`: Output>) {
        this.allowedApplications = value
    }

    @JvmName("jhmnbkfewlrcodsy")
    public suspend fun allowedApplications(vararg values: Output) {
        this.allowedApplications = Output.all(values.asList())
    }

    /**
     * @param values A list of Android applications that are allowed to make API calls with this key.
     */
    @JvmName("uhrevaabhtgbnucv")
    public suspend fun allowedApplications(values: List>) {
        this.allowedApplications = Output.all(values)
    }

    /**
     * @param value A list of Android applications that are allowed to make API calls with this key.
     */
    @JvmName("khtbwftimchmeahp")
    public suspend fun allowedApplications(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedApplications = mapped
    }

    /**
     * @param argument A list of Android applications that are allowed to make API calls with this key.
     */
    @JvmName("cjqanplkfxbigige")
    public suspend fun allowedApplications(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ApiKeyRestrictionsAndroidKeyRestrictionsAllowedApplicationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.allowedApplications = mapped
    }

    /**
     * @param argument A list of Android applications that are allowed to make API calls with this key.
     */
    @JvmName("qgjeglbvanbkqioy")
    public suspend fun allowedApplications(vararg argument: suspend ApiKeyRestrictionsAndroidKeyRestrictionsAllowedApplicationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ApiKeyRestrictionsAndroidKeyRestrictionsAllowedApplicationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.allowedApplications = mapped
    }

    /**
     * @param argument A list of Android applications that are allowed to make API calls with this key.
     */
    @JvmName("iyneofuvaxxunrqm")
    public suspend fun allowedApplications(argument: suspend ApiKeyRestrictionsAndroidKeyRestrictionsAllowedApplicationArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ApiKeyRestrictionsAndroidKeyRestrictionsAllowedApplicationArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.allowedApplications = mapped
    }

    /**
     * @param values A list of Android applications that are allowed to make API calls with this key.
     */
    @JvmName("sesuwdrkeapidsam")
    public suspend fun allowedApplications(vararg values: ApiKeyRestrictionsAndroidKeyRestrictionsAllowedApplicationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedApplications = mapped
    }

    internal fun build(): ApiKeyRestrictionsAndroidKeyRestrictionsArgs =
        ApiKeyRestrictionsAndroidKeyRestrictionsArgs(
            allowedApplications = allowedApplications ?: throw PulumiNullFieldException("allowedApplications"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy