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

com.pulumi.azure.dashboard.kotlin.outputs.GrafanaSmtp.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.dashboard.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property enabled Whether to enable the smtp setting of the Grafana instance. Defaults to `false`.
 * @property fromAddress Address used when sending emails.
 * @property fromName Name used when sending emails. Defaults to `Azure Managed Grafana Notification`.
 * @property host SMTP server hostname with port, e.g. test.email.net:587
 * @property password Password of SMTP authentication.
 * @property startTlsPolicy Whether to use TLS when connecting to SMTP server. Possible values are `OpportunisticStartTLS`, `NoStartTLS`, `MandatoryStartTLS`.
 * @property user User of SMTP authentication.
 * @property verificationSkipEnabled Whether verify SSL for SMTP server. Defaults to `false`.
 */
public data class GrafanaSmtp(
    public val enabled: Boolean? = null,
    public val fromAddress: String,
    public val fromName: String? = null,
    public val host: String,
    public val password: String,
    public val startTlsPolicy: String,
    public val user: String,
    public val verificationSkipEnabled: Boolean? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.dashboard.outputs.GrafanaSmtp): GrafanaSmtp =
            GrafanaSmtp(
                enabled = javaType.enabled().map({ args0 -> args0 }).orElse(null),
                fromAddress = javaType.fromAddress(),
                fromName = javaType.fromName().map({ args0 -> args0 }).orElse(null),
                host = javaType.host(),
                password = javaType.password(),
                startTlsPolicy = javaType.startTlsPolicy(),
                user = javaType.user(),
                verificationSkipEnabled = javaType.verificationSkipEnabled().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy