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

com.pulumi.azurenative.apimanagement.kotlin.inputs.BackendPoolItemArgs.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.apimanagement.kotlin.inputs

import com.pulumi.azurenative.apimanagement.inputs.BackendPoolItemArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Backend pool service information
 * @property id The unique ARM id of the backend entity. The ARM id should refer to an already existing backend entity.
 * @property priority The priority of the backend entity in the backend pool. Must be between 0 and 100. It can be also null if the value not specified.
 * @property weight The weight of the backend entity in the backend pool. Must be between 0 and 100. It can be also null if the value not specified.
 */
public data class BackendPoolItemArgs(
    public val id: Output,
    public val priority: Output? = null,
    public val weight: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.apimanagement.inputs.BackendPoolItemArgs =
        com.pulumi.azurenative.apimanagement.inputs.BackendPoolItemArgs.builder()
            .id(id.applyValue({ args0 -> args0 }))
            .priority(priority?.applyValue({ args0 -> args0 }))
            .weight(weight?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BackendPoolItemArgs].
 */
@PulumiTagMarker
public class BackendPoolItemArgsBuilder internal constructor() {
    private var id: Output? = null

    private var priority: Output? = null

    private var weight: Output? = null

    /**
     * @param value The unique ARM id of the backend entity. The ARM id should refer to an already existing backend entity.
     */
    @JvmName("usgwwdbvepbvqmhj")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value The priority of the backend entity in the backend pool. Must be between 0 and 100. It can be also null if the value not specified.
     */
    @JvmName("idkgvyoevewqwvac")
    public suspend fun priority(`value`: Output) {
        this.priority = value
    }

    /**
     * @param value The weight of the backend entity in the backend pool. Must be between 0 and 100. It can be also null if the value not specified.
     */
    @JvmName("ehommqrbqsbhepif")
    public suspend fun weight(`value`: Output) {
        this.weight = value
    }

    /**
     * @param value The unique ARM id of the backend entity. The ARM id should refer to an already existing backend entity.
     */
    @JvmName("hqvjurxqqigwafru")
    public suspend fun id(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value The priority of the backend entity in the backend pool. Must be between 0 and 100. It can be also null if the value not specified.
     */
    @JvmName("owbabgxmylxqudie")
    public suspend fun priority(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.priority = mapped
    }

    /**
     * @param value The weight of the backend entity in the backend pool. Must be between 0 and 100. It can be also null if the value not specified.
     */
    @JvmName("uqnuyahadjynuemm")
    public suspend fun weight(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.weight = mapped
    }

    internal fun build(): BackendPoolItemArgs = BackendPoolItemArgs(
        id = id ?: throw PulumiNullFieldException("id"),
        priority = priority,
        weight = weight,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy