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

com.pulumi.azurenative.integrationspaces.kotlin.ApplicationResourceArgs.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.integrationspaces.kotlin

import com.pulumi.azurenative.integrationspaces.ApplicationResourceArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * A resource under application.
 * Azure REST API version: 2023-11-14-preview.
 * ## Example Usage
 * ### CreateOrUpdateApplicationResource
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var applicationResource = new AzureNative.IntegrationSpaces.ApplicationResource("applicationResource", new()
 *     {
 *         ApplicationName = "Application1",
 *         ResourceGroupName = "testrg",
 *         ResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Web/sites/LogicApp1",
 *         ResourceKind = "LogicApp",
 *         ResourceName = "Resource1",
 *         ResourceType = "Microsoft.Web/sites",
 *         SpaceName = "Space1",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	integrationspaces "github.com/pulumi/pulumi-azure-native-sdk/integrationspaces/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := integrationspaces.NewApplicationResource(ctx, "applicationResource", &integrationspaces.ApplicationResourceArgs{
 * 			ApplicationName:   pulumi.String("Application1"),
 * 			ResourceGroupName: pulumi.String("testrg"),
 * 			ResourceId:        pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Web/sites/LogicApp1"),
 * 			ResourceKind:      pulumi.String("LogicApp"),
 * 			ResourceName:      pulumi.String("Resource1"),
 * 			ResourceType:      pulumi.String("Microsoft.Web/sites"),
 * 			SpaceName:         pulumi.String("Space1"),
 * 		})
 * 		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.integrationspaces.ApplicationResource;
 * import com.pulumi.azurenative.integrationspaces.ApplicationResourceArgs;
 * 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 applicationResource = new ApplicationResource("applicationResource", ApplicationResourceArgs.builder()
 *             .applicationName("Application1")
 *             .resourceGroupName("testrg")
 *             .resourceId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.Web/sites/LogicApp1")
 *             .resourceKind("LogicApp")
 *             .resourceName("Resource1")
 *             .resourceType("Microsoft.Web/sites")
 *             .spaceName("Space1")
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:integrationspaces:ApplicationResource Resource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/resources/{resourceName}
 * ```
 * @property applicationName The name of the Application
 * @property resourceGroupName The name of the resource group. The name is case insensitive.
 * @property resourceId The Arm id of the application resource.
 * @property resourceKind The kind of the application resource.
 * @property resourceName The name of the application resource.
 * @property resourceType The type of the application resource.
 * @property spaceName The name of the space
 */
public data class ApplicationResourceArgs(
    public val applicationName: Output? = null,
    public val resourceGroupName: Output? = null,
    public val resourceId: Output? = null,
    public val resourceKind: Output? = null,
    public val resourceName: Output? = null,
    public val resourceType: Output? = null,
    public val spaceName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.integrationspaces.ApplicationResourceArgs =
        com.pulumi.azurenative.integrationspaces.ApplicationResourceArgs.builder()
            .applicationName(applicationName?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .resourceId(resourceId?.applyValue({ args0 -> args0 }))
            .resourceKind(resourceKind?.applyValue({ args0 -> args0 }))
            .resourceName(resourceName?.applyValue({ args0 -> args0 }))
            .resourceType(resourceType?.applyValue({ args0 -> args0 }))
            .spaceName(spaceName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ApplicationResourceArgs].
 */
@PulumiTagMarker
public class ApplicationResourceArgsBuilder internal constructor() {
    private var applicationName: Output? = null

    private var resourceGroupName: Output? = null

    private var resourceId: Output? = null

    private var resourceKind: Output? = null

    private var resourceName: Output? = null

    private var resourceType: Output? = null

    private var spaceName: Output? = null

    /**
     * @param value The name of the Application
     */
    @JvmName("vkcgopxhssfnihil")
    public suspend fun applicationName(`value`: Output) {
        this.applicationName = value
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("quwlngsfxajfhiwa")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value The Arm id of the application resource.
     */
    @JvmName("xvmtpiaqfsnfkraa")
    public suspend fun resourceId(`value`: Output) {
        this.resourceId = value
    }

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

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

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

    /**
     * @param value The name of the space
     */
    @JvmName("lsnjlrqmqmmumrhk")
    public suspend fun spaceName(`value`: Output) {
        this.spaceName = value
    }

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

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

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

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

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

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

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

    internal fun build(): ApplicationResourceArgs = ApplicationResourceArgs(
        applicationName = applicationName,
        resourceGroupName = resourceGroupName,
        resourceId = resourceId,
        resourceKind = resourceKind,
        resourceName = resourceName,
        resourceType = resourceType,
        spaceName = spaceName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy