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

com.pulumi.azurenative.servicefabricmesh.kotlin.inputs.ReliableCollectionsRefArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.servicefabricmesh.kotlin.inputs

import com.pulumi.azurenative.servicefabricmesh.inputs.ReliableCollectionsRefArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Specifying this parameter adds support for reliable collections
 * @property doNotPersistState False (the default) if ReliableCollections state is persisted to disk as usual. True if you do not want to persist state, in which case replication is still enabled and you can use ReliableCollections as distributed cache.
 * @property name Name of ReliableCollection resource. Right now it's not used and you can use any string.
 */
public data class ReliableCollectionsRefArgs(
    public val doNotPersistState: Output? = null,
    public val name: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.servicefabricmesh.inputs.ReliableCollectionsRefArgs = com.pulumi.azurenative.servicefabricmesh.inputs.ReliableCollectionsRefArgs.builder()
        .doNotPersistState(doNotPersistState?.applyValue({ args0 -> args0 }))
        .name(name.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ReliableCollectionsRefArgs].
 */
@PulumiTagMarker
public class ReliableCollectionsRefArgsBuilder internal constructor() {
    private var doNotPersistState: Output? = null

    private var name: Output? = null

    /**
     * @param value False (the default) if ReliableCollections state is persisted to disk as usual. True if you do not want to persist state, in which case replication is still enabled and you can use ReliableCollections as distributed cache.
     */
    @JvmName("hqkgvmxijobdsdmp")
    public suspend fun doNotPersistState(`value`: Output) {
        this.doNotPersistState = value
    }

    /**
     * @param value Name of ReliableCollection resource. Right now it's not used and you can use any string.
     */
    @JvmName("wasuhtqjmscrrkhs")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value False (the default) if ReliableCollections state is persisted to disk as usual. True if you do not want to persist state, in which case replication is still enabled and you can use ReliableCollections as distributed cache.
     */
    @JvmName("plheplgfpyqvgykx")
    public suspend fun doNotPersistState(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.doNotPersistState = mapped
    }

    /**
     * @param value Name of ReliableCollection resource. Right now it's not used and you can use any string.
     */
    @JvmName("okdgrsbfquqdvjkt")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): ReliableCollectionsRefArgs = ReliableCollectionsRefArgs(
        doNotPersistState = doNotPersistState,
        name = name ?: throw PulumiNullFieldException("name"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy