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

com.pulumi.azurenative.scheduler.kotlin.inputs.RetryPolicyArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.scheduler.kotlin.inputs

import com.pulumi.azurenative.scheduler.inputs.RetryPolicyArgs.builder
import com.pulumi.azurenative.scheduler.kotlin.enums.RetryType
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property retryCount Gets or sets the number of times a retry should be attempted.
 * @property retryInterval Gets or sets the retry interval between retries, specify duration in ISO 8601 format.
 * @property retryType Gets or sets the retry strategy to be used.
 */
public data class RetryPolicyArgs(
    public val retryCount: Output? = null,
    public val retryInterval: Output? = null,
    public val retryType: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.scheduler.inputs.RetryPolicyArgs =
        com.pulumi.azurenative.scheduler.inputs.RetryPolicyArgs.builder()
            .retryCount(retryCount?.applyValue({ args0 -> args0 }))
            .retryInterval(retryInterval?.applyValue({ args0 -> args0 }))
            .retryType(retryType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [RetryPolicyArgs].
 */
@PulumiTagMarker
public class RetryPolicyArgsBuilder internal constructor() {
    private var retryCount: Output? = null

    private var retryInterval: Output? = null

    private var retryType: Output? = null

    /**
     * @param value Gets or sets the number of times a retry should be attempted.
     */
    @JvmName("ybmesucerwyjsibu")
    public suspend fun retryCount(`value`: Output) {
        this.retryCount = value
    }

    /**
     * @param value Gets or sets the retry interval between retries, specify duration in ISO 8601 format.
     */
    @JvmName("bchhqxqhrvrunlch")
    public suspend fun retryInterval(`value`: Output) {
        this.retryInterval = value
    }

    /**
     * @param value Gets or sets the retry strategy to be used.
     */
    @JvmName("ssofdhsmstjbfsix")
    public suspend fun retryType(`value`: Output) {
        this.retryType = value
    }

    /**
     * @param value Gets or sets the number of times a retry should be attempted.
     */
    @JvmName("htvaeehvmnqngrex")
    public suspend fun retryCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.retryCount = mapped
    }

    /**
     * @param value Gets or sets the retry interval between retries, specify duration in ISO 8601 format.
     */
    @JvmName("pwvwttodaffmjvtk")
    public suspend fun retryInterval(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.retryInterval = mapped
    }

    /**
     * @param value Gets or sets the retry strategy to be used.
     */
    @JvmName("xlhojgvgxmbmsjnk")
    public suspend fun retryType(`value`: RetryType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.retryType = mapped
    }

    internal fun build(): RetryPolicyArgs = RetryPolicyArgs(
        retryCount = retryCount,
        retryInterval = retryInterval,
        retryType = retryType,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy