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

com.pulumi.gitlab.kotlin.ServiceSlackArgs.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.ServiceSlackArgs.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.ServiceSlack` resource allows to manage the lifecycle of a project integration with Slack.
 * > This resource is deprecated. use `gitlab.IntegrationSlack`instead!
 * **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.ServiceSlack("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.ServiceSlack("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.ServiceSlack("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.NewServiceSlack(ctx, "slack", &gitlab.ServiceSlackArgs{
 * 			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.ServiceSlack;
 * import com.pulumi.gitlab.ServiceSlackArgs;
 * 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 ServiceSlack("slack", ServiceSlackArgs.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:ServiceSlack
 *     properties:
 *       project: ${awesomeProject.id}
 *       webhook: https://webhook.com
 *       username: myuser
 *       pushEvents: true
 *       pushChannel: push_chan
 * ```
 * 
 * ## Import
 * You can import a gitlab_service_slack.slack state using the project ID, e.g.
 * ```sh
 * $ pulumi import gitlab:index/serviceSlack:ServiceSlack email 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 ServiceSlackArgs(
    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.ServiceSlackArgs =
        com.pulumi.gitlab.ServiceSlackArgs.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 [ServiceSlackArgs].
 */
@PulumiTagMarker
public class ServiceSlackArgsBuilder 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("hmmcxwbxmrgbiknb")
    public suspend fun branchesToBeNotified(`value`: Output) {
        this.branchesToBeNotified = value
    }

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

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

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

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

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

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

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

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

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

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

    /**
     * @param value Send notifications for broken pipelines.
     */
    @JvmName("gxgdgsefjosgotns")
    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("tyqnwwilgmkswgbu")
    public suspend fun notifyOnlyDefaultBranch(`value`: Output) {
        this.notifyOnlyDefaultBranch = value
    }

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

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

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

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

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

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

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

    /**
     * @param value Username to use.
     */
    @JvmName("tooqfehjeybajupr")
    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("rvwvyrulbjruapey")
    public suspend fun webhook(`value`: Output) {
        this.webhook = value
    }

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

    /**
     * @param value Enable notifications for wiki page events.
     */
    @JvmName("xfvflmhxiidncvfg")
    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("yduarswgefogkjec")
    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("usbnkjsexqtheukb")
    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("ftvydawgaepjwlqg")
    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("xgvkboibojdlomxj")
    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("msoqqrrhpnmlwygo")
    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("faiocboeeoemosxn")
    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("mbwwsuatpmqabwde")
    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("somcrwlplglgfqum")
    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("gkfkkhnyyydrobov")
    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("bffjgfucobcevlmk")
    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("xpsfboodesxkhuef")
    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("mmsmqqlduscoavto")
    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("lxoopfsgepqnkbqr")
    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("nyyphctbbmgqnwns")
    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("mimvkqbndkunlyes")
    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("uvfrjmanbhibuysr")
    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("rihapbclvmwwxfya")
    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("ccoxnmhonmkvqgxx")
    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("lqtsacbjonghyive")
    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("hvadudyytuwdhxrw")
    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("glmdsalhribbepgc")
    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("nncfxjetkdwycbet")
    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("nvkjrfymvwmutljy")
    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("hgpixpskrppxtjss")
    public suspend fun wikiPageEvents(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.wikiPageEvents = mapped
    }

    internal fun build(): ServiceSlackArgs = ServiceSlackArgs(
        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