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

com.pulumi.awsnative.applicationsignals.kotlin.inputs.ServiceLevelObjectiveIntervalArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.applicationsignals.kotlin.inputs

import com.pulumi.awsnative.applicationsignals.inputs.ServiceLevelObjectiveIntervalArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * The time period used to evaluate the SLO. It can be either a calendar interval or rolling interval.
 * If you omit this parameter, a rolling interval of 7 days is used.
 * @property calendarInterval If the interval is a calendar interval, this structure contains the interval specifications.
 * @property rollingInterval If the interval is a rolling interval, this structure contains the interval specifications.
 */
public data class ServiceLevelObjectiveIntervalArgs(
    public val calendarInterval: Output? = null,
    public val rollingInterval: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.applicationsignals.inputs.ServiceLevelObjectiveIntervalArgs =
        com.pulumi.awsnative.applicationsignals.inputs.ServiceLevelObjectiveIntervalArgs.builder()
            .calendarInterval(calendarInterval?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .rollingInterval(
                rollingInterval?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [ServiceLevelObjectiveIntervalArgs].
 */
@PulumiTagMarker
public class ServiceLevelObjectiveIntervalArgsBuilder internal constructor() {
    private var calendarInterval: Output? = null

    private var rollingInterval: Output? = null

    /**
     * @param value If the interval is a calendar interval, this structure contains the interval specifications.
     */
    @JvmName("icoiaopswvwqobfe")
    public suspend fun calendarInterval(`value`: Output) {
        this.calendarInterval = value
    }

    /**
     * @param value If the interval is a rolling interval, this structure contains the interval specifications.
     */
    @JvmName("rokhlgjbvutpwnba")
    public suspend fun rollingInterval(`value`: Output) {
        this.rollingInterval = value
    }

    /**
     * @param value If the interval is a calendar interval, this structure contains the interval specifications.
     */
    @JvmName("agnplqdpcfiovwnr")
    public suspend fun calendarInterval(`value`: ServiceLevelObjectiveCalendarIntervalArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.calendarInterval = mapped
    }

    /**
     * @param argument If the interval is a calendar interval, this structure contains the interval specifications.
     */
    @JvmName("wmjuoyymydodhloi")
    public suspend fun calendarInterval(argument: suspend ServiceLevelObjectiveCalendarIntervalArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceLevelObjectiveCalendarIntervalArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.calendarInterval = mapped
    }

    /**
     * @param value If the interval is a rolling interval, this structure contains the interval specifications.
     */
    @JvmName("wtdagrdknbhaxjal")
    public suspend fun rollingInterval(`value`: ServiceLevelObjectiveRollingIntervalArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rollingInterval = mapped
    }

    /**
     * @param argument If the interval is a rolling interval, this structure contains the interval specifications.
     */
    @JvmName("fxtfqirefmvqkixi")
    public suspend fun rollingInterval(argument: suspend ServiceLevelObjectiveRollingIntervalArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceLevelObjectiveRollingIntervalArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.rollingInterval = mapped
    }

    internal fun build(): ServiceLevelObjectiveIntervalArgs = ServiceLevelObjectiveIntervalArgs(
        calendarInterval = calendarInterval,
        rollingInterval = rollingInterval,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy