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

com.pulumi.gcp.pubsub.kotlin.inputs.LiteSubscriptionDeliveryConfigArgs.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.pubsub.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.pubsub.inputs.LiteSubscriptionDeliveryConfigArgs.builder
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

/**
 *
 * @property deliveryRequirement When this subscription should send messages to subscribers relative to messages persistence in storage.
 * Possible values are: `DELIVER_IMMEDIATELY`, `DELIVER_AFTER_STORED`, `DELIVERY_REQUIREMENT_UNSPECIFIED`.
 */
public data class LiteSubscriptionDeliveryConfigArgs(
    public val deliveryRequirement: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.pubsub.inputs.LiteSubscriptionDeliveryConfigArgs =
        com.pulumi.gcp.pubsub.inputs.LiteSubscriptionDeliveryConfigArgs.builder()
            .deliveryRequirement(deliveryRequirement.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LiteSubscriptionDeliveryConfigArgs].
 */
@PulumiTagMarker
public class LiteSubscriptionDeliveryConfigArgsBuilder internal constructor() {
    private var deliveryRequirement: Output? = null

    /**
     * @param value When this subscription should send messages to subscribers relative to messages persistence in storage.
     * Possible values are: `DELIVER_IMMEDIATELY`, `DELIVER_AFTER_STORED`, `DELIVERY_REQUIREMENT_UNSPECIFIED`.
     */
    @JvmName("uhnomcfwxifkkokg")
    public suspend fun deliveryRequirement(`value`: Output) {
        this.deliveryRequirement = value
    }

    /**
     * @param value When this subscription should send messages to subscribers relative to messages persistence in storage.
     * Possible values are: `DELIVER_IMMEDIATELY`, `DELIVER_AFTER_STORED`, `DELIVERY_REQUIREMENT_UNSPECIFIED`.
     */
    @JvmName("bmjasakkduvxoojr")
    public suspend fun deliveryRequirement(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.deliveryRequirement = mapped
    }

    internal fun build(): LiteSubscriptionDeliveryConfigArgs = LiteSubscriptionDeliveryConfigArgs(
        deliveryRequirement = deliveryRequirement ?: throw PulumiNullFieldException("deliveryRequirement"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy