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

com.pulumi.azurenative.notificationhubs.kotlin.inputs.BrowserCredentialPropertiesArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.azurenative.notificationhubs.inputs.BrowserCredentialPropertiesArgs.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 BrowserCredential.
 * @property subject Gets or sets web push subject.
 * @property vapidPrivateKey Gets or sets VAPID private key.
 * @property vapidPublicKey Gets or sets VAPID public key.
 */
public data class BrowserCredentialPropertiesArgs(
    public val subject: Output,
    public val vapidPrivateKey: Output,
    public val vapidPublicKey: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.notificationhubs.inputs.BrowserCredentialPropertiesArgs =
        com.pulumi.azurenative.notificationhubs.inputs.BrowserCredentialPropertiesArgs.builder()
            .subject(subject.applyValue({ args0 -> args0 }))
            .vapidPrivateKey(vapidPrivateKey.applyValue({ args0 -> args0 }))
            .vapidPublicKey(vapidPublicKey.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BrowserCredentialPropertiesArgs].
 */
@PulumiTagMarker
public class BrowserCredentialPropertiesArgsBuilder internal constructor() {
    private var subject: Output? = null

    private var vapidPrivateKey: Output? = null

    private var vapidPublicKey: Output? = null

    /**
     * @param value Gets or sets web push subject.
     */
    @JvmName("jyoxjoqunoysiefu")
    public suspend fun subject(`value`: Output) {
        this.subject = value
    }

    /**
     * @param value Gets or sets VAPID private key.
     */
    @JvmName("hwtegmxqcklactwr")
    public suspend fun vapidPrivateKey(`value`: Output) {
        this.vapidPrivateKey = value
    }

    /**
     * @param value Gets or sets VAPID public key.
     */
    @JvmName("iuynyesnpnjuqkkf")
    public suspend fun vapidPublicKey(`value`: Output) {
        this.vapidPublicKey = value
    }

    /**
     * @param value Gets or sets web push subject.
     */
    @JvmName("eaxphqmsrijlcxxp")
    public suspend fun subject(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subject = mapped
    }

    /**
     * @param value Gets or sets VAPID private key.
     */
    @JvmName("hmbofmskxcshsvmp")
    public suspend fun vapidPrivateKey(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.vapidPrivateKey = mapped
    }

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

    internal fun build(): BrowserCredentialPropertiesArgs = BrowserCredentialPropertiesArgs(
        subject = subject ?: throw PulumiNullFieldException("subject"),
        vapidPrivateKey = vapidPrivateKey ?: throw PulumiNullFieldException("vapidPrivateKey"),
        vapidPublicKey = vapidPublicKey ?: throw PulumiNullFieldException("vapidPublicKey"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy