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

com.pulumi.azurenative.timeseriesinsights.kotlin.ReferenceDataSetArgs.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.timeseriesinsights.kotlin

import com.pulumi.azurenative.timeseriesinsights.ReferenceDataSetArgs.builder
import com.pulumi.azurenative.timeseriesinsights.kotlin.enums.DataStringComparisonBehavior
import com.pulumi.azurenative.timeseriesinsights.kotlin.inputs.ReferenceDataSetKeyPropertyArgs
import com.pulumi.azurenative.timeseriesinsights.kotlin.inputs.ReferenceDataSetKeyPropertyArgsBuilder
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.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * A reference data set provides metadata about the events in an environment. Metadata in the reference data set will be joined with events as they are read from event sources. The metadata that makes up the reference data set is uploaded or modified through the Time Series Insights data plane APIs.
 * Azure REST API version: 2020-05-15. Prior API version in Azure Native 1.x: 2020-05-15.
 * Other available API versions: 2017-11-15, 2021-06-30-preview.
 * ## Example Usage
 * ### ReferenceDataSetsCreate
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var referenceDataSet = new AzureNative.TimeSeriesInsights.ReferenceDataSet("referenceDataSet", new()
 *     {
 *         EnvironmentName = "env1",
 *         KeyProperties = new[]
 *         {
 *             new AzureNative.TimeSeriesInsights.Inputs.ReferenceDataSetKeyPropertyArgs
 *             {
 *                 Name = "DeviceId1",
 *                 Type = AzureNative.TimeSeriesInsights.ReferenceDataKeyPropertyType.String,
 *             },
 *             new AzureNative.TimeSeriesInsights.Inputs.ReferenceDataSetKeyPropertyArgs
 *             {
 *                 Name = "DeviceFloor",
 *                 Type = AzureNative.TimeSeriesInsights.ReferenceDataKeyPropertyType.Double,
 *             },
 *         },
 *         Location = "West US",
 *         ReferenceDataSetName = "rds1",
 *         ResourceGroupName = "rg1",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	timeseriesinsights "github.com/pulumi/pulumi-azure-native-sdk/timeseriesinsights/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := timeseriesinsights.NewReferenceDataSet(ctx, "referenceDataSet", ×eriesinsights.ReferenceDataSetArgs{
 * 			EnvironmentName: pulumi.String("env1"),
 * 			KeyProperties: timeseriesinsights.ReferenceDataSetKeyPropertyArray{
 * 				×eriesinsights.ReferenceDataSetKeyPropertyArgs{
 * 					Name: pulumi.String("DeviceId1"),
 * 					Type: pulumi.String(timeseriesinsights.ReferenceDataKeyPropertyTypeString),
 * 				},
 * 				×eriesinsights.ReferenceDataSetKeyPropertyArgs{
 * 					Name: pulumi.String("DeviceFloor"),
 * 					Type: pulumi.String(timeseriesinsights.ReferenceDataKeyPropertyTypeDouble),
 * 				},
 * 			},
 * 			Location:             pulumi.String("West US"),
 * 			ReferenceDataSetName: pulumi.String("rds1"),
 * 			ResourceGroupName:    pulumi.String("rg1"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.timeseriesinsights.ReferenceDataSet;
 * import com.pulumi.azurenative.timeseriesinsights.ReferenceDataSetArgs;
 * import com.pulumi.azurenative.timeseriesinsights.inputs.ReferenceDataSetKeyPropertyArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var referenceDataSet = new ReferenceDataSet("referenceDataSet", ReferenceDataSetArgs.builder()
 *             .environmentName("env1")
 *             .keyProperties(
 *                 ReferenceDataSetKeyPropertyArgs.builder()
 *                     .name("DeviceId1")
 *                     .type("String")
 *                     .build(),
 *                 ReferenceDataSetKeyPropertyArgs.builder()
 *                     .name("DeviceFloor")
 *                     .type("Double")
 *                     .build())
 *             .location("West US")
 *             .referenceDataSetName("rds1")
 *             .resourceGroupName("rg1")
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:timeseriesinsights:ReferenceDataSet rds1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/referenceDataSets/{referenceDataSetName}
 * ```
 * @property dataStringComparisonBehavior The reference data set key comparison behavior can be set using this property. By default, the value is 'Ordinal' - which means case sensitive key comparison will be performed while joining reference data with events or while adding new reference data. When 'OrdinalIgnoreCase' is set, case insensitive comparison will be used.
 * @property environmentName The name of the Time Series Insights environment associated with the specified resource group.
 * @property keyProperties The list of key properties for the reference data set.
 * @property location The location of the resource.
 * @property referenceDataSetName Name of the reference data set.
 * @property resourceGroupName Name of an Azure Resource group.
 * @property tags Key-value pairs of additional properties for the resource.
 */
public data class ReferenceDataSetArgs(
    public val dataStringComparisonBehavior: Output>? =
        null,
    public val environmentName: Output? = null,
    public val keyProperties: Output>? = null,
    public val location: Output? = null,
    public val referenceDataSetName: Output? = null,
    public val resourceGroupName: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.timeseriesinsights.ReferenceDataSetArgs =
        com.pulumi.azurenative.timeseriesinsights.ReferenceDataSetArgs.builder()
            .dataStringComparisonBehavior(
                dataStringComparisonBehavior?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .environmentName(environmentName?.applyValue({ args0 -> args0 }))
            .keyProperties(
                keyProperties?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .location(location?.applyValue({ args0 -> args0 }))
            .referenceDataSetName(referenceDataSetName?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

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

    private var environmentName: Output? = null

    private var keyProperties: Output>? = null

    private var location: Output? = null

    private var referenceDataSetName: Output? = null

    private var resourceGroupName: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The reference data set key comparison behavior can be set using this property. By default, the value is 'Ordinal' - which means case sensitive key comparison will be performed while joining reference data with events or while adding new reference data. When 'OrdinalIgnoreCase' is set, case insensitive comparison will be used.
     */
    @JvmName("cvrwkmqyigtuaoxr")
    public suspend fun dataStringComparisonBehavior(`value`: Output>) {
        this.dataStringComparisonBehavior = value
    }

    /**
     * @param value The name of the Time Series Insights environment associated with the specified resource group.
     */
    @JvmName("gbrtqltrocpwtetd")
    public suspend fun environmentName(`value`: Output) {
        this.environmentName = value
    }

    /**
     * @param value The list of key properties for the reference data set.
     */
    @JvmName("bpraxfoqgeeotnuc")
    public suspend fun keyProperties(`value`: Output>) {
        this.keyProperties = value
    }

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

    /**
     * @param values The list of key properties for the reference data set.
     */
    @JvmName("neaalrgopfhksxma")
    public suspend fun keyProperties(values: List>) {
        this.keyProperties = Output.all(values)
    }

    /**
     * @param value The location of the resource.
     */
    @JvmName("nrmilrcmkgsmrrdp")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value Name of the reference data set.
     */
    @JvmName("xagiudkvmuavysna")
    public suspend fun referenceDataSetName(`value`: Output) {
        this.referenceDataSetName = value
    }

    /**
     * @param value Name of an Azure Resource group.
     */
    @JvmName("stlvfggelxbcwehu")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value Key-value pairs of additional properties for the resource.
     */
    @JvmName("ptqxiqynivhustvy")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The reference data set key comparison behavior can be set using this property. By default, the value is 'Ordinal' - which means case sensitive key comparison will be performed while joining reference data with events or while adding new reference data. When 'OrdinalIgnoreCase' is set, case insensitive comparison will be used.
     */
    @JvmName("qwsvjihklgrdvafe")
    public suspend fun dataStringComparisonBehavior(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataStringComparisonBehavior = mapped
    }

    /**
     * @param value The reference data set key comparison behavior can be set using this property. By default, the value is 'Ordinal' - which means case sensitive key comparison will be performed while joining reference data with events or while adding new reference data. When 'OrdinalIgnoreCase' is set, case insensitive comparison will be used.
     */
    @JvmName("rymeyojfxadeidpw")
    public fun dataStringComparisonBehavior(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dataStringComparisonBehavior = mapped
    }

    /**
     * @param value The reference data set key comparison behavior can be set using this property. By default, the value is 'Ordinal' - which means case sensitive key comparison will be performed while joining reference data with events or while adding new reference data. When 'OrdinalIgnoreCase' is set, case insensitive comparison will be used.
     */
    @JvmName("rgooubvbkphsjiom")
    public fun dataStringComparisonBehavior(`value`: DataStringComparisonBehavior) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dataStringComparisonBehavior = mapped
    }

    /**
     * @param value The name of the Time Series Insights environment associated with the specified resource group.
     */
    @JvmName("gwpdwjbeiavyfnsc")
    public suspend fun environmentName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.environmentName = mapped
    }

    /**
     * @param value The list of key properties for the reference data set.
     */
    @JvmName("huwkhhvvlvksdfvn")
    public suspend fun keyProperties(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.keyProperties = mapped
    }

    /**
     * @param argument The list of key properties for the reference data set.
     */
    @JvmName("lrovbqyffghjpfkm")
    public suspend fun keyProperties(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ReferenceDataSetKeyPropertyArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.keyProperties = mapped
    }

    /**
     * @param argument The list of key properties for the reference data set.
     */
    @JvmName("aptbtmttxahqqdui")
    public suspend fun keyProperties(vararg argument: suspend ReferenceDataSetKeyPropertyArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ReferenceDataSetKeyPropertyArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.keyProperties = mapped
    }

    /**
     * @param argument The list of key properties for the reference data set.
     */
    @JvmName("hgoqaouqbenobawb")
    public suspend fun keyProperties(argument: suspend ReferenceDataSetKeyPropertyArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ReferenceDataSetKeyPropertyArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.keyProperties = mapped
    }

    /**
     * @param values The list of key properties for the reference data set.
     */
    @JvmName("vejugeexdrhuwwls")
    public suspend fun keyProperties(vararg values: ReferenceDataSetKeyPropertyArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.keyProperties = mapped
    }

    /**
     * @param value The location of the resource.
     */
    @JvmName("ngaovodxyjaxybhw")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value Name of the reference data set.
     */
    @JvmName("avrgbgmfjjpjmjeg")
    public suspend fun referenceDataSetName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.referenceDataSetName = mapped
    }

    /**
     * @param value Name of an Azure Resource group.
     */
    @JvmName("obfhjegmaykxojcp")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value Key-value pairs of additional properties for the resource.
     */
    @JvmName("ielgjwodriwqcfxg")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Key-value pairs of additional properties for the resource.
     */
    @JvmName("hwiexkolclufjadn")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ReferenceDataSetArgs = ReferenceDataSetArgs(
        dataStringComparisonBehavior = dataStringComparisonBehavior,
        environmentName = environmentName,
        keyProperties = keyProperties,
        location = location,
        referenceDataSetName = referenceDataSetName,
        resourceGroupName = resourceGroupName,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy