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

com.pulumi.azurenative.app.kotlin.DaprComponentResiliencyPolicyArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.app.kotlin

import com.pulumi.azurenative.app.DaprComponentResiliencyPolicyArgs.builder
import com.pulumi.azurenative.app.kotlin.inputs.DaprComponentResiliencyPolicyConfigurationArgs
import com.pulumi.azurenative.app.kotlin.inputs.DaprComponentResiliencyPolicyConfigurationArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Dapr Component Resiliency Policy.
 * Azure REST API version: 2023-08-01-preview.
 * Other available API versions: 2023-11-02-preview, 2024-02-02-preview.
 * ## Example Usage
 * ### Create or update dapr component resiliency policy with all options
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var daprComponentResiliencyPolicy = new AzureNative.App.DaprComponentResiliencyPolicy("daprComponentResiliencyPolicy", new()
 *     {
 *         ComponentName = "mydaprcomponent",
 *         EnvironmentName = "myenvironment",
 *         InboundPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyConfigurationArgs
 *         {
 *             HttpRetryPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs
 *             {
 *                 MaxRetries = 15,
 *                 RetryBackOff = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs
 *                 {
 *                     InitialDelayInMilliseconds = 2000,
 *                     MaxIntervalInMilliseconds = 5500,
 *                 },
 *             },
 *             TimeoutPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs
 *             {
 *                 ResponseTimeoutInSeconds = 30,
 *             },
 *         },
 *         Name = "myresiliencypolicy",
 *         OutboundPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyConfigurationArgs
 *         {
 *             HttpRetryPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs
 *             {
 *                 MaxRetries = 5,
 *                 RetryBackOff = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs
 *                 {
 *                     InitialDelayInMilliseconds = 100,
 *                     MaxIntervalInMilliseconds = 30000,
 *                 },
 *             },
 *             TimeoutPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs
 *             {
 *                 ResponseTimeoutInSeconds = 12,
 *             },
 *         },
 *         ResourceGroupName = "examplerg",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	app "github.com/pulumi/pulumi-azure-native-sdk/app/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := app.NewDaprComponentResiliencyPolicy(ctx, "daprComponentResiliencyPolicy", &app.DaprComponentResiliencyPolicyArgs{
 * 			ComponentName:   pulumi.String("mydaprcomponent"),
 * 			EnvironmentName: pulumi.String("myenvironment"),
 * 			InboundPolicy: &app.DaprComponentResiliencyPolicyConfigurationArgs{
 * 				HttpRetryPolicy: &app.DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs{
 * 					MaxRetries: pulumi.Int(15),
 * 					RetryBackOff: &app.DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs{
 * 						InitialDelayInMilliseconds: pulumi.Int(2000),
 * 						MaxIntervalInMilliseconds:  pulumi.Int(5500),
 * 					},
 * 				},
 * 				TimeoutPolicy: &app.DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs{
 * 					ResponseTimeoutInSeconds: pulumi.Int(30),
 * 				},
 * 			},
 * 			Name: pulumi.String("myresiliencypolicy"),
 * 			OutboundPolicy: &app.DaprComponentResiliencyPolicyConfigurationArgs{
 * 				HttpRetryPolicy: &app.DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs{
 * 					MaxRetries: pulumi.Int(5),
 * 					RetryBackOff: &app.DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs{
 * 						InitialDelayInMilliseconds: pulumi.Int(100),
 * 						MaxIntervalInMilliseconds:  pulumi.Int(30000),
 * 					},
 * 				},
 * 				TimeoutPolicy: &app.DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs{
 * 					ResponseTimeoutInSeconds: pulumi.Int(12),
 * 				},
 * 			},
 * 			ResourceGroupName: pulumi.String("examplerg"),
 * 		})
 * 		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.app.DaprComponentResiliencyPolicy;
 * import com.pulumi.azurenative.app.DaprComponentResiliencyPolicyArgs;
 * import com.pulumi.azurenative.app.inputs.DaprComponentResiliencyPolicyConfigurationArgs;
 * import com.pulumi.azurenative.app.inputs.DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs;
 * import com.pulumi.azurenative.app.inputs.DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs;
 * import com.pulumi.azurenative.app.inputs.DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs;
 * 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 daprComponentResiliencyPolicy = new DaprComponentResiliencyPolicy("daprComponentResiliencyPolicy", DaprComponentResiliencyPolicyArgs.builder()
 *             .componentName("mydaprcomponent")
 *             .environmentName("myenvironment")
 *             .inboundPolicy(DaprComponentResiliencyPolicyConfigurationArgs.builder()
 *                 .httpRetryPolicy(DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs.builder()
 *                     .maxRetries(15)
 *                     .retryBackOff(DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs.builder()
 *                         .initialDelayInMilliseconds(2000)
 *                         .maxIntervalInMilliseconds(5500)
 *                         .build())
 *                     .build())
 *                 .timeoutPolicy(DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs.builder()
 *                     .responseTimeoutInSeconds(30)
 *                     .build())
 *                 .build())
 *             .name("myresiliencypolicy")
 *             .outboundPolicy(DaprComponentResiliencyPolicyConfigurationArgs.builder()
 *                 .httpRetryPolicy(DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs.builder()
 *                     .maxRetries(5)
 *                     .retryBackOff(DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs.builder()
 *                         .initialDelayInMilliseconds(100)
 *                         .maxIntervalInMilliseconds(30000)
 *                         .build())
 *                     .build())
 *                 .timeoutPolicy(DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs.builder()
 *                     .responseTimeoutInSeconds(12)
 *                     .build())
 *                 .build())
 *             .resourceGroupName("examplerg")
 *             .build());
 *     }
 * }
 * ```
 * ### Create or update dapr component resiliency policy with outbound policy only
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var daprComponentResiliencyPolicy = new AzureNative.App.DaprComponentResiliencyPolicy("daprComponentResiliencyPolicy", new()
 *     {
 *         ComponentName = "mydaprcomponent",
 *         EnvironmentName = "myenvironment",
 *         Name = "myresiliencypolicy",
 *         OutboundPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyConfigurationArgs
 *         {
 *             HttpRetryPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs
 *             {
 *                 MaxRetries = 5,
 *                 RetryBackOff = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs
 *                 {
 *                     InitialDelayInMilliseconds = 100,
 *                     MaxIntervalInMilliseconds = 30000,
 *                 },
 *             },
 *             TimeoutPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs
 *             {
 *                 ResponseTimeoutInSeconds = 12,
 *             },
 *         },
 *         ResourceGroupName = "examplerg",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	app "github.com/pulumi/pulumi-azure-native-sdk/app/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := app.NewDaprComponentResiliencyPolicy(ctx, "daprComponentResiliencyPolicy", &app.DaprComponentResiliencyPolicyArgs{
 * 			ComponentName:   pulumi.String("mydaprcomponent"),
 * 			EnvironmentName: pulumi.String("myenvironment"),
 * 			Name:            pulumi.String("myresiliencypolicy"),
 * 			OutboundPolicy: &app.DaprComponentResiliencyPolicyConfigurationArgs{
 * 				HttpRetryPolicy: &app.DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs{
 * 					MaxRetries: pulumi.Int(5),
 * 					RetryBackOff: &app.DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs{
 * 						InitialDelayInMilliseconds: pulumi.Int(100),
 * 						MaxIntervalInMilliseconds:  pulumi.Int(30000),
 * 					},
 * 				},
 * 				TimeoutPolicy: &app.DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs{
 * 					ResponseTimeoutInSeconds: pulumi.Int(12),
 * 				},
 * 			},
 * 			ResourceGroupName: pulumi.String("examplerg"),
 * 		})
 * 		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.app.DaprComponentResiliencyPolicy;
 * import com.pulumi.azurenative.app.DaprComponentResiliencyPolicyArgs;
 * import com.pulumi.azurenative.app.inputs.DaprComponentResiliencyPolicyConfigurationArgs;
 * import com.pulumi.azurenative.app.inputs.DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs;
 * import com.pulumi.azurenative.app.inputs.DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs;
 * import com.pulumi.azurenative.app.inputs.DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs;
 * 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 daprComponentResiliencyPolicy = new DaprComponentResiliencyPolicy("daprComponentResiliencyPolicy", DaprComponentResiliencyPolicyArgs.builder()
 *             .componentName("mydaprcomponent")
 *             .environmentName("myenvironment")
 *             .name("myresiliencypolicy")
 *             .outboundPolicy(DaprComponentResiliencyPolicyConfigurationArgs.builder()
 *                 .httpRetryPolicy(DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs.builder()
 *                     .maxRetries(5)
 *                     .retryBackOff(DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs.builder()
 *                         .initialDelayInMilliseconds(100)
 *                         .maxIntervalInMilliseconds(30000)
 *                         .build())
 *                     .build())
 *                 .timeoutPolicy(DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs.builder()
 *                     .responseTimeoutInSeconds(12)
 *                     .build())
 *                 .build())
 *             .resourceGroupName("examplerg")
 *             .build());
 *     }
 * }
 * ```
 * ### Create or update dapr component resiliency policy with sparse options
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var daprComponentResiliencyPolicy = new AzureNative.App.DaprComponentResiliencyPolicy("daprComponentResiliencyPolicy", new()
 *     {
 *         ComponentName = "mydaprcomponent",
 *         EnvironmentName = "myenvironment",
 *         InboundPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyConfigurationArgs
 *         {
 *             HttpRetryPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs
 *             {
 *                 MaxRetries = 5,
 *                 RetryBackOff = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs
 *                 {
 *                     InitialDelayInMilliseconds = 2000,
 *                     MaxIntervalInMilliseconds = 5500,
 *                 },
 *             },
 *         },
 *         Name = "myresiliencypolicy",
 *         OutboundPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyConfigurationArgs
 *         {
 *             TimeoutPolicy = new AzureNative.App.Inputs.DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs
 *             {
 *                 ResponseTimeoutInSeconds = 12,
 *             },
 *         },
 *         ResourceGroupName = "examplerg",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	app "github.com/pulumi/pulumi-azure-native-sdk/app/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := app.NewDaprComponentResiliencyPolicy(ctx, "daprComponentResiliencyPolicy", &app.DaprComponentResiliencyPolicyArgs{
 * 			ComponentName:   pulumi.String("mydaprcomponent"),
 * 			EnvironmentName: pulumi.String("myenvironment"),
 * 			InboundPolicy: &app.DaprComponentResiliencyPolicyConfigurationArgs{
 * 				HttpRetryPolicy: &app.DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs{
 * 					MaxRetries: pulumi.Int(5),
 * 					RetryBackOff: &app.DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs{
 * 						InitialDelayInMilliseconds: pulumi.Int(2000),
 * 						MaxIntervalInMilliseconds:  pulumi.Int(5500),
 * 					},
 * 				},
 * 			},
 * 			Name: pulumi.String("myresiliencypolicy"),
 * 			OutboundPolicy: &app.DaprComponentResiliencyPolicyConfigurationArgs{
 * 				TimeoutPolicy: &app.DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs{
 * 					ResponseTimeoutInSeconds: pulumi.Int(12),
 * 				},
 * 			},
 * 			ResourceGroupName: pulumi.String("examplerg"),
 * 		})
 * 		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.app.DaprComponentResiliencyPolicy;
 * import com.pulumi.azurenative.app.DaprComponentResiliencyPolicyArgs;
 * import com.pulumi.azurenative.app.inputs.DaprComponentResiliencyPolicyConfigurationArgs;
 * import com.pulumi.azurenative.app.inputs.DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs;
 * import com.pulumi.azurenative.app.inputs.DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs;
 * import com.pulumi.azurenative.app.inputs.DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs;
 * 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 daprComponentResiliencyPolicy = new DaprComponentResiliencyPolicy("daprComponentResiliencyPolicy", DaprComponentResiliencyPolicyArgs.builder()
 *             .componentName("mydaprcomponent")
 *             .environmentName("myenvironment")
 *             .inboundPolicy(DaprComponentResiliencyPolicyConfigurationArgs.builder()
 *                 .httpRetryPolicy(DaprComponentResiliencyPolicyHttpRetryPolicyConfigurationArgs.builder()
 *                     .maxRetries(5)
 *                     .retryBackOff(DaprComponentResiliencyPolicyHttpRetryBackOffConfigurationArgs.builder()
 *                         .initialDelayInMilliseconds(2000)
 *                         .maxIntervalInMilliseconds(5500)
 *                         .build())
 *                     .build())
 *                 .build())
 *             .name("myresiliencypolicy")
 *             .outboundPolicy(DaprComponentResiliencyPolicyConfigurationArgs.builder()
 *                 .timeoutPolicy(DaprComponentResiliencyPolicyTimeoutPolicyConfigurationArgs.builder()
 *                     .responseTimeoutInSeconds(12)
 *                     .build())
 *                 .build())
 *             .resourceGroupName("examplerg")
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:app:DaprComponentResiliencyPolicy myresiliencypolicy /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{componentName}/resiliencyPolicies/{name}
 * ```
 * @property componentName Name of the Dapr Component.
 * @property environmentName Name of the Managed Environment.
 * @property inboundPolicy The optional inbound component resiliency policy configuration
 * @property name Name of the Dapr Component Resiliency Policy.
 * @property outboundPolicy The optional outbound component resiliency policy configuration
 * @property resourceGroupName The name of the resource group. The name is case insensitive.
 */
public data class DaprComponentResiliencyPolicyArgs(
    public val componentName: Output? = null,
    public val environmentName: Output? = null,
    public val inboundPolicy: Output? = null,
    public val name: Output? = null,
    public val outboundPolicy: Output? = null,
    public val resourceGroupName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.app.DaprComponentResiliencyPolicyArgs =
        com.pulumi.azurenative.app.DaprComponentResiliencyPolicyArgs.builder()
            .componentName(componentName?.applyValue({ args0 -> args0 }))
            .environmentName(environmentName?.applyValue({ args0 -> args0 }))
            .inboundPolicy(inboundPolicy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .outboundPolicy(outboundPolicy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DaprComponentResiliencyPolicyArgs].
 */
@PulumiTagMarker
public class DaprComponentResiliencyPolicyArgsBuilder internal constructor() {
    private var componentName: Output? = null

    private var environmentName: Output? = null

    private var inboundPolicy: Output? = null

    private var name: Output? = null

    private var outboundPolicy: Output? = null

    private var resourceGroupName: Output? = null

    /**
     * @param value Name of the Dapr Component.
     */
    @JvmName("amwklroqdqnhxyqk")
    public suspend fun componentName(`value`: Output) {
        this.componentName = value
    }

    /**
     * @param value Name of the Managed Environment.
     */
    @JvmName("wqghtfpbwaefcbjx")
    public suspend fun environmentName(`value`: Output) {
        this.environmentName = value
    }

    /**
     * @param value The optional inbound component resiliency policy configuration
     */
    @JvmName("ffkefaoddpycmjco")
    public suspend fun inboundPolicy(`value`: Output) {
        this.inboundPolicy = value
    }

    /**
     * @param value Name of the Dapr Component Resiliency Policy.
     */
    @JvmName("ipusrhcbbtweslpb")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The optional outbound component resiliency policy configuration
     */
    @JvmName("qkwjhyimttjqpyle")
    public suspend fun outboundPolicy(`value`: Output) {
        this.outboundPolicy = value
    }

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

    /**
     * @param value Name of the Dapr Component.
     */
    @JvmName("rsqvdicygkqgqimy")
    public suspend fun componentName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.componentName = mapped
    }

    /**
     * @param value Name of the Managed Environment.
     */
    @JvmName("wvkmxrbrvabmfebs")
    public suspend fun environmentName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.environmentName = mapped
    }

    /**
     * @param value The optional inbound component resiliency policy configuration
     */
    @JvmName("uwydcybdqqltjakw")
    public suspend fun inboundPolicy(`value`: DaprComponentResiliencyPolicyConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.inboundPolicy = mapped
    }

    /**
     * @param argument The optional inbound component resiliency policy configuration
     */
    @JvmName("pmugexydjrsgoktn")
    public suspend fun inboundPolicy(argument: suspend DaprComponentResiliencyPolicyConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = DaprComponentResiliencyPolicyConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.inboundPolicy = mapped
    }

    /**
     * @param value Name of the Dapr Component Resiliency Policy.
     */
    @JvmName("qhrticmgtooceldy")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The optional outbound component resiliency policy configuration
     */
    @JvmName("kkfsdefilsxxgocx")
    public suspend fun outboundPolicy(`value`: DaprComponentResiliencyPolicyConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.outboundPolicy = mapped
    }

    /**
     * @param argument The optional outbound component resiliency policy configuration
     */
    @JvmName("gicstbheywkvtnwh")
    public suspend fun outboundPolicy(argument: suspend DaprComponentResiliencyPolicyConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = DaprComponentResiliencyPolicyConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.outboundPolicy = mapped
    }

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

    internal fun build(): DaprComponentResiliencyPolicyArgs = DaprComponentResiliencyPolicyArgs(
        componentName = componentName,
        environmentName = environmentName,
        inboundPolicy = inboundPolicy,
        name = name,
        outboundPolicy = outboundPolicy,
        resourceGroupName = resourceGroupName,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy