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

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

package com.pulumi.gcp.storage.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.storage.inputs.TransferJobNotificationConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property eventTypes Event types for which a notification is desired. If empty, send notifications for all event types. The valid types are "TRANSFER_OPERATION_SUCCESS", "TRANSFER_OPERATION_FAILED", "TRANSFER_OPERATION_ABORTED".
 * @property payloadFormat The desired format of the notification message payloads. One of "NONE" or "JSON".
 * @property pubsubTopic The Topic.name of the Pub/Sub topic to which to publish notifications. Must be of the format: projects/{project}/topics/{topic}. Not matching this format results in an INVALID_ARGUMENT error.
 */
public data class TransferJobNotificationConfigArgs(
    public val eventTypes: Output>? = null,
    public val payloadFormat: Output,
    public val pubsubTopic: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.storage.inputs.TransferJobNotificationConfigArgs =
        com.pulumi.gcp.storage.inputs.TransferJobNotificationConfigArgs.builder()
            .eventTypes(eventTypes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .payloadFormat(payloadFormat.applyValue({ args0 -> args0 }))
            .pubsubTopic(pubsubTopic.applyValue({ args0 -> args0 })).build()
}

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

    private var payloadFormat: Output? = null

    private var pubsubTopic: Output? = null

    /**
     * @param value Event types for which a notification is desired. If empty, send notifications for all event types. The valid types are "TRANSFER_OPERATION_SUCCESS", "TRANSFER_OPERATION_FAILED", "TRANSFER_OPERATION_ABORTED".
     */
    @JvmName("ykrjeqdaodwnvkwo")
    public suspend fun eventTypes(`value`: Output>) {
        this.eventTypes = value
    }

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

    /**
     * @param values Event types for which a notification is desired. If empty, send notifications for all event types. The valid types are "TRANSFER_OPERATION_SUCCESS", "TRANSFER_OPERATION_FAILED", "TRANSFER_OPERATION_ABORTED".
     */
    @JvmName("owukblrjtruibhqp")
    public suspend fun eventTypes(values: List>) {
        this.eventTypes = Output.all(values)
    }

    /**
     * @param value The desired format of the notification message payloads. One of "NONE" or "JSON".
     */
    @JvmName("cnsbdcxdxbrgqrif")
    public suspend fun payloadFormat(`value`: Output) {
        this.payloadFormat = value
    }

    /**
     * @param value The Topic.name of the Pub/Sub topic to which to publish notifications. Must be of the format: projects/{project}/topics/{topic}. Not matching this format results in an INVALID_ARGUMENT error.
     */
    @JvmName("ndowlasxxwxudidf")
    public suspend fun pubsubTopic(`value`: Output) {
        this.pubsubTopic = value
    }

    /**
     * @param value Event types for which a notification is desired. If empty, send notifications for all event types. The valid types are "TRANSFER_OPERATION_SUCCESS", "TRANSFER_OPERATION_FAILED", "TRANSFER_OPERATION_ABORTED".
     */
    @JvmName("cemvljaybxciylmc")
    public suspend fun eventTypes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.eventTypes = mapped
    }

    /**
     * @param values Event types for which a notification is desired. If empty, send notifications for all event types. The valid types are "TRANSFER_OPERATION_SUCCESS", "TRANSFER_OPERATION_FAILED", "TRANSFER_OPERATION_ABORTED".
     */
    @JvmName("akpwccquiavnhtqu")
    public suspend fun eventTypes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.eventTypes = mapped
    }

    /**
     * @param value The desired format of the notification message payloads. One of "NONE" or "JSON".
     */
    @JvmName("krixgnehvvnnyckv")
    public suspend fun payloadFormat(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.payloadFormat = mapped
    }

    /**
     * @param value The Topic.name of the Pub/Sub topic to which to publish notifications. Must be of the format: projects/{project}/topics/{topic}. Not matching this format results in an INVALID_ARGUMENT error.
     */
    @JvmName("heiqwlagvwfoyjbq")
    public suspend fun pubsubTopic(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.pubsubTopic = mapped
    }

    internal fun build(): TransferJobNotificationConfigArgs = TransferJobNotificationConfigArgs(
        eventTypes = eventTypes,
        payloadFormat = payloadFormat ?: throw PulumiNullFieldException("payloadFormat"),
        pubsubTopic = pubsubTopic ?: throw PulumiNullFieldException("pubsubTopic"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy