com.pulumi.gcp.monitoring.kotlin.inputs.AlertPolicyDocumentationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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 kotlin.String
import kotlin.Suppress
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 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 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 }))
.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 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("xasuutvhbdbelmqn")
public suspend fun content(`value`: Output) {
this.content = value
}
/**
* @param value The format of the content field. Presently, only the value
* "text/markdown" is supported.
*/
@JvmName("nghtobugeljcpwod")
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("dpweetfsyqkudyuh")
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("grceeguhsoghfpef")
public suspend fun content(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.content = mapped
}
/**
* @param value The format of the content field. Presently, only the value
* "text/markdown" is supported.
*/
@JvmName("yedfopqtxntprfrc")
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("vpoaigtrkguggqbf")
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,
mimeType = mimeType,
subject = subject,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy