
com.pulumi.azurenative.securityinsights.kotlin.inputs.MetadataSupportArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.securityinsights.kotlin.inputs
import com.pulumi.azurenative.securityinsights.inputs.MetadataSupportArgs.builder
import com.pulumi.azurenative.securityinsights.kotlin.enums.SupportTier
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Support information for the content item.
* @property email Email of support contact
* @property link Link for support help, like to support page to open a ticket etc.
* @property name Name of the support contact. Company or person.
* @property tier Type of support for content item
*/
public data class MetadataSupportArgs(
public val email: Output? = null,
public val link: Output? = null,
public val name: Output? = null,
public val tier: Output>,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.securityinsights.inputs.MetadataSupportArgs =
com.pulumi.azurenative.securityinsights.inputs.MetadataSupportArgs.builder()
.email(email?.applyValue({ args0 -> args0 }))
.link(link?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.tier(
tier.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [MetadataSupportArgs].
*/
@PulumiTagMarker
public class MetadataSupportArgsBuilder internal constructor() {
private var email: Output? = null
private var link: Output? = null
private var name: Output? = null
private var tier: Output>? = null
/**
* @param value Email of support contact
*/
@JvmName("laaitqjgbwesugdh")
public suspend fun email(`value`: Output) {
this.email = value
}
/**
* @param value Link for support help, like to support page to open a ticket etc.
*/
@JvmName("cktnspyecdeuwwru")
public suspend fun link(`value`: Output) {
this.link = value
}
/**
* @param value Name of the support contact. Company or person.
*/
@JvmName("rngqyyljbopwlvuy")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Type of support for content item
*/
@JvmName("uhvdexnnaqoxmcpy")
public suspend fun tier(`value`: Output>) {
this.tier = value
}
/**
* @param value Email of support contact
*/
@JvmName("lqaaxpcwaesiqmgv")
public suspend fun email(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.email = mapped
}
/**
* @param value Link for support help, like to support page to open a ticket etc.
*/
@JvmName("dlmjxcufctjfnxci")
public suspend fun link(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.link = mapped
}
/**
* @param value Name of the support contact. Company or person.
*/
@JvmName("sueirbpkpcoqqlhb")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Type of support for content item
*/
@JvmName("rhhktwpqdxqtasws")
public suspend fun tier(`value`: Either) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tier = mapped
}
/**
* @param value Type of support for content item
*/
@JvmName("afjctqojanspoknx")
public fun tier(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tier = mapped
}
/**
* @param value Type of support for content item
*/
@JvmName("bcgblvievnlxutxd")
public fun tier(`value`: SupportTier) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tier = mapped
}
internal fun build(): MetadataSupportArgs = MetadataSupportArgs(
email = email,
link = link,
name = name,
tier = tier ?: throw PulumiNullFieldException("tier"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy