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

com.pulumi.azurenative.notificationhubs.kotlin.inputs.GcmCredentialPropertiesArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.notificationhubs.kotlin.inputs

import com.pulumi.azurenative.notificationhubs.inputs.GcmCredentialPropertiesArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Description of a NotificationHub GcmCredential.
 * @property gcmEndpoint Gets or sets the GCM endpoint.
 * @property googleApiKey Gets or sets the Google API key.
 */
public data class GcmCredentialPropertiesArgs(
    public val gcmEndpoint: Output? = null,
    public val googleApiKey: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.notificationhubs.inputs.GcmCredentialPropertiesArgs = com.pulumi.azurenative.notificationhubs.inputs.GcmCredentialPropertiesArgs.builder()
        .gcmEndpoint(gcmEndpoint?.applyValue({ args0 -> args0 }))
        .googleApiKey(googleApiKey.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GcmCredentialPropertiesArgs].
 */
@PulumiTagMarker
public class GcmCredentialPropertiesArgsBuilder internal constructor() {
    private var gcmEndpoint: Output? = null

    private var googleApiKey: Output? = null

    /**
     * @param value Gets or sets the GCM endpoint.
     */
    @JvmName("aujfhlexnnpjysqo")
    public suspend fun gcmEndpoint(`value`: Output) {
        this.gcmEndpoint = value
    }

    /**
     * @param value Gets or sets the Google API key.
     */
    @JvmName("gdebigiqhjieumyp")
    public suspend fun googleApiKey(`value`: Output) {
        this.googleApiKey = value
    }

    /**
     * @param value Gets or sets the GCM endpoint.
     */
    @JvmName("ptalcnhcbbpvdegk")
    public suspend fun gcmEndpoint(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.gcmEndpoint = mapped
    }

    /**
     * @param value Gets or sets the Google API key.
     */
    @JvmName("qchavvtwafasyeck")
    public suspend fun googleApiKey(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.googleApiKey = mapped
    }

    internal fun build(): GcmCredentialPropertiesArgs = GcmCredentialPropertiesArgs(
        gcmEndpoint = gcmEndpoint,
        googleApiKey = googleApiKey ?: throw PulumiNullFieldException("googleApiKey"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy