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

com.pulumi.azurenative.logic.kotlin.IntegrationAccountMapArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.logic.kotlin

import com.pulumi.azurenative.logic.IntegrationAccountMapArgs.builder
import com.pulumi.azurenative.logic.kotlin.enums.MapType
import com.pulumi.azurenative.logic.kotlin.inputs.IntegrationAccountMapPropertiesParametersSchemaArgs
import com.pulumi.azurenative.logic.kotlin.inputs.IntegrationAccountMapPropertiesParametersSchemaArgsBuilder
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.Any
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * The integration account map.
 * Azure REST API version: 2019-05-01. Prior API version in Azure Native 1.x: 2019-05-01.
 * Other available API versions: 2015-08-01-preview.
 * ## Example Usage
 * ### Create or update a map
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var integrationAccountMap = new AzureNative.Logic.IntegrationAccountMap("integrationAccountMap", new()
 *     {
 *         Content = @"
 * 
 *   
 *   
 *   
 *     
 *   
 *   
 *     
 *     
 *     
 *     
 *     
 *     
 *     
 *     
 *     
 *     
 *     
 *       
 *         
 *       
 *       
 *         
 *       
 *       
 *         
 *       
 *       
 *         
 *       
 *       
 *         
 *       
 *       
 *         
 *       
 *       
 *         
 *       
 *       
 *         
 *       
 *       
 *         
 *       
 *       
 *         
 *       
 *     
 *   
 * ",
 *         ContentType = "application/xml",
 *         IntegrationAccountName = "testIntegrationAccount",
 *         Location = "westus",
 *         MapName = "testMap",
 *         MapType = AzureNative.Logic.MapType.Xslt,
 *         Metadata = null,
 *         ResourceGroupName = "testResourceGroup",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	logic "github.com/pulumi/pulumi-azure-native-sdk/logic/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := logic.NewIntegrationAccountMap(ctx, "integrationAccountMap", &logic.IntegrationAccountMapArgs{
 * 			Content: pulumi.String(`
 * 
 *   
 *   
 *   
 *     
 *   
 *   
 *     
 *     
 *     
 *     
 *     
 *     
 *     
 *     
 *     
 *     
 *     
 *       
 *         
 *       
 *       
 *         
 *       
 *       
 *         
 *       
 *       
 *         
 *       
 *       
 *         
 *       
 *       
 *         
 *       
 *       
 *         
 *       
 *       
 *         
 *       
 *       
 *         
 *       
 *       
 *         
 *       
 *     
 *   
 * `),
 * 			ContentType:            pulumi.String("application/xml"),
 * 			IntegrationAccountName: pulumi.String("testIntegrationAccount"),
 * 			Location:               pulumi.String("westus"),
 * 			MapName:                pulumi.String("testMap"),
 * 			MapType:                pulumi.String(logic.MapTypeXslt),
 * 			Metadata:               pulumi.Any(nil),
 * 			ResourceGroupName:      pulumi.String("testResourceGroup"),
 * 		})
 * 		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.logic.IntegrationAccountMap;
 * import com.pulumi.azurenative.logic.IntegrationAccountMapArgs;
 * 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 integrationAccountMap = new IntegrationAccountMap("integrationAccountMap", IntegrationAccountMapArgs.builder()
 *             .content("""
 * 
 * 
 *   
 *   
 *   
 *     
 *   
 *   
 *     
 *     
 *     
 *     
 *     
 *     
 *     
 *     
 *     
 *     
 *     
 *       
 *         
 *       
 *       
 *         
 *       
 *       
 *         
 *       
 *       
 *         
 *       
 *       
 *         
 *       
 *       
 *         
 *       
 *       
 *         
 *       
 *       
 *         
 *       
 *       
 *         
 *       
 *       
 *         
 *       
 *     
 *   
 *             """)
 *             .contentType("application/xml")
 *             .integrationAccountName("testIntegrationAccount")
 *             .location("westus")
 *             .mapName("testMap")
 *             .mapType("Xslt")
 *             .metadata()
 *             .resourceGroupName("testResourceGroup")
 *             .build());
 *     }
 * }
 * ```
 * ### Create or update a map larger than 4 MB
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var integrationAccountMap = new AzureNative.Logic.IntegrationAccountMap("integrationAccountMap", new()
 *     {
 *         ContentType = "application/xml",
 *         IntegrationAccountName = "testIntegrationAccount",
 *         Location = "westus",
 *         MapName = "testMap",
 *         MapType = AzureNative.Logic.MapType.Xslt,
 *         Metadata = null,
 *         ResourceGroupName = "testResourceGroup",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	logic "github.com/pulumi/pulumi-azure-native-sdk/logic/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := logic.NewIntegrationAccountMap(ctx, "integrationAccountMap", &logic.IntegrationAccountMapArgs{
 * 			ContentType:            pulumi.String("application/xml"),
 * 			IntegrationAccountName: pulumi.String("testIntegrationAccount"),
 * 			Location:               pulumi.String("westus"),
 * 			MapName:                pulumi.String("testMap"),
 * 			MapType:                pulumi.String(logic.MapTypeXslt),
 * 			Metadata:               pulumi.Any(nil),
 * 			ResourceGroupName:      pulumi.String("testResourceGroup"),
 * 		})
 * 		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.logic.IntegrationAccountMap;
 * import com.pulumi.azurenative.logic.IntegrationAccountMapArgs;
 * 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 integrationAccountMap = new IntegrationAccountMap("integrationAccountMap", IntegrationAccountMapArgs.builder()
 *             .contentType("application/xml")
 *             .integrationAccountName("testIntegrationAccount")
 *             .location("westus")
 *             .mapName("testMap")
 *             .mapType("Xslt")
 *             .metadata()
 *             .resourceGroupName("testResourceGroup")
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:logic:IntegrationAccountMap testMap /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/maps/{mapName}
 * ```
 * @property content The content.
 * @property contentType The content type.
 * @property integrationAccountName The integration account name.
 * @property location The resource location.
 * @property mapName The integration account map name.
 * @property mapType The map type.
 * @property metadata The metadata.
 * @property parametersSchema The parameters schema of integration account map.
 * @property resourceGroupName The resource group name.
 * @property tags The resource tags.
 */
public data class IntegrationAccountMapArgs(
    public val content: Output? = null,
    public val contentType: Output? = null,
    public val integrationAccountName: Output? = null,
    public val location: Output? = null,
    public val mapName: Output? = null,
    public val mapType: Output>? = null,
    public val metadata: Output? = null,
    public val parametersSchema: Output? = null,
    public val resourceGroupName: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.logic.IntegrationAccountMapArgs =
        com.pulumi.azurenative.logic.IntegrationAccountMapArgs.builder()
            .content(content?.applyValue({ args0 -> args0 }))
            .contentType(contentType?.applyValue({ args0 -> args0 }))
            .integrationAccountName(integrationAccountName?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .mapName(mapName?.applyValue({ args0 -> args0 }))
            .mapType(
                mapType?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .metadata(metadata?.applyValue({ args0 -> args0 }))
            .parametersSchema(parametersSchema?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [IntegrationAccountMapArgs].
 */
@PulumiTagMarker
public class IntegrationAccountMapArgsBuilder internal constructor() {
    private var content: Output? = null

    private var contentType: Output? = null

    private var integrationAccountName: Output? = null

    private var location: Output? = null

    private var mapName: Output? = null

    private var mapType: Output>? = null

    private var metadata: Output? = null

    private var parametersSchema: Output? = null

    private var resourceGroupName: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The content.
     */
    @JvmName("ypvsqlouvpdhbgdu")
    public suspend fun content(`value`: Output) {
        this.content = value
    }

    /**
     * @param value The content type.
     */
    @JvmName("bydknpjsyjpkpylv")
    public suspend fun contentType(`value`: Output) {
        this.contentType = value
    }

    /**
     * @param value The integration account name.
     */
    @JvmName("yahxgcbhlojfxdji")
    public suspend fun integrationAccountName(`value`: Output) {
        this.integrationAccountName = value
    }

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

    /**
     * @param value The integration account map name.
     */
    @JvmName("osahiyyxviqbfnwa")
    public suspend fun mapName(`value`: Output) {
        this.mapName = value
    }

    /**
     * @param value The map type.
     */
    @JvmName("vvmtsrvtwnttbaqk")
    public suspend fun mapType(`value`: Output>) {
        this.mapType = value
    }

    /**
     * @param value The metadata.
     */
    @JvmName("bchedueyjqubaghn")
    public suspend fun metadata(`value`: Output) {
        this.metadata = value
    }

    /**
     * @param value The parameters schema of integration account map.
     */
    @JvmName("tymkdxjixcacestl")
    public suspend fun parametersSchema(`value`: Output) {
        this.parametersSchema = value
    }

    /**
     * @param value The resource group name.
     */
    @JvmName("vhxthiqexsjgitsx")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value The resource tags.
     */
    @JvmName("nlfgknpamrprogrw")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param value The content type.
     */
    @JvmName("jkrbbnkhredqufqh")
    public suspend fun contentType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.contentType = mapped
    }

    /**
     * @param value The integration account name.
     */
    @JvmName("avdraynoenihjllq")
    public suspend fun integrationAccountName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.integrationAccountName = mapped
    }

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

    /**
     * @param value The integration account map name.
     */
    @JvmName("pdcblecrrllcbfrg")
    public suspend fun mapName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mapName = mapped
    }

    /**
     * @param value The map type.
     */
    @JvmName("hmkrfvslvlmyfcxr")
    public suspend fun mapType(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mapType = mapped
    }

    /**
     * @param value The map type.
     */
    @JvmName("ldrsboqblllhkcxd")
    public fun mapType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mapType = mapped
    }

    /**
     * @param value The map type.
     */
    @JvmName("uflrldtocnhppgmv")
    public fun mapType(`value`: MapType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mapType = mapped
    }

    /**
     * @param value The metadata.
     */
    @JvmName("ysrgjirdwuelypkp")
    public suspend fun metadata(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.metadata = mapped
    }

    /**
     * @param value The parameters schema of integration account map.
     */
    @JvmName("spjocbclunbiuhbl")
    public suspend fun parametersSchema(`value`: IntegrationAccountMapPropertiesParametersSchemaArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parametersSchema = mapped
    }

    /**
     * @param argument The parameters schema of integration account map.
     */
    @JvmName("riaceyqqgqkykaaf")
    public suspend fun parametersSchema(argument: suspend IntegrationAccountMapPropertiesParametersSchemaArgsBuilder.() -> Unit) {
        val toBeMapped = IntegrationAccountMapPropertiesParametersSchemaArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.parametersSchema = mapped
    }

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

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

    /**
     * @param values The resource tags.
     */
    @JvmName("vwinjgulrrovrvhi")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): IntegrationAccountMapArgs = IntegrationAccountMapArgs(
        content = content,
        contentType = contentType,
        integrationAccountName = integrationAccountName,
        location = location,
        mapName = mapName,
        mapType = mapType,
        metadata = metadata,
        parametersSchema = parametersSchema,
        resourceGroupName = resourceGroupName,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy