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

com.pulumi.aws.finspace.kotlin.inputs.KxDataviewSegmentConfigurationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.aws.finspace.kotlin.inputs

import com.pulumi.aws.finspace.inputs.KxDataviewSegmentConfigurationArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property dbPaths The database path of the data that you want to place on each selected volume. Each segment must have a unique database path for each volume.
 * @property onDemand Enables on-demand caching on the selected database path when a particular file or a column of the database is accessed. When on demand caching is **True**, dataviews perform minimal loading of files on the filesystem as needed. When it is set to **False**, everything is cached. The default value is **False**.
 * @property volumeName The name of the volume that you want to attach to a dataview. This volume must be in the same availability zone as the dataview that you are attaching to.
 */
public data class KxDataviewSegmentConfigurationArgs(
    public val dbPaths: Output>,
    public val onDemand: Output? = null,
    public val volumeName: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.finspace.inputs.KxDataviewSegmentConfigurationArgs =
        com.pulumi.aws.finspace.inputs.KxDataviewSegmentConfigurationArgs.builder()
            .dbPaths(dbPaths.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .onDemand(onDemand?.applyValue({ args0 -> args0 }))
            .volumeName(volumeName.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [KxDataviewSegmentConfigurationArgs].
 */
@PulumiTagMarker
public class KxDataviewSegmentConfigurationArgsBuilder internal constructor() {
    private var dbPaths: Output>? = null

    private var onDemand: Output? = null

    private var volumeName: Output? = null

    /**
     * @param value The database path of the data that you want to place on each selected volume. Each segment must have a unique database path for each volume.
     */
    @JvmName("tvlpnktmoeodrcrs")
    public suspend fun dbPaths(`value`: Output>) {
        this.dbPaths = value
    }

    @JvmName("deeduwksynedipou")
    public suspend fun dbPaths(vararg values: Output) {
        this.dbPaths = Output.all(values.asList())
    }

    /**
     * @param values The database path of the data that you want to place on each selected volume. Each segment must have a unique database path for each volume.
     */
    @JvmName("rvtphkmoywsoqrhc")
    public suspend fun dbPaths(values: List>) {
        this.dbPaths = Output.all(values)
    }

    /**
     * @param value Enables on-demand caching on the selected database path when a particular file or a column of the database is accessed. When on demand caching is **True**, dataviews perform minimal loading of files on the filesystem as needed. When it is set to **False**, everything is cached. The default value is **False**.
     */
    @JvmName("rceemeiuebvfjjoi")
    public suspend fun onDemand(`value`: Output) {
        this.onDemand = value
    }

    /**
     * @param value The name of the volume that you want to attach to a dataview. This volume must be in the same availability zone as the dataview that you are attaching to.
     */
    @JvmName("mqkrkmtbmwqvjrnw")
    public suspend fun volumeName(`value`: Output) {
        this.volumeName = value
    }

    /**
     * @param value The database path of the data that you want to place on each selected volume. Each segment must have a unique database path for each volume.
     */
    @JvmName("lctemnooawhsodrd")
    public suspend fun dbPaths(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dbPaths = mapped
    }

    /**
     * @param values The database path of the data that you want to place on each selected volume. Each segment must have a unique database path for each volume.
     */
    @JvmName("uptvmcrgxsmnkpvp")
    public suspend fun dbPaths(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dbPaths = mapped
    }

    /**
     * @param value Enables on-demand caching on the selected database path when a particular file or a column of the database is accessed. When on demand caching is **True**, dataviews perform minimal loading of files on the filesystem as needed. When it is set to **False**, everything is cached. The default value is **False**.
     */
    @JvmName("sxcwvienxqwtllaa")
    public suspend fun onDemand(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.onDemand = mapped
    }

    /**
     * @param value The name of the volume that you want to attach to a dataview. This volume must be in the same availability zone as the dataview that you are attaching to.
     */
    @JvmName("unbledwodmoepdkh")
    public suspend fun volumeName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.volumeName = mapped
    }

    internal fun build(): KxDataviewSegmentConfigurationArgs = KxDataviewSegmentConfigurationArgs(
        dbPaths = dbPaths ?: throw PulumiNullFieldException("dbPaths"),
        onDemand = onDemand,
        volumeName = volumeName ?: throw PulumiNullFieldException("volumeName"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy