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

com.pulumi.azure.containerservice.kotlin.inputs.RegistryGeoreplicationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.containerservice.kotlin.inputs

import com.pulumi.azure.containerservice.inputs.RegistryGeoreplicationArgs.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.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property location A location where the container registry should be geo-replicated.
 * @property regionalEndpointEnabled Whether regional endpoint is enabled for this Container Registry?
 * @property tags A mapping of tags to assign to this replication location.
 * @property zoneRedundancyEnabled Whether zone redundancy is enabled for this replication location? Defaults to `false`.
 * > **NOTE:** Changing the `zone_redundancy_enabled` forces the a underlying replication to be created.
 */
public data class RegistryGeoreplicationArgs(
    public val location: Output,
    public val regionalEndpointEnabled: Output? = null,
    public val tags: Output>? = null,
    public val zoneRedundancyEnabled: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.containerservice.inputs.RegistryGeoreplicationArgs =
        com.pulumi.azure.containerservice.inputs.RegistryGeoreplicationArgs.builder()
            .location(location.applyValue({ args0 -> args0 }))
            .regionalEndpointEnabled(regionalEndpointEnabled?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .zoneRedundancyEnabled(zoneRedundancyEnabled?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RegistryGeoreplicationArgs].
 */
@PulumiTagMarker
public class RegistryGeoreplicationArgsBuilder internal constructor() {
    private var location: Output? = null

    private var regionalEndpointEnabled: Output? = null

    private var tags: Output>? = null

    private var zoneRedundancyEnabled: Output? = null

    /**
     * @param value A location where the container registry should be geo-replicated.
     */
    @JvmName("uijcdqntphoftyil")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value Whether regional endpoint is enabled for this Container Registry?
     */
    @JvmName("pthjpwkiryjfkhqp")
    public suspend fun regionalEndpointEnabled(`value`: Output) {
        this.regionalEndpointEnabled = value
    }

    /**
     * @param value A mapping of tags to assign to this replication location.
     */
    @JvmName("giycpnjgiyviuosh")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Whether zone redundancy is enabled for this replication location? Defaults to `false`.
     * > **NOTE:** Changing the `zone_redundancy_enabled` forces the a underlying replication to be created.
     */
    @JvmName("raatlsnfmbmgphns")
    public suspend fun zoneRedundancyEnabled(`value`: Output) {
        this.zoneRedundancyEnabled = value
    }

    /**
     * @param value A location where the container registry should be geo-replicated.
     */
    @JvmName("fsbyvwldoxwuvshj")
    public suspend fun location(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value Whether regional endpoint is enabled for this Container Registry?
     */
    @JvmName("ywykqbsiamownilw")
    public suspend fun regionalEndpointEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.regionalEndpointEnabled = mapped
    }

    /**
     * @param value A mapping of tags to assign to this replication location.
     */
    @JvmName("rthgrxaaxgbwqwdg")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A mapping of tags to assign to this replication location.
     */
    @JvmName("pbrrafxkjmwrepqo")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Whether zone redundancy is enabled for this replication location? Defaults to `false`.
     * > **NOTE:** Changing the `zone_redundancy_enabled` forces the a underlying replication to be created.
     */
    @JvmName("grhvlohiwdfpaslq")
    public suspend fun zoneRedundancyEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.zoneRedundancyEnabled = mapped
    }

    internal fun build(): RegistryGeoreplicationArgs = RegistryGeoreplicationArgs(
        location = location ?: throw PulumiNullFieldException("location"),
        regionalEndpointEnabled = regionalEndpointEnabled,
        tags = tags,
        zoneRedundancyEnabled = zoneRedundancyEnabled,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy