Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azurenative.logic.kotlin.IntegrationAccountSchemaArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.logic.kotlin
import com.pulumi.azurenative.logic.IntegrationAccountSchemaArgs.builder
import com.pulumi.azurenative.logic.kotlin.enums.SchemaType
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 kotlin.Any
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* The integration account schema.
* 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 schema
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var integrationAccountSchema = new AzureNative.Logic.IntegrationAccountSchema("integrationAccountSchema", new()
* {
* Content = @"
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* ",
* ContentType = "application/xml",
* IntegrationAccountName = "testIntegrationAccount",
* Location = "westus",
* Metadata = null,
* ResourceGroupName = "testResourceGroup",
* SchemaName = "testSchema",
* SchemaType = AzureNative.Logic.SchemaType.Xml,
* Tags =
* {
* { "integrationAccountSchemaName", "IntegrationAccountSchema8120" },
* },
* });
* });
* ```
* ```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.NewIntegrationAccountSchema(ctx, "integrationAccountSchema", &logic.IntegrationAccountSchemaArgs{
* Content: pulumi.String(`
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* `),
* ContentType: pulumi.String("application/xml"),
* IntegrationAccountName: pulumi.String("testIntegrationAccount"),
* Location: pulumi.String("westus"),
* Metadata: pulumi.Any(nil),
* ResourceGroupName: pulumi.String("testResourceGroup"),
* SchemaName: pulumi.String("testSchema"),
* SchemaType: pulumi.String(logic.SchemaTypeXml),
* Tags: pulumi.StringMap{
* "integrationAccountSchemaName": pulumi.String("IntegrationAccountSchema8120"),
* },
* })
* 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.IntegrationAccountSchema;
* import com.pulumi.azurenative.logic.IntegrationAccountSchemaArgs;
* 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 integrationAccountSchema = new IntegrationAccountSchema("integrationAccountSchema", IntegrationAccountSchemaArgs.builder()
* .content("""
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* """)
* .contentType("application/xml")
* .integrationAccountName("testIntegrationAccount")
* .location("westus")
* .metadata()
* .resourceGroupName("testResourceGroup")
* .schemaName("testSchema")
* .schemaType("Xml")
* .tags(Map.of("integrationAccountSchemaName", "IntegrationAccountSchema8120"))
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:logic:IntegrationAccountSchema IntegrationAccountSchema5349 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/schemas/{schemaName}
* ```
* @property content The content.
* @property contentType The content type.
* @property documentName The document name.
* @property fileName The file name.
* @property integrationAccountName The integration account name.
* @property location The resource location.
* @property metadata The metadata.
* @property resourceGroupName The resource group name.
* @property schemaName The integration account schema name.
* @property schemaType The schema type.
* @property tags The resource tags.
* @property targetNamespace The target namespace of the schema.
*/
public data class IntegrationAccountSchemaArgs(
public val content: Output? = null,
public val contentType: Output? = null,
public val documentName: Output? = null,
public val fileName: Output? = null,
public val integrationAccountName: Output? = null,
public val location: Output? = null,
public val metadata: Output? = null,
public val resourceGroupName: Output? = null,
public val schemaName: Output? = null,
public val schemaType: Output>? = null,
public val tags: Output>? = null,
public val targetNamespace: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.logic.IntegrationAccountSchemaArgs =
com.pulumi.azurenative.logic.IntegrationAccountSchemaArgs.builder()
.content(content?.applyValue({ args0 -> args0 }))
.contentType(contentType?.applyValue({ args0 -> args0 }))
.documentName(documentName?.applyValue({ args0 -> args0 }))
.fileName(fileName?.applyValue({ args0 -> args0 }))
.integrationAccountName(integrationAccountName?.applyValue({ args0 -> args0 }))
.location(location?.applyValue({ args0 -> args0 }))
.metadata(metadata?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.schemaName(schemaName?.applyValue({ args0 -> args0 }))
.schemaType(
schemaType?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
.targetNamespace(targetNamespace?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [IntegrationAccountSchemaArgs].
*/
@PulumiTagMarker
public class IntegrationAccountSchemaArgsBuilder internal constructor() {
private var content: Output? = null
private var contentType: Output? = null
private var documentName: Output? = null
private var fileName: Output? = null
private var integrationAccountName: Output? = null
private var location: Output? = null
private var metadata: Output? = null
private var resourceGroupName: Output? = null
private var schemaName: Output? = null
private var schemaType: Output>? = null
private var tags: Output>? = null
private var targetNamespace: Output? = null
/**
* @param value The content.
*/
@JvmName("pjhmkmqvmodtpdks")
public suspend fun content(`value`: Output) {
this.content = value
}
/**
* @param value The content type.
*/
@JvmName("iembkfefmxldnwjn")
public suspend fun contentType(`value`: Output) {
this.contentType = value
}
/**
* @param value The document name.
*/
@JvmName("balqcyfarutrhpal")
public suspend fun documentName(`value`: Output) {
this.documentName = value
}
/**
* @param value The file name.
*/
@JvmName("gxftooghcobqwpnl")
public suspend fun fileName(`value`: Output) {
this.fileName = value
}
/**
* @param value The integration account name.
*/
@JvmName("vvmswfwlpojgnnlo")
public suspend fun integrationAccountName(`value`: Output) {
this.integrationAccountName = value
}
/**
* @param value The resource location.
*/
@JvmName("yvaarhrtrrnybrpf")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value The metadata.
*/
@JvmName("nwhrrrtokptmsula")
public suspend fun metadata(`value`: Output) {
this.metadata = value
}
/**
* @param value The resource group name.
*/
@JvmName("usoimjfvygtwuefb")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The integration account schema name.
*/
@JvmName("kysvmjekdgtkhskg")
public suspend fun schemaName(`value`: Output) {
this.schemaName = value
}
/**
* @param value The schema type.
*/
@JvmName("ujilucvvcreuakef")
public suspend fun schemaType(`value`: Output>) {
this.schemaType = value
}
/**
* @param value The resource tags.
*/
@JvmName("jdttnbmxdlcagedm")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value The target namespace of the schema.
*/
@JvmName("toueoirnimdkwpuv")
public suspend fun targetNamespace(`value`: Output) {
this.targetNamespace = value
}
/**
* @param value The content.
*/
@JvmName("fxbuyeoanaafncbh")
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("hslohdbffsjdmaic")
public suspend fun contentType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.contentType = mapped
}
/**
* @param value The document name.
*/
@JvmName("xqbbyveqcjovvyfx")
public suspend fun documentName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.documentName = mapped
}
/**
* @param value The file name.
*/
@JvmName("nbkncuwprsbmsrxa")
public suspend fun fileName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.fileName = mapped
}
/**
* @param value The integration account name.
*/
@JvmName("urfbhwtxxehvvaco")
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("fvfotbftgkwvkthj")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value The metadata.
*/
@JvmName("ykhgppwdrpqwavqp")
public suspend fun metadata(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.metadata = mapped
}
/**
* @param value The resource group name.
*/
@JvmName("xjrhrnwdpphettck")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value The integration account schema name.
*/
@JvmName("jxbfqvsandolukte")
public suspend fun schemaName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.schemaName = mapped
}
/**
* @param value The schema type.
*/
@JvmName("dupnqmaowgajgehs")
public suspend fun schemaType(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.schemaType = mapped
}
/**
* @param value The schema type.
*/
@JvmName("brxsjxeisxhsuhpc")
public fun schemaType(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.schemaType = mapped
}
/**
* @param value The schema type.
*/
@JvmName("wbpftslejvxrspvs")
public fun schemaType(`value`: SchemaType) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.schemaType = mapped
}
/**
* @param value The resource tags.
*/
@JvmName("logmgmbxfapjkcgy")
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("pmfkbqisfnhvfqbq")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param value The target namespace of the schema.
*/
@JvmName("ivlrvhbgixxyncqh")
public suspend fun targetNamespace(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.targetNamespace = mapped
}
internal fun build(): IntegrationAccountSchemaArgs = IntegrationAccountSchemaArgs(
content = content,
contentType = contentType,
documentName = documentName,
fileName = fileName,
integrationAccountName = integrationAccountName,
location = location,
metadata = metadata,
resourceGroupName = resourceGroupName,
schemaName = schemaName,
schemaType = schemaType,
tags = tags,
targetNamespace = targetNamespace,
)
}