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

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

package com.pulumi.gcp.monitoring.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.monitoring.inputs.AlertPolicyDocumentationArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property content The text of the documentation, interpreted according to mimeType.
 * The content may not exceed 8,192 Unicode characters and may not
 * exceed more than 10,240 bytes when encoded in UTF-8 format,
 * whichever is smaller.
 * @property links Links to content such as playbooks, repositories, and other resources. This field can contain up to 3 entries.
 * Structure is documented below.
 * @property mimeType The format of the content field. Presently, only the value
 * "text/markdown" is supported.
 * @property subject The subject line of the notification. The subject line may not
 * exceed 10,240 bytes. In notifications generated by this policy the contents
 * of the subject line after variable expansion will be truncated to 255 bytes
 * or shorter at the latest UTF-8 character boundary.
 */
public data class AlertPolicyDocumentationArgs(
    public val content: Output? = null,
    public val links: Output>? = null,
    public val mimeType: Output? = null,
    public val subject: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.monitoring.inputs.AlertPolicyDocumentationArgs =
        com.pulumi.gcp.monitoring.inputs.AlertPolicyDocumentationArgs.builder()
            .content(content?.applyValue({ args0 -> args0 }))
            .links(links?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .mimeType(mimeType?.applyValue({ args0 -> args0 }))
            .subject(subject?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AlertPolicyDocumentationArgs].
 */
@PulumiTagMarker
public class AlertPolicyDocumentationArgsBuilder internal constructor() {
    private var content: Output? = null

    private var links: Output>? = null

    private var mimeType: Output? = null

    private var subject: Output? = null

    /**
     * @param value The text of the documentation, interpreted according to mimeType.
     * The content may not exceed 8,192 Unicode characters and may not
     * exceed more than 10,240 bytes when encoded in UTF-8 format,
     * whichever is smaller.
     */
    @JvmName("ktpjtpjifgfhalje")
    public suspend fun content(`value`: Output) {
        this.content = value
    }

    /**
     * @param value Links to content such as playbooks, repositories, and other resources. This field can contain up to 3 entries.
     * Structure is documented below.
     */
    @JvmName("bejbtibclbeehpeo")
    public suspend fun links(`value`: Output>) {
        this.links = value
    }

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

    /**
     * @param values Links to content such as playbooks, repositories, and other resources. This field can contain up to 3 entries.
     * Structure is documented below.
     */
    @JvmName("dlcwdgfhpvlnltyf")
    public suspend fun links(values: List>) {
        this.links = Output.all(values)
    }

    /**
     * @param value The format of the content field. Presently, only the value
     * "text/markdown" is supported.
     */
    @JvmName("efyfcnnvcbteicwi")
    public suspend fun mimeType(`value`: Output) {
        this.mimeType = value
    }

    /**
     * @param value The subject line of the notification. The subject line may not
     * exceed 10,240 bytes. In notifications generated by this policy the contents
     * of the subject line after variable expansion will be truncated to 255 bytes
     * or shorter at the latest UTF-8 character boundary.
     */
    @JvmName("wnjeiedkejvopivj")
    public suspend fun subject(`value`: Output) {
        this.subject = value
    }

    /**
     * @param value The text of the documentation, interpreted according to mimeType.
     * The content may not exceed 8,192 Unicode characters and may not
     * exceed more than 10,240 bytes when encoded in UTF-8 format,
     * whichever is smaller.
     */
    @JvmName("wyiyifkhahdhbugo")
    public suspend fun content(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.content = mapped
    }

    /**
     * @param value Links to content such as playbooks, repositories, and other resources. This field can contain up to 3 entries.
     * Structure is documented below.
     */
    @JvmName("gslaidvoiltatowp")
    public suspend fun links(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.links = mapped
    }

    /**
     * @param argument Links to content such as playbooks, repositories, and other resources. This field can contain up to 3 entries.
     * Structure is documented below.
     */
    @JvmName("pedcqfdemevhdokh")
    public suspend fun links(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AlertPolicyDocumentationLinkArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.links = mapped
    }

    /**
     * @param argument Links to content such as playbooks, repositories, and other resources. This field can contain up to 3 entries.
     * Structure is documented below.
     */
    @JvmName("qyfstyjlkrmcrisd")
    public suspend fun links(vararg argument: suspend AlertPolicyDocumentationLinkArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AlertPolicyDocumentationLinkArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.links = mapped
    }

    /**
     * @param argument Links to content such as playbooks, repositories, and other resources. This field can contain up to 3 entries.
     * Structure is documented below.
     */
    @JvmName("fcwsfntsokxkscaq")
    public suspend fun links(argument: suspend AlertPolicyDocumentationLinkArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AlertPolicyDocumentationLinkArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.links = mapped
    }

    /**
     * @param values Links to content such as playbooks, repositories, and other resources. This field can contain up to 3 entries.
     * Structure is documented below.
     */
    @JvmName("ddfrhnwbdwbobati")
    public suspend fun links(vararg values: AlertPolicyDocumentationLinkArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.links = mapped
    }

    /**
     * @param value The format of the content field. Presently, only the value
     * "text/markdown" is supported.
     */
    @JvmName("vpowfwvmlmfwxwqq")
    public suspend fun mimeType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mimeType = mapped
    }

    /**
     * @param value The subject line of the notification. The subject line may not
     * exceed 10,240 bytes. In notifications generated by this policy the contents
     * of the subject line after variable expansion will be truncated to 255 bytes
     * or shorter at the latest UTF-8 character boundary.
     */
    @JvmName("ujfxtnqruhqsmoqa")
    public suspend fun subject(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subject = mapped
    }

    internal fun build(): AlertPolicyDocumentationArgs = AlertPolicyDocumentationArgs(
        content = content,
        links = links,
        mimeType = mimeType,
        subject = subject,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy