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

com.pulumi.azure.appplatform.kotlin.SpringCloudContainerDeploymentArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.appplatform.kotlin

import com.pulumi.azure.appplatform.SpringCloudContainerDeploymentArgs.builder
import com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudContainerDeploymentQuotaArgs
import com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudContainerDeploymentQuotaArgsBuilder
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.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages a Spring Cloud Container Deployment.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example",
 *     location: "West Europe",
 * });
 * const exampleSpringCloudService = new azure.appplatform.SpringCloudService("example", {
 *     name: "example",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     skuName: "E0",
 * });
 * const exampleSpringCloudApp = new azure.appplatform.SpringCloudApp("example", {
 *     name: "example",
 *     resourceGroupName: exampleSpringCloudService.resourceGroupName,
 *     serviceName: exampleSpringCloudService.name,
 * });
 * const exampleSpringCloudContainerDeployment = new azure.appplatform.SpringCloudContainerDeployment("example", {
 *     name: "example",
 *     springCloudAppId: exampleSpringCloudApp.id,
 *     instanceCount: 2,
 *     arguments: [
 *         "-cp",
 *         "/app/resources:/app/classes:/app/libs/*",
 *         "hello.Application",
 *     ],
 *     commands: ["java"],
 *     environmentVariables: {
 *         Foo: "Bar",
 *         Env: "Staging",
 *     },
 *     server: "docker.io",
 *     image: "springio/gs-spring-boot-docker",
 *     languageFramework: "springboot",
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="example",
 *     location="West Europe")
 * example_spring_cloud_service = azure.appplatform.SpringCloudService("example",
 *     name="example",
 *     location=example.location,
 *     resource_group_name=example.name,
 *     sku_name="E0")
 * example_spring_cloud_app = azure.appplatform.SpringCloudApp("example",
 *     name="example",
 *     resource_group_name=example_spring_cloud_service.resource_group_name,
 *     service_name=example_spring_cloud_service.name)
 * example_spring_cloud_container_deployment = azure.appplatform.SpringCloudContainerDeployment("example",
 *     name="example",
 *     spring_cloud_app_id=example_spring_cloud_app.id,
 *     instance_count=2,
 *     arguments=[
 *         "-cp",
 *         "/app/resources:/app/classes:/app/libs/*",
 *         "hello.Application",
 *     ],
 *     commands=["java"],
 *     environment_variables={
 *         "Foo": "Bar",
 *         "Env": "Staging",
 *     },
 *     server="docker.io",
 *     image="springio/gs-spring-boot-docker",
 *     language_framework="springboot")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "example",
 *         Location = "West Europe",
 *     });
 *     var exampleSpringCloudService = new Azure.AppPlatform.SpringCloudService("example", new()
 *     {
 *         Name = "example",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         SkuName = "E0",
 *     });
 *     var exampleSpringCloudApp = new Azure.AppPlatform.SpringCloudApp("example", new()
 *     {
 *         Name = "example",
 *         ResourceGroupName = exampleSpringCloudService.ResourceGroupName,
 *         ServiceName = exampleSpringCloudService.Name,
 *     });
 *     var exampleSpringCloudContainerDeployment = new Azure.AppPlatform.SpringCloudContainerDeployment("example", new()
 *     {
 *         Name = "example",
 *         SpringCloudAppId = exampleSpringCloudApp.Id,
 *         InstanceCount = 2,
 *         Arguments = new[]
 *         {
 *             "-cp",
 *             "/app/resources:/app/classes:/app/libs/*",
 *             "hello.Application",
 *         },
 *         Commands = new[]
 *         {
 *             "java",
 *         },
 *         EnvironmentVariables =
 *         {
 *             { "Foo", "Bar" },
 *             { "Env", "Staging" },
 *         },
 *         Server = "docker.io",
 *         Image = "springio/gs-spring-boot-docker",
 *         LanguageFramework = "springboot",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appplatform"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("example"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleSpringCloudService, err := appplatform.NewSpringCloudService(ctx, "example", &appplatform.SpringCloudServiceArgs{
 * 			Name:              pulumi.String("example"),
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 			SkuName:           pulumi.String("E0"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleSpringCloudApp, err := appplatform.NewSpringCloudApp(ctx, "example", &appplatform.SpringCloudAppArgs{
 * 			Name:              pulumi.String("example"),
 * 			ResourceGroupName: exampleSpringCloudService.ResourceGroupName,
 * 			ServiceName:       exampleSpringCloudService.Name,
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = appplatform.NewSpringCloudContainerDeployment(ctx, "example", &appplatform.SpringCloudContainerDeploymentArgs{
 * 			Name:             pulumi.String("example"),
 * 			SpringCloudAppId: exampleSpringCloudApp.ID(),
 * 			InstanceCount:    pulumi.Int(2),
 * 			Arguments: pulumi.StringArray{
 * 				pulumi.String("-cp"),
 * 				pulumi.String("/app/resources:/app/classes:/app/libs/*"),
 * 				pulumi.String("hello.Application"),
 * 			},
 * 			Commands: pulumi.StringArray{
 * 				pulumi.String("java"),
 * 			},
 * 			EnvironmentVariables: pulumi.StringMap{
 * 				"Foo": pulumi.String("Bar"),
 * 				"Env": pulumi.String("Staging"),
 * 			},
 * 			Server:            pulumi.String("docker.io"),
 * 			Image:             pulumi.String("springio/gs-spring-boot-docker"),
 * 			LanguageFramework: pulumi.String("springboot"),
 * 		})
 * 		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.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.appplatform.SpringCloudService;
 * import com.pulumi.azure.appplatform.SpringCloudServiceArgs;
 * import com.pulumi.azure.appplatform.SpringCloudApp;
 * import com.pulumi.azure.appplatform.SpringCloudAppArgs;
 * import com.pulumi.azure.appplatform.SpringCloudContainerDeployment;
 * import com.pulumi.azure.appplatform.SpringCloudContainerDeploymentArgs;
 * 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example")
 *             .location("West Europe")
 *             .build());
 *         var exampleSpringCloudService = new SpringCloudService("exampleSpringCloudService", SpringCloudServiceArgs.builder()
 *             .name("example")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .skuName("E0")
 *             .build());
 *         var exampleSpringCloudApp = new SpringCloudApp("exampleSpringCloudApp", SpringCloudAppArgs.builder()
 *             .name("example")
 *             .resourceGroupName(exampleSpringCloudService.resourceGroupName())
 *             .serviceName(exampleSpringCloudService.name())
 *             .build());
 *         var exampleSpringCloudContainerDeployment = new SpringCloudContainerDeployment("exampleSpringCloudContainerDeployment", SpringCloudContainerDeploymentArgs.builder()
 *             .name("example")
 *             .springCloudAppId(exampleSpringCloudApp.id())
 *             .instanceCount(2)
 *             .arguments(
 *                 "-cp",
 *                 "/app/resources:/app/classes:/app/libs/*",
 *                 "hello.Application")
 *             .commands("java")
 *             .environmentVariables(Map.ofEntries(
 *                 Map.entry("Foo", "Bar"),
 *                 Map.entry("Env", "Staging")
 *             ))
 *             .server("docker.io")
 *             .image("springio/gs-spring-boot-docker")
 *             .languageFramework("springboot")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example
 *       location: West Europe
 *   exampleSpringCloudService:
 *     type: azure:appplatform:SpringCloudService
 *     name: example
 *     properties:
 *       name: example
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       skuName: E0
 *   exampleSpringCloudApp:
 *     type: azure:appplatform:SpringCloudApp
 *     name: example
 *     properties:
 *       name: example
 *       resourceGroupName: ${exampleSpringCloudService.resourceGroupName}
 *       serviceName: ${exampleSpringCloudService.name}
 *   exampleSpringCloudContainerDeployment:
 *     type: azure:appplatform:SpringCloudContainerDeployment
 *     name: example
 *     properties:
 *       name: example
 *       springCloudAppId: ${exampleSpringCloudApp.id}
 *       instanceCount: 2
 *       arguments:
 *         - -cp
 *         - /app/resources:/app/classes:/app/libs/*
 *         - hello.Application
 *       commands:
 *         - java
 *       environmentVariables:
 *         Foo: Bar
 *         Env: Staging
 *       server: docker.io
 *       image: springio/gs-spring-boot-docker
 *       languageFramework: springboot
 * ```
 * 
 * ## Import
 * Spring Cloud Container Deployments can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:appplatform/springCloudContainerDeployment:SpringCloudContainerDeployment example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.AppPlatform/spring/spring1/apps/app1/deployments/deploy1
 * ```
 * @property addonJson A JSON object that contains the addon configurations of the Spring Cloud Container Deployment.
 * @property applicationPerformanceMonitoringIds Specifies a list of Spring Cloud Application Performance Monitoring IDs.
 * @property arguments Specifies the arguments to the entrypoint. The docker image's `CMD` is used if not specified.
 * @property commands Specifies the entrypoint array. It will not be executed within a shell. The docker image's `ENTRYPOINT` is used if not specified.
 * @property environmentVariables Specifies the environment variables of the Spring Cloud Deployment as a map of key-value pairs.
 * @property image Container image of the custom container. This should be in the form of `:` without the server name of the registry.
 * @property instanceCount Specifies the required instance count of the Spring Cloud Deployment. Possible Values are between `1` and `500`. Defaults to `1` if not specified.
 * @property languageFramework Specifies the language framework of the container image. The only possible value is `springboot`.
 * @property name The name which should be used for this Spring Cloud Container Deployment. Changing this forces a new Spring Cloud Container Deployment to be created.
 * @property quota A `quota` block as defined below.
 * @property server The name of the registry that contains the container image.
 * @property springCloudAppId The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Container Deployment to be created.
 * */*/*/*/*/*/
 */
public data class SpringCloudContainerDeploymentArgs(
    public val addonJson: Output? = null,
    public val applicationPerformanceMonitoringIds: Output>? = null,
    public val arguments: Output>? = null,
    public val commands: Output>? = null,
    public val environmentVariables: Output>? = null,
    public val image: Output? = null,
    public val instanceCount: Output? = null,
    public val languageFramework: Output? = null,
    public val name: Output? = null,
    public val quota: Output? = null,
    public val server: Output? = null,
    public val springCloudAppId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.appplatform.SpringCloudContainerDeploymentArgs =
        com.pulumi.azure.appplatform.SpringCloudContainerDeploymentArgs.builder()
            .addonJson(addonJson?.applyValue({ args0 -> args0 }))
            .applicationPerformanceMonitoringIds(
                applicationPerformanceMonitoringIds?.applyValue({ args0 ->
                    args0.map({ args0 -> args0 })
                }),
            )
            .arguments(arguments?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .commands(commands?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .environmentVariables(
                environmentVariables?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .image(image?.applyValue({ args0 -> args0 }))
            .instanceCount(instanceCount?.applyValue({ args0 -> args0 }))
            .languageFramework(languageFramework?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .quota(quota?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .server(server?.applyValue({ args0 -> args0 }))
            .springCloudAppId(springCloudAppId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SpringCloudContainerDeploymentArgs].
 */
@PulumiTagMarker
public class SpringCloudContainerDeploymentArgsBuilder internal constructor() {
    private var addonJson: Output? = null

    private var applicationPerformanceMonitoringIds: Output>? = null

    private var arguments: Output>? = null

    private var commands: Output>? = null

    private var environmentVariables: Output>? = null

    private var image: Output? = null

    private var instanceCount: Output? = null

    private var languageFramework: Output? = null

    private var name: Output? = null

    private var quota: Output? = null

    private var server: Output? = null

    private var springCloudAppId: Output? = null

    /**
     * @param value A JSON object that contains the addon configurations of the Spring Cloud Container Deployment.
     */
    @JvmName("kpfwdfvvjvrkyuvi")
    public suspend fun addonJson(`value`: Output) {
        this.addonJson = value
    }

    /**
     * @param value Specifies a list of Spring Cloud Application Performance Monitoring IDs.
     */
    @JvmName("dpoeobtytcryfrvu")
    public suspend fun applicationPerformanceMonitoringIds(`value`: Output>) {
        this.applicationPerformanceMonitoringIds = value
    }

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

    /**
     * @param values Specifies a list of Spring Cloud Application Performance Monitoring IDs.
     */
    @JvmName("vyrafeysyrhvhwch")
    public suspend fun applicationPerformanceMonitoringIds(values: List>) {
        this.applicationPerformanceMonitoringIds = Output.all(values)
    }

    /**
     * @param value Specifies the arguments to the entrypoint. The docker image's `CMD` is used if not specified.
     */
    @JvmName("qwtnoldcslsvdbjw")
    public suspend fun arguments(`value`: Output>) {
        this.arguments = value
    }

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

    /**
     * @param values Specifies the arguments to the entrypoint. The docker image's `CMD` is used if not specified.
     */
    @JvmName("vcxwrdctyiugvvfj")
    public suspend fun arguments(values: List>) {
        this.arguments = Output.all(values)
    }

    /**
     * @param value Specifies the entrypoint array. It will not be executed within a shell. The docker image's `ENTRYPOINT` is used if not specified.
     */
    @JvmName("ibynbehxldwgvwya")
    public suspend fun commands(`value`: Output>) {
        this.commands = value
    }

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

    /**
     * @param values Specifies the entrypoint array. It will not be executed within a shell. The docker image's `ENTRYPOINT` is used if not specified.
     */
    @JvmName("dirfdqkrwubsmwvr")
    public suspend fun commands(values: List>) {
        this.commands = Output.all(values)
    }

    /**
     * @param value Specifies the environment variables of the Spring Cloud Deployment as a map of key-value pairs.
     */
    @JvmName("fqadhjjjusntunop")
    public suspend fun environmentVariables(`value`: Output>) {
        this.environmentVariables = value
    }

    /**
     * @param value Container image of the custom container. This should be in the form of `:` without the server name of the registry.
     */
    @JvmName("adlwhbwrqwojxbci")
    public suspend fun image(`value`: Output) {
        this.image = value
    }

    /**
     * @param value Specifies the required instance count of the Spring Cloud Deployment. Possible Values are between `1` and `500`. Defaults to `1` if not specified.
     */
    @JvmName("njvqapgaqpwkkhgy")
    public suspend fun instanceCount(`value`: Output) {
        this.instanceCount = value
    }

    /**
     * @param value Specifies the language framework of the container image. The only possible value is `springboot`.
     */
    @JvmName("ppyccxlvelflnvqv")
    public suspend fun languageFramework(`value`: Output) {
        this.languageFramework = value
    }

    /**
     * @param value The name which should be used for this Spring Cloud Container Deployment. Changing this forces a new Spring Cloud Container Deployment to be created.
     */
    @JvmName("bepqryrcgahfmwvh")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A `quota` block as defined below.
     */
    @JvmName("omcvvvomacrbmmqb")
    public suspend fun quota(`value`: Output) {
        this.quota = value
    }

    /**
     * @param value The name of the registry that contains the container image.
     */
    @JvmName("mrvseqyygrvdmkpg")
    public suspend fun server(`value`: Output) {
        this.server = value
    }

    /**
     * @param value The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Container Deployment to be created.
     */
    @JvmName("balcoeeclkxumgoa")
    public suspend fun springCloudAppId(`value`: Output) {
        this.springCloudAppId = value
    }

    /**
     * @param value A JSON object that contains the addon configurations of the Spring Cloud Container Deployment.
     */
    @JvmName("fkqxbdjmpraoxfgp")
    public suspend fun addonJson(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.addonJson = mapped
    }

    /**
     * @param value Specifies a list of Spring Cloud Application Performance Monitoring IDs.
     */
    @JvmName("cuontbrqfjjmnpdj")
    public suspend fun applicationPerformanceMonitoringIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applicationPerformanceMonitoringIds = mapped
    }

    /**
     * @param values Specifies a list of Spring Cloud Application Performance Monitoring IDs.
     */
    @JvmName("joylcxgrihsasvki")
    public suspend fun applicationPerformanceMonitoringIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.applicationPerformanceMonitoringIds = mapped
    }

    /**
     * @param value Specifies the arguments to the entrypoint. The docker image's `CMD` is used if not specified.
     */
    @JvmName("helfxgxkklgfeidh")
    public suspend fun arguments(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.arguments = mapped
    }

    /**
     * @param values Specifies the arguments to the entrypoint. The docker image's `CMD` is used if not specified.
     */
    @JvmName("whcfxgnuaaixjldv")
    public suspend fun arguments(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.arguments = mapped
    }

    /**
     * @param value Specifies the entrypoint array. It will not be executed within a shell. The docker image's `ENTRYPOINT` is used if not specified.
     */
    @JvmName("utgjfmdpibydxplm")
    public suspend fun commands(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.commands = mapped
    }

    /**
     * @param values Specifies the entrypoint array. It will not be executed within a shell. The docker image's `ENTRYPOINT` is used if not specified.
     */
    @JvmName("jbcskgsqagvsfpgf")
    public suspend fun commands(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.commands = mapped
    }

    /**
     * @param value Specifies the environment variables of the Spring Cloud Deployment as a map of key-value pairs.
     */
    @JvmName("qblayqumbsftownw")
    public suspend fun environmentVariables(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.environmentVariables = mapped
    }

    /**
     * @param values Specifies the environment variables of the Spring Cloud Deployment as a map of key-value pairs.
     */
    @JvmName("vdpgnrsjgivucbcv")
    public fun environmentVariables(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.environmentVariables = mapped
    }

    /**
     * @param value Container image of the custom container. This should be in the form of `:` without the server name of the registry.
     */
    @JvmName("sqbosficboqatpah")
    public suspend fun image(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.image = mapped
    }

    /**
     * @param value Specifies the required instance count of the Spring Cloud Deployment. Possible Values are between `1` and `500`. Defaults to `1` if not specified.
     */
    @JvmName("crhahtiaoxogqkbp")
    public suspend fun instanceCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceCount = mapped
    }

    /**
     * @param value Specifies the language framework of the container image. The only possible value is `springboot`.
     */
    @JvmName("jivknyndlplyitpa")
    public suspend fun languageFramework(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.languageFramework = mapped
    }

    /**
     * @param value The name which should be used for this Spring Cloud Container Deployment. Changing this forces a new Spring Cloud Container Deployment to be created.
     */
    @JvmName("mkerbepumkxlisui")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value A `quota` block as defined below.
     */
    @JvmName("uedttaqnbsopmviy")
    public suspend fun quota(`value`: SpringCloudContainerDeploymentQuotaArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.quota = mapped
    }

    /**
     * @param argument A `quota` block as defined below.
     */
    @JvmName("lddfugqkhibjblrh")
    public suspend fun quota(argument: suspend SpringCloudContainerDeploymentQuotaArgsBuilder.() -> Unit) {
        val toBeMapped = SpringCloudContainerDeploymentQuotaArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.quota = mapped
    }

    /**
     * @param value The name of the registry that contains the container image.
     */
    @JvmName("havmxykjawctsgnu")
    public suspend fun server(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.server = mapped
    }

    /**
     * @param value The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Container Deployment to be created.
     */
    @JvmName("fviyfgedsmrrsirv")
    public suspend fun springCloudAppId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.springCloudAppId = mapped
    }

    internal fun build(): SpringCloudContainerDeploymentArgs = SpringCloudContainerDeploymentArgs(
        addonJson = addonJson,
        applicationPerformanceMonitoringIds = applicationPerformanceMonitoringIds,
        arguments = arguments,
        commands = commands,
        environmentVariables = environmentVariables,
        image = image,
        instanceCount = instanceCount,
        languageFramework = languageFramework,
        name = name,
        quota = quota,
        server = server,
        springCloudAppId = springCloudAppId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy