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

com.pulumi.azurenative.machinelearningservices.kotlin.inputs.AzureDataLakeGen1DatastoreArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.machinelearningservices.kotlin.inputs

import com.pulumi.azurenative.machinelearningservices.inputs.AzureDataLakeGen1DatastoreArgs.builder
import com.pulumi.azurenative.machinelearningservices.kotlin.enums.ServiceDataAccessAuthIdentity
import com.pulumi.core.Either
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.Any
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Azure Data Lake Gen1 datastore configuration.
 * @property credentials [Required] Account credentials.
 * @property datastoreType Enum to determine the datastore contents type.
 * Expected value is 'AzureDataLakeGen1'.
 * @property description The asset description text.
 * @property properties The asset property dictionary.
 * @property serviceDataAccessAuthIdentity Indicates which identity to use to authenticate service data access to customer's storage.
 * @property storeName [Required] Azure Data Lake store name.
 * @property tags Tag dictionary. Tags can be added, removed, and updated.
 */
public data class AzureDataLakeGen1DatastoreArgs(
    public val credentials: Output,
    public val datastoreType: Output,
    public val description: Output? = null,
    public val properties: Output>? = null,
    public val serviceDataAccessAuthIdentity: Output>? =
        null,
    public val storeName: Output,
    public val tags: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.machinelearningservices.inputs.AzureDataLakeGen1DatastoreArgs =
        com.pulumi.azurenative.machinelearningservices.inputs.AzureDataLakeGen1DatastoreArgs.builder()
            .credentials(credentials.applyValue({ args0 -> args0 }))
            .datastoreType(datastoreType.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .properties(
                properties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .serviceDataAccessAuthIdentity(
                serviceDataAccessAuthIdentity?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .storeName(storeName.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [AzureDataLakeGen1DatastoreArgs].
 */
@PulumiTagMarker
public class AzureDataLakeGen1DatastoreArgsBuilder internal constructor() {
    private var credentials: Output? = null

    private var datastoreType: Output? = null

    private var description: Output? = null

    private var properties: Output>? = null

    private var serviceDataAccessAuthIdentity: Output>? =
        null

    private var storeName: Output? = null

    private var tags: Output>? = null

    /**
     * @param value [Required] Account credentials.
     */
    @JvmName("yuprjaqvkawfwyln")
    public suspend fun credentials(`value`: Output) {
        this.credentials = value
    }

    /**
     * @param value Enum to determine the datastore contents type.
     * Expected value is 'AzureDataLakeGen1'.
     */
    @JvmName("ihlicawjapgwwscj")
    public suspend fun datastoreType(`value`: Output) {
        this.datastoreType = value
    }

    /**
     * @param value The asset description text.
     */
    @JvmName("dslrycoydsquidpt")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The asset property dictionary.
     */
    @JvmName("afpwallpieywlerp")
    public suspend fun properties(`value`: Output>) {
        this.properties = value
    }

    /**
     * @param value Indicates which identity to use to authenticate service data access to customer's storage.
     */
    @JvmName("densbysocwhpwpkw")
    public suspend fun serviceDataAccessAuthIdentity(`value`: Output>) {
        this.serviceDataAccessAuthIdentity = value
    }

    /**
     * @param value [Required] Azure Data Lake store name.
     */
    @JvmName("bpmlwxclmuxenfhj")
    public suspend fun storeName(`value`: Output) {
        this.storeName = value
    }

    /**
     * @param value Tag dictionary. Tags can be added, removed, and updated.
     */
    @JvmName("lqkblclvohcfoskw")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value [Required] Account credentials.
     */
    @JvmName("kwwmqgrakpdqjyvh")
    public suspend fun credentials(`value`: Any) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.credentials = mapped
    }

    /**
     * @param value Enum to determine the datastore contents type.
     * Expected value is 'AzureDataLakeGen1'.
     */
    @JvmName("xwwojwklwnvaelhm")
    public suspend fun datastoreType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.datastoreType = mapped
    }

    /**
     * @param value The asset description text.
     */
    @JvmName("kutrfetrtlvtytlk")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The asset property dictionary.
     */
    @JvmName("mdurmiymeepfyxip")
    public suspend fun properties(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param values The asset property dictionary.
     */
    @JvmName("ixsgyvryhydnadig")
    public fun properties(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param value Indicates which identity to use to authenticate service data access to customer's storage.
     */
    @JvmName("bctaoxnmidxbhsom")
    public suspend fun serviceDataAccessAuthIdentity(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceDataAccessAuthIdentity = mapped
    }

    /**
     * @param value Indicates which identity to use to authenticate service data access to customer's storage.
     */
    @JvmName("sixvqqssaykhqmkw")
    public fun serviceDataAccessAuthIdentity(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serviceDataAccessAuthIdentity = mapped
    }

    /**
     * @param value Indicates which identity to use to authenticate service data access to customer's storage.
     */
    @JvmName("enwfuhabiqkqditd")
    public fun serviceDataAccessAuthIdentity(`value`: ServiceDataAccessAuthIdentity) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serviceDataAccessAuthIdentity = mapped
    }

    /**
     * @param value [Required] Azure Data Lake store name.
     */
    @JvmName("tycfocgaulnnykpf")
    public suspend fun storeName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.storeName = mapped
    }

    /**
     * @param value Tag dictionary. Tags can be added, removed, and updated.
     */
    @JvmName("gsukikrfduatffog")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Tag dictionary. Tags can be added, removed, and updated.
     */
    @JvmName("dpuujxixxnqxtaik")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): AzureDataLakeGen1DatastoreArgs = AzureDataLakeGen1DatastoreArgs(
        credentials = credentials ?: throw PulumiNullFieldException("credentials"),
        datastoreType = datastoreType ?: throw PulumiNullFieldException("datastoreType"),
        description = description,
        properties = properties,
        serviceDataAccessAuthIdentity = serviceDataAccessAuthIdentity,
        storeName = storeName ?: throw PulumiNullFieldException("storeName"),
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy