![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.newrelic.kotlin.inputs.MonitorPlanArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.newrelic.kotlin.inputs
import com.pulumi.azure.newrelic.inputs.MonitorPlanArgs.builder
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
/**
*
* @property billingCycle Specifies the billing cycles. Possible values are `MONTHLY`, `WEEKLY` and `YEARLY`. Defaults to `MONTHLY`. Changing this forces a new Azure Native New Relic Monitor to be created.
* @property effectiveDate Specifies the date when plan was applied. Changing this forces a new Azure Native New Relic Monitor to be created.
* @property planId Specifies the plan id published by NewRelic. The only possible value is `newrelic-pay-as-you-go-free-live`. Defaults to `newrelic-pay-as-you-go-free-live`. Changing this forces a new Azure Native New Relic Monitor to be created.
* @property usageType Specifies the usage type. Possible values are `COMMITTED` and `PAYG`. Defaults to `PAYG`. Changing this forces a new Azure Native New Relic Monitor to be created.
*/
public data class MonitorPlanArgs(
public val billingCycle: Output? = null,
public val effectiveDate: Output,
public val planId: Output? = null,
public val usageType: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.newrelic.inputs.MonitorPlanArgs =
com.pulumi.azure.newrelic.inputs.MonitorPlanArgs.builder()
.billingCycle(billingCycle?.applyValue({ args0 -> args0 }))
.effectiveDate(effectiveDate.applyValue({ args0 -> args0 }))
.planId(planId?.applyValue({ args0 -> args0 }))
.usageType(usageType?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [MonitorPlanArgs].
*/
@PulumiTagMarker
public class MonitorPlanArgsBuilder internal constructor() {
private var billingCycle: Output? = null
private var effectiveDate: Output? = null
private var planId: Output? = null
private var usageType: Output? = null
/**
* @param value Specifies the billing cycles. Possible values are `MONTHLY`, `WEEKLY` and `YEARLY`. Defaults to `MONTHLY`. Changing this forces a new Azure Native New Relic Monitor to be created.
*/
@JvmName("wthephirmjbkvhbv")
public suspend fun billingCycle(`value`: Output) {
this.billingCycle = value
}
/**
* @param value Specifies the date when plan was applied. Changing this forces a new Azure Native New Relic Monitor to be created.
*/
@JvmName("wuiekyfpygudubga")
public suspend fun effectiveDate(`value`: Output) {
this.effectiveDate = value
}
/**
* @param value Specifies the plan id published by NewRelic. The only possible value is `newrelic-pay-as-you-go-free-live`. Defaults to `newrelic-pay-as-you-go-free-live`. Changing this forces a new Azure Native New Relic Monitor to be created.
*/
@JvmName("mcuyanvxhlrlpvxx")
public suspend fun planId(`value`: Output) {
this.planId = value
}
/**
* @param value Specifies the usage type. Possible values are `COMMITTED` and `PAYG`. Defaults to `PAYG`. Changing this forces a new Azure Native New Relic Monitor to be created.
*/
@JvmName("qckrutdrgvoydedb")
public suspend fun usageType(`value`: Output) {
this.usageType = value
}
/**
* @param value Specifies the billing cycles. Possible values are `MONTHLY`, `WEEKLY` and `YEARLY`. Defaults to `MONTHLY`. Changing this forces a new Azure Native New Relic Monitor to be created.
*/
@JvmName("ksncjehfujyenbfh")
public suspend fun billingCycle(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.billingCycle = mapped
}
/**
* @param value Specifies the date when plan was applied. Changing this forces a new Azure Native New Relic Monitor to be created.
*/
@JvmName("kbnmfkmuohbhyuef")
public suspend fun effectiveDate(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.effectiveDate = mapped
}
/**
* @param value Specifies the plan id published by NewRelic. The only possible value is `newrelic-pay-as-you-go-free-live`. Defaults to `newrelic-pay-as-you-go-free-live`. Changing this forces a new Azure Native New Relic Monitor to be created.
*/
@JvmName("udcbojskjgpqwqfd")
public suspend fun planId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.planId = mapped
}
/**
* @param value Specifies the usage type. Possible values are `COMMITTED` and `PAYG`. Defaults to `PAYG`. Changing this forces a new Azure Native New Relic Monitor to be created.
*/
@JvmName("cuuvtnyiuupchwlg")
public suspend fun usageType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.usageType = mapped
}
internal fun build(): MonitorPlanArgs = MonitorPlanArgs(
billingCycle = billingCycle,
effectiveDate = effectiveDate ?: throw PulumiNullFieldException("effectiveDate"),
planId = planId,
usageType = usageType,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy