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

com.pulumi.gcp.monitoring.kotlin.outputs.AlertPolicyDocumentation.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.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @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 AlertPolicyDocumentation(
    public val content: String? = null,
    public val links: List? = null,
    public val mimeType: String? = null,
    public val subject: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.monitoring.outputs.AlertPolicyDocumentation): AlertPolicyDocumentation = AlertPolicyDocumentation(
            content = javaType.content().map({ args0 -> args0 }).orElse(null),
            links = javaType.links().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.monitoring.kotlin.outputs.AlertPolicyDocumentationLink.Companion.toKotlin(args0)
                })
            }),
            mimeType = javaType.mimeType().map({ args0 -> args0 }).orElse(null),
            subject = javaType.subject().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy