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

com.pulumi.gitlab.kotlin.IntegrationSlackArgs.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.4.2.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gitlab.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gitlab.IntegrationSlackArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Deprecated
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The `gitlab.IntegrationSlack` resource allows to manage the lifecycle of a project integration with Slack.
 * **Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/integrations.html#slack-notifications)
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gitlab from "@pulumi/gitlab";
 * const awesomeProject = new gitlab.Project("awesome_project", {
 *     name: "awesome_project",
 *     description: "My awesome project.",
 *     visibilityLevel: "public",
 * });
 * const slack = new gitlab.IntegrationSlack("slack", {
 *     project: awesomeProject.id,
 *     webhook: "https://webhook.com",
 *     username: "myuser",
 *     pushEvents: true,
 *     pushChannel: "push_chan",
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gitlab as gitlab
 * awesome_project = gitlab.Project("awesome_project",
 *     name="awesome_project",
 *     description="My awesome project.",
 *     visibility_level="public")
 * slack = gitlab.IntegrationSlack("slack",
 *     project=awesome_project.id,
 *     webhook="https://webhook.com",
 *     username="myuser",
 *     push_events=True,
 *     push_channel="push_chan")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using GitLab = Pulumi.GitLab;
 * return await Deployment.RunAsync(() =>
 * {
 *     var awesomeProject = new GitLab.Project("awesome_project", new()
 *     {
 *         Name = "awesome_project",
 *         Description = "My awesome project.",
 *         VisibilityLevel = "public",
 *     });
 *     var slack = new GitLab.IntegrationSlack("slack", new()
 *     {
 *         Project = awesomeProject.Id,
 *         Webhook = "https://webhook.com",
 *         Username = "myuser",
 *         PushEvents = true,
 *         PushChannel = "push_chan",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gitlab/sdk/v8/go/gitlab"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		awesomeProject, err := gitlab.NewProject(ctx, "awesome_project", &gitlab.ProjectArgs{
 * 			Name:            pulumi.String("awesome_project"),
 * 			Description:     pulumi.String("My awesome project."),
 * 			VisibilityLevel: pulumi.String("public"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = gitlab.NewIntegrationSlack(ctx, "slack", &gitlab.IntegrationSlackArgs{
 * 			Project:     awesomeProject.ID(),
 * 			Webhook:     pulumi.String("https://webhook.com"),
 * 			Username:    pulumi.String("myuser"),
 * 			PushEvents:  pulumi.Bool(true),
 * 			PushChannel: pulumi.String("push_chan"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.gitlab.Project;
 * import com.pulumi.gitlab.ProjectArgs;
 * import com.pulumi.gitlab.IntegrationSlack;
 * import com.pulumi.gitlab.IntegrationSlackArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var awesomeProject = new Project("awesomeProject", ProjectArgs.builder()
 *             .name("awesome_project")
 *             .description("My awesome project.")
 *             .visibilityLevel("public")
 *             .build());
 *         var slack = new IntegrationSlack("slack", IntegrationSlackArgs.builder()
 *             .project(awesomeProject.id())
 *             .webhook("https://webhook.com")
 *             .username("myuser")
 *             .pushEvents(true)
 *             .pushChannel("push_chan")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   awesomeProject:
 *     type: gitlab:Project
 *     name: awesome_project
 *     properties:
 *       name: awesome_project
 *       description: My awesome project.
 *       visibilityLevel: public
 *   slack:
 *     type: gitlab:IntegrationSlack
 *     properties:
 *       project: ${awesomeProject.id}
 *       webhook: https://webhook.com
 *       username: myuser
 *       pushEvents: true
 *       pushChannel: push_chan
 * ```
 * 
 * ## Import
 * Starting in Terraform v1.5.0 you can use an import block to import `gitlab_integration_slack`. For example:
 * terraform
 * import {
 *   to = gitlab_integration_slack.example
 *   id = "see CLI command below for ID"
 * }
 * Import using the CLI is supported using the following syntax:
 * You can import a gitlab_integration_slack.slack state using the project ID, e.g.
 * ```sh
 * $ pulumi import gitlab:index/integrationSlack:IntegrationSlack slack 1
 * ```
 * @property branchesToBeNotified Branches to send notifications for. Valid options are "all", "default", "protected", and "default*and*protected".
 * @property confidentialIssueChannel The name of the channel to receive confidential issue events notifications.
 * @property confidentialIssuesEvents Enable notifications for confidential issues events.
 * @property confidentialNoteChannel The name of the channel to receive confidential note events notifications.
 * @property confidentialNoteEvents Enable notifications for confidential note events.
 * @property issueChannel The name of the channel to receive issue events notifications.
 * @property issuesEvents Enable notifications for issues events.
 * @property mergeRequestChannel The name of the channel to receive merge request events notifications.
 * @property mergeRequestsEvents Enable notifications for merge requests events.
 * @property noteChannel The name of the channel to receive note events notifications.
 * @property noteEvents Enable notifications for note events.
 * @property notifyOnlyBrokenPipelines Send notifications for broken pipelines.
 * @property notifyOnlyDefaultBranch This parameter has been replaced with `branches_to_be_notified`.
 * @property pipelineChannel The name of the channel to receive pipeline events notifications.
 * @property pipelineEvents Enable notifications for pipeline events.
 * @property project ID of the project you want to activate integration on.
 * @property pushChannel The name of the channel to receive push events notifications.
 * @property pushEvents Enable notifications for push events.
 * @property tagPushChannel The name of the channel to receive tag push events notifications.
 * @property tagPushEvents Enable notifications for tag push events.
 * @property username Username to use.
 * @property webhook Webhook URL (Example, https://hooks.slack.com/services/...). This value cannot be imported.
 * @property wikiPageChannel The name of the channel to receive wiki page events notifications.
 * @property wikiPageEvents Enable notifications for wiki page events.
 */
public data class IntegrationSlackArgs(
    public val branchesToBeNotified: Output? = null,
    public val confidentialIssueChannel: Output? = null,
    public val confidentialIssuesEvents: Output? = null,
    public val confidentialNoteChannel: Output? = null,
    public val confidentialNoteEvents: Output? = null,
    public val issueChannel: Output? = null,
    public val issuesEvents: Output? = null,
    public val mergeRequestChannel: Output? = null,
    public val mergeRequestsEvents: Output? = null,
    public val noteChannel: Output? = null,
    public val noteEvents: Output? = null,
    public val notifyOnlyBrokenPipelines: Output? = null,
    @Deprecated(
        message = """
  use 'branches_to_be_notified' argument instead
  """,
    )
    public val notifyOnlyDefaultBranch: Output? = null,
    public val pipelineChannel: Output? = null,
    public val pipelineEvents: Output? = null,
    public val project: Output? = null,
    public val pushChannel: Output? = null,
    public val pushEvents: Output? = null,
    public val tagPushChannel: Output? = null,
    public val tagPushEvents: Output? = null,
    public val username: Output? = null,
    public val webhook: Output? = null,
    public val wikiPageChannel: Output? = null,
    public val wikiPageEvents: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gitlab.IntegrationSlackArgs =
        com.pulumi.gitlab.IntegrationSlackArgs.builder()
            .branchesToBeNotified(branchesToBeNotified?.applyValue({ args0 -> args0 }))
            .confidentialIssueChannel(confidentialIssueChannel?.applyValue({ args0 -> args0 }))
            .confidentialIssuesEvents(confidentialIssuesEvents?.applyValue({ args0 -> args0 }))
            .confidentialNoteChannel(confidentialNoteChannel?.applyValue({ args0 -> args0 }))
            .confidentialNoteEvents(confidentialNoteEvents?.applyValue({ args0 -> args0 }))
            .issueChannel(issueChannel?.applyValue({ args0 -> args0 }))
            .issuesEvents(issuesEvents?.applyValue({ args0 -> args0 }))
            .mergeRequestChannel(mergeRequestChannel?.applyValue({ args0 -> args0 }))
            .mergeRequestsEvents(mergeRequestsEvents?.applyValue({ args0 -> args0 }))
            .noteChannel(noteChannel?.applyValue({ args0 -> args0 }))
            .noteEvents(noteEvents?.applyValue({ args0 -> args0 }))
            .notifyOnlyBrokenPipelines(notifyOnlyBrokenPipelines?.applyValue({ args0 -> args0 }))
            .notifyOnlyDefaultBranch(notifyOnlyDefaultBranch?.applyValue({ args0 -> args0 }))
            .pipelineChannel(pipelineChannel?.applyValue({ args0 -> args0 }))
            .pipelineEvents(pipelineEvents?.applyValue({ args0 -> args0 }))
            .project(project?.applyValue({ args0 -> args0 }))
            .pushChannel(pushChannel?.applyValue({ args0 -> args0 }))
            .pushEvents(pushEvents?.applyValue({ args0 -> args0 }))
            .tagPushChannel(tagPushChannel?.applyValue({ args0 -> args0 }))
            .tagPushEvents(tagPushEvents?.applyValue({ args0 -> args0 }))
            .username(username?.applyValue({ args0 -> args0 }))
            .webhook(webhook?.applyValue({ args0 -> args0 }))
            .wikiPageChannel(wikiPageChannel?.applyValue({ args0 -> args0 }))
            .wikiPageEvents(wikiPageEvents?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [IntegrationSlackArgs].
 */
@PulumiTagMarker
public class IntegrationSlackArgsBuilder internal constructor() {
    private var branchesToBeNotified: Output? = null

    private var confidentialIssueChannel: Output? = null

    private var confidentialIssuesEvents: Output? = null

    private var confidentialNoteChannel: Output? = null

    private var confidentialNoteEvents: Output? = null

    private var issueChannel: Output? = null

    private var issuesEvents: Output? = null

    private var mergeRequestChannel: Output? = null

    private var mergeRequestsEvents: Output? = null

    private var noteChannel: Output? = null

    private var noteEvents: Output? = null

    private var notifyOnlyBrokenPipelines: Output? = null

    private var notifyOnlyDefaultBranch: Output? = null

    private var pipelineChannel: Output? = null

    private var pipelineEvents: Output? = null

    private var project: Output? = null

    private var pushChannel: Output? = null

    private var pushEvents: Output? = null

    private var tagPushChannel: Output? = null

    private var tagPushEvents: Output? = null

    private var username: Output? = null

    private var webhook: Output? = null

    private var wikiPageChannel: Output? = null

    private var wikiPageEvents: Output? = null

    /**
     * @param value Branches to send notifications for. Valid options are "all", "default", "protected", and "default*and*protected".
     */
    @JvmName("ihobfxbkmsimwewr")
    public suspend fun branchesToBeNotified(`value`: Output) {
        this.branchesToBeNotified = value
    }

    /**
     * @param value The name of the channel to receive confidential issue events notifications.
     */
    @JvmName("ulxhrggefaqxkwru")
    public suspend fun confidentialIssueChannel(`value`: Output) {
        this.confidentialIssueChannel = value
    }

    /**
     * @param value Enable notifications for confidential issues events.
     */
    @JvmName("imqbnyvxfngklncw")
    public suspend fun confidentialIssuesEvents(`value`: Output) {
        this.confidentialIssuesEvents = value
    }

    /**
     * @param value The name of the channel to receive confidential note events notifications.
     */
    @JvmName("xhvkfxfjeouifhri")
    public suspend fun confidentialNoteChannel(`value`: Output) {
        this.confidentialNoteChannel = value
    }

    /**
     * @param value Enable notifications for confidential note events.
     */
    @JvmName("rdwkxdugdkkagarq")
    public suspend fun confidentialNoteEvents(`value`: Output) {
        this.confidentialNoteEvents = value
    }

    /**
     * @param value The name of the channel to receive issue events notifications.
     */
    @JvmName("ncmomcmoiirqokcg")
    public suspend fun issueChannel(`value`: Output) {
        this.issueChannel = value
    }

    /**
     * @param value Enable notifications for issues events.
     */
    @JvmName("ackhgigykmfduihg")
    public suspend fun issuesEvents(`value`: Output) {
        this.issuesEvents = value
    }

    /**
     * @param value The name of the channel to receive merge request events notifications.
     */
    @JvmName("nyfymmykkorchnjp")
    public suspend fun mergeRequestChannel(`value`: Output) {
        this.mergeRequestChannel = value
    }

    /**
     * @param value Enable notifications for merge requests events.
     */
    @JvmName("dkacqqjhkbxmrmks")
    public suspend fun mergeRequestsEvents(`value`: Output) {
        this.mergeRequestsEvents = value
    }

    /**
     * @param value The name of the channel to receive note events notifications.
     */
    @JvmName("oqepbnmsimtekwyp")
    public suspend fun noteChannel(`value`: Output) {
        this.noteChannel = value
    }

    /**
     * @param value Enable notifications for note events.
     */
    @JvmName("lbvmbnpwdfrvrcrw")
    public suspend fun noteEvents(`value`: Output) {
        this.noteEvents = value
    }

    /**
     * @param value Send notifications for broken pipelines.
     */
    @JvmName("yvphhtuiilbbfjbx")
    public suspend fun notifyOnlyBrokenPipelines(`value`: Output) {
        this.notifyOnlyBrokenPipelines = value
    }

    /**
     * @param value This parameter has been replaced with `branches_to_be_notified`.
     */
    @Deprecated(
        message = """
  use 'branches_to_be_notified' argument instead
  """,
    )
    @JvmName("ysbyhotddeqxuigw")
    public suspend fun notifyOnlyDefaultBranch(`value`: Output) {
        this.notifyOnlyDefaultBranch = value
    }

    /**
     * @param value The name of the channel to receive pipeline events notifications.
     */
    @JvmName("qcmfqqjkotdebqbd")
    public suspend fun pipelineChannel(`value`: Output) {
        this.pipelineChannel = value
    }

    /**
     * @param value Enable notifications for pipeline events.
     */
    @JvmName("nwwnkjlrkstsuouq")
    public suspend fun pipelineEvents(`value`: Output) {
        this.pipelineEvents = value
    }

    /**
     * @param value ID of the project you want to activate integration on.
     */
    @JvmName("pxopwaaholvyfhdc")
    public suspend fun project(`value`: Output) {
        this.project = value
    }

    /**
     * @param value The name of the channel to receive push events notifications.
     */
    @JvmName("bghshcbcufrinitb")
    public suspend fun pushChannel(`value`: Output) {
        this.pushChannel = value
    }

    /**
     * @param value Enable notifications for push events.
     */
    @JvmName("fucxeibkqqigjaru")
    public suspend fun pushEvents(`value`: Output) {
        this.pushEvents = value
    }

    /**
     * @param value The name of the channel to receive tag push events notifications.
     */
    @JvmName("mqerpauluaffsusl")
    public suspend fun tagPushChannel(`value`: Output) {
        this.tagPushChannel = value
    }

    /**
     * @param value Enable notifications for tag push events.
     */
    @JvmName("ibpijkgrufishxts")
    public suspend fun tagPushEvents(`value`: Output) {
        this.tagPushEvents = value
    }

    /**
     * @param value Username to use.
     */
    @JvmName("yolcvvmvxswevlod")
    public suspend fun username(`value`: Output) {
        this.username = value
    }

    /**
     * @param value Webhook URL (Example, https://hooks.slack.com/services/...). This value cannot be imported.
     */
    @JvmName("osflmdlogxeqqenk")
    public suspend fun webhook(`value`: Output) {
        this.webhook = value
    }

    /**
     * @param value The name of the channel to receive wiki page events notifications.
     */
    @JvmName("ttnaxldbgjneqjvp")
    public suspend fun wikiPageChannel(`value`: Output) {
        this.wikiPageChannel = value
    }

    /**
     * @param value Enable notifications for wiki page events.
     */
    @JvmName("eurkonaihlvwdpfg")
    public suspend fun wikiPageEvents(`value`: Output) {
        this.wikiPageEvents = value
    }

    /**
     * @param value Branches to send notifications for. Valid options are "all", "default", "protected", and "default*and*protected".
     */
    @JvmName("dovtwxulbxgcfapd")
    public suspend fun branchesToBeNotified(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.branchesToBeNotified = mapped
    }

    /**
     * @param value The name of the channel to receive confidential issue events notifications.
     */
    @JvmName("onrhnugagtbddtog")
    public suspend fun confidentialIssueChannel(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.confidentialIssueChannel = mapped
    }

    /**
     * @param value Enable notifications for confidential issues events.
     */
    @JvmName("kqfuwloyvedvkrrr")
    public suspend fun confidentialIssuesEvents(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.confidentialIssuesEvents = mapped
    }

    /**
     * @param value The name of the channel to receive confidential note events notifications.
     */
    @JvmName("hkopwtxiairixank")
    public suspend fun confidentialNoteChannel(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.confidentialNoteChannel = mapped
    }

    /**
     * @param value Enable notifications for confidential note events.
     */
    @JvmName("usafdsietfffwddr")
    public suspend fun confidentialNoteEvents(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.confidentialNoteEvents = mapped
    }

    /**
     * @param value The name of the channel to receive issue events notifications.
     */
    @JvmName("dkshivqwlfaelskq")
    public suspend fun issueChannel(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.issueChannel = mapped
    }

    /**
     * @param value Enable notifications for issues events.
     */
    @JvmName("ybutdxdsqfrqakrr")
    public suspend fun issuesEvents(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.issuesEvents = mapped
    }

    /**
     * @param value The name of the channel to receive merge request events notifications.
     */
    @JvmName("eblvrepbhnsbhunt")
    public suspend fun mergeRequestChannel(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mergeRequestChannel = mapped
    }

    /**
     * @param value Enable notifications for merge requests events.
     */
    @JvmName("rvamrjhmrjqnbutf")
    public suspend fun mergeRequestsEvents(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mergeRequestsEvents = mapped
    }

    /**
     * @param value The name of the channel to receive note events notifications.
     */
    @JvmName("cqeupakegtmfwonx")
    public suspend fun noteChannel(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.noteChannel = mapped
    }

    /**
     * @param value Enable notifications for note events.
     */
    @JvmName("mhwvjnbydyqargjb")
    public suspend fun noteEvents(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.noteEvents = mapped
    }

    /**
     * @param value Send notifications for broken pipelines.
     */
    @JvmName("lmgraloovuqbptal")
    public suspend fun notifyOnlyBrokenPipelines(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.notifyOnlyBrokenPipelines = mapped
    }

    /**
     * @param value This parameter has been replaced with `branches_to_be_notified`.
     */
    @Deprecated(
        message = """
  use 'branches_to_be_notified' argument instead
  """,
    )
    @JvmName("tlhlsusnwamvnpid")
    public suspend fun notifyOnlyDefaultBranch(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.notifyOnlyDefaultBranch = mapped
    }

    /**
     * @param value The name of the channel to receive pipeline events notifications.
     */
    @JvmName("pvnclwbccgojjexj")
    public suspend fun pipelineChannel(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pipelineChannel = mapped
    }

    /**
     * @param value Enable notifications for pipeline events.
     */
    @JvmName("thusmuxrjokhqghv")
    public suspend fun pipelineEvents(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pipelineEvents = mapped
    }

    /**
     * @param value ID of the project you want to activate integration on.
     */
    @JvmName("ebpxggjdvlfirxxi")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.project = mapped
    }

    /**
     * @param value The name of the channel to receive push events notifications.
     */
    @JvmName("hjcgkaaqdmklnrkk")
    public suspend fun pushChannel(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pushChannel = mapped
    }

    /**
     * @param value Enable notifications for push events.
     */
    @JvmName("deggfgkcrkslevfp")
    public suspend fun pushEvents(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pushEvents = mapped
    }

    /**
     * @param value The name of the channel to receive tag push events notifications.
     */
    @JvmName("mjieodsvuvfsueft")
    public suspend fun tagPushChannel(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tagPushChannel = mapped
    }

    /**
     * @param value Enable notifications for tag push events.
     */
    @JvmName("oohhhlmljrerlhqo")
    public suspend fun tagPushEvents(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tagPushEvents = mapped
    }

    /**
     * @param value Username to use.
     */
    @JvmName("wmgtmoqhditacavf")
    public suspend fun username(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.username = mapped
    }

    /**
     * @param value Webhook URL (Example, https://hooks.slack.com/services/...). This value cannot be imported.
     */
    @JvmName("bwfhxjuekbcsqath")
    public suspend fun webhook(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.webhook = mapped
    }

    /**
     * @param value The name of the channel to receive wiki page events notifications.
     */
    @JvmName("kgpaorxujwsiudoc")
    public suspend fun wikiPageChannel(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.wikiPageChannel = mapped
    }

    /**
     * @param value Enable notifications for wiki page events.
     */
    @JvmName("ywqdikhqxjqxnimw")
    public suspend fun wikiPageEvents(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.wikiPageEvents = mapped
    }

    internal fun build(): IntegrationSlackArgs = IntegrationSlackArgs(
        branchesToBeNotified = branchesToBeNotified,
        confidentialIssueChannel = confidentialIssueChannel,
        confidentialIssuesEvents = confidentialIssuesEvents,
        confidentialNoteChannel = confidentialNoteChannel,
        confidentialNoteEvents = confidentialNoteEvents,
        issueChannel = issueChannel,
        issuesEvents = issuesEvents,
        mergeRequestChannel = mergeRequestChannel,
        mergeRequestsEvents = mergeRequestsEvents,
        noteChannel = noteChannel,
        noteEvents = noteEvents,
        notifyOnlyBrokenPipelines = notifyOnlyBrokenPipelines,
        notifyOnlyDefaultBranch = notifyOnlyDefaultBranch,
        pipelineChannel = pipelineChannel,
        pipelineEvents = pipelineEvents,
        project = project,
        pushChannel = pushChannel,
        pushEvents = pushEvents,
        tagPushChannel = tagPushChannel,
        tagPushEvents = tagPushEvents,
        username = username,
        webhook = webhook,
        wikiPageChannel = wikiPageChannel,
        wikiPageEvents = wikiPageEvents,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy