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

com.pulumi.azure.siterecovery.kotlin.ProtectionContainerMappingArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.siterecovery.kotlin

import com.pulumi.azure.siterecovery.ProtectionContainerMappingArgs.builder
import com.pulumi.azure.siterecovery.kotlin.inputs.ProtectionContainerMappingAutomaticUpdateArgs
import com.pulumi.azure.siterecovery.kotlin.inputs.ProtectionContainerMappingAutomaticUpdateArgsBuilder
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

/**
 * Manages a Azure recovery vault protection container mapping. A protection container mapping decides how to translate the protection container when a VM is migrated from one region to another.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const primary = new azure.core.ResourceGroup("primary", {
 *     name: "tfex-network-mapping-primary",
 *     location: "West US",
 * });
 * const secondary = new azure.core.ResourceGroup("secondary", {
 *     name: "tfex-network-mapping-secondary",
 *     location: "East US",
 * });
 * const vault = new azure.recoveryservices.Vault("vault", {
 *     name: "example-recovery-vault",
 *     location: secondary.location,
 *     resourceGroupName: secondary.name,
 *     sku: "Standard",
 * });
 * const primaryFabric = new azure.siterecovery.Fabric("primary", {
 *     name: "primary-fabric",
 *     resourceGroupName: secondary.name,
 *     recoveryVaultName: vault.name,
 *     location: primary.location,
 * });
 * const secondaryFabric = new azure.siterecovery.Fabric("secondary", {
 *     name: "secondary-fabric",
 *     resourceGroupName: secondary.name,
 *     recoveryVaultName: vault.name,
 *     location: secondary.location,
 * });
 * const primaryProtectionContainer = new azure.siterecovery.ProtectionContainer("primary", {
 *     name: "primary-protection-container",
 *     resourceGroupName: secondary.name,
 *     recoveryVaultName: vault.name,
 *     recoveryFabricName: primaryFabric.name,
 * });
 * const secondaryProtectionContainer = new azure.siterecovery.ProtectionContainer("secondary", {
 *     name: "secondary-protection-container",
 *     resourceGroupName: secondary.name,
 *     recoveryVaultName: vault.name,
 *     recoveryFabricName: secondaryFabric.name,
 * });
 * const policy = new azure.siterecovery.ReplicationPolicy("policy", {
 *     name: "policy",
 *     resourceGroupName: secondary.name,
 *     recoveryVaultName: vault.name,
 *     recoveryPointRetentionInMinutes: 24 * 60,
 *     applicationConsistentSnapshotFrequencyInMinutes: 4 * 60,
 * });
 * const container_mapping = new azure.siterecovery.ProtectionContainerMapping("container-mapping", {
 *     name: "container-mapping",
 *     resourceGroupName: secondary.name,
 *     recoveryVaultName: vault.name,
 *     recoveryFabricName: primaryFabric.name,
 *     recoverySourceProtectionContainerName: primaryProtectionContainer.name,
 *     recoveryTargetProtectionContainerId: secondaryProtectionContainer.id,
 *     recoveryReplicationPolicyId: policy.id,
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * primary = azure.core.ResourceGroup("primary",
 *     name="tfex-network-mapping-primary",
 *     location="West US")
 * secondary = azure.core.ResourceGroup("secondary",
 *     name="tfex-network-mapping-secondary",
 *     location="East US")
 * vault = azure.recoveryservices.Vault("vault",
 *     name="example-recovery-vault",
 *     location=secondary.location,
 *     resource_group_name=secondary.name,
 *     sku="Standard")
 * primary_fabric = azure.siterecovery.Fabric("primary",
 *     name="primary-fabric",
 *     resource_group_name=secondary.name,
 *     recovery_vault_name=vault.name,
 *     location=primary.location)
 * secondary_fabric = azure.siterecovery.Fabric("secondary",
 *     name="secondary-fabric",
 *     resource_group_name=secondary.name,
 *     recovery_vault_name=vault.name,
 *     location=secondary.location)
 * primary_protection_container = azure.siterecovery.ProtectionContainer("primary",
 *     name="primary-protection-container",
 *     resource_group_name=secondary.name,
 *     recovery_vault_name=vault.name,
 *     recovery_fabric_name=primary_fabric.name)
 * secondary_protection_container = azure.siterecovery.ProtectionContainer("secondary",
 *     name="secondary-protection-container",
 *     resource_group_name=secondary.name,
 *     recovery_vault_name=vault.name,
 *     recovery_fabric_name=secondary_fabric.name)
 * policy = azure.siterecovery.ReplicationPolicy("policy",
 *     name="policy",
 *     resource_group_name=secondary.name,
 *     recovery_vault_name=vault.name,
 *     recovery_point_retention_in_minutes=24 * 60,
 *     application_consistent_snapshot_frequency_in_minutes=4 * 60)
 * container_mapping = azure.siterecovery.ProtectionContainerMapping("container-mapping",
 *     name="container-mapping",
 *     resource_group_name=secondary.name,
 *     recovery_vault_name=vault.name,
 *     recovery_fabric_name=primary_fabric.name,
 *     recovery_source_protection_container_name=primary_protection_container.name,
 *     recovery_target_protection_container_id=secondary_protection_container.id,
 *     recovery_replication_policy_id=policy.id)
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var primary = new Azure.Core.ResourceGroup("primary", new()
 *     {
 *         Name = "tfex-network-mapping-primary",
 *         Location = "West US",
 *     });
 *     var secondary = new Azure.Core.ResourceGroup("secondary", new()
 *     {
 *         Name = "tfex-network-mapping-secondary",
 *         Location = "East US",
 *     });
 *     var vault = new Azure.RecoveryServices.Vault("vault", new()
 *     {
 *         Name = "example-recovery-vault",
 *         Location = secondary.Location,
 *         ResourceGroupName = secondary.Name,
 *         Sku = "Standard",
 *     });
 *     var primaryFabric = new Azure.SiteRecovery.Fabric("primary", new()
 *     {
 *         Name = "primary-fabric",
 *         ResourceGroupName = secondary.Name,
 *         RecoveryVaultName = vault.Name,
 *         Location = primary.Location,
 *     });
 *     var secondaryFabric = new Azure.SiteRecovery.Fabric("secondary", new()
 *     {
 *         Name = "secondary-fabric",
 *         ResourceGroupName = secondary.Name,
 *         RecoveryVaultName = vault.Name,
 *         Location = secondary.Location,
 *     });
 *     var primaryProtectionContainer = new Azure.SiteRecovery.ProtectionContainer("primary", new()
 *     {
 *         Name = "primary-protection-container",
 *         ResourceGroupName = secondary.Name,
 *         RecoveryVaultName = vault.Name,
 *         RecoveryFabricName = primaryFabric.Name,
 *     });
 *     var secondaryProtectionContainer = new Azure.SiteRecovery.ProtectionContainer("secondary", new()
 *     {
 *         Name = "secondary-protection-container",
 *         ResourceGroupName = secondary.Name,
 *         RecoveryVaultName = vault.Name,
 *         RecoveryFabricName = secondaryFabric.Name,
 *     });
 *     var policy = new Azure.SiteRecovery.ReplicationPolicy("policy", new()
 *     {
 *         Name = "policy",
 *         ResourceGroupName = secondary.Name,
 *         RecoveryVaultName = vault.Name,
 *         RecoveryPointRetentionInMinutes = 24 * 60,
 *         ApplicationConsistentSnapshotFrequencyInMinutes = 4 * 60,
 *     });
 *     var container_mapping = new Azure.SiteRecovery.ProtectionContainerMapping("container-mapping", new()
 *     {
 *         Name = "container-mapping",
 *         ResourceGroupName = secondary.Name,
 *         RecoveryVaultName = vault.Name,
 *         RecoveryFabricName = primaryFabric.Name,
 *         RecoverySourceProtectionContainerName = primaryProtectionContainer.Name,
 *         RecoveryTargetProtectionContainerId = secondaryProtectionContainer.Id,
 *         RecoveryReplicationPolicyId = policy.Id,
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/recoveryservices"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/siterecovery"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		primary, err := core.NewResourceGroup(ctx, "primary", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("tfex-network-mapping-primary"),
 * 			Location: pulumi.String("West US"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		secondary, err := core.NewResourceGroup(ctx, "secondary", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("tfex-network-mapping-secondary"),
 * 			Location: pulumi.String("East US"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		vault, err := recoveryservices.NewVault(ctx, "vault", &recoveryservices.VaultArgs{
 * 			Name:              pulumi.String("example-recovery-vault"),
 * 			Location:          secondary.Location,
 * 			ResourceGroupName: secondary.Name,
 * 			Sku:               pulumi.String("Standard"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		primaryFabric, err := siterecovery.NewFabric(ctx, "primary", &siterecovery.FabricArgs{
 * 			Name:              pulumi.String("primary-fabric"),
 * 			ResourceGroupName: secondary.Name,
 * 			RecoveryVaultName: vault.Name,
 * 			Location:          primary.Location,
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		secondaryFabric, err := siterecovery.NewFabric(ctx, "secondary", &siterecovery.FabricArgs{
 * 			Name:              pulumi.String("secondary-fabric"),
 * 			ResourceGroupName: secondary.Name,
 * 			RecoveryVaultName: vault.Name,
 * 			Location:          secondary.Location,
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		primaryProtectionContainer, err := siterecovery.NewProtectionContainer(ctx, "primary", &siterecovery.ProtectionContainerArgs{
 * 			Name:               pulumi.String("primary-protection-container"),
 * 			ResourceGroupName:  secondary.Name,
 * 			RecoveryVaultName:  vault.Name,
 * 			RecoveryFabricName: primaryFabric.Name,
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		secondaryProtectionContainer, err := siterecovery.NewProtectionContainer(ctx, "secondary", &siterecovery.ProtectionContainerArgs{
 * 			Name:               pulumi.String("secondary-protection-container"),
 * 			ResourceGroupName:  secondary.Name,
 * 			RecoveryVaultName:  vault.Name,
 * 			RecoveryFabricName: secondaryFabric.Name,
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		policy, err := siterecovery.NewReplicationPolicy(ctx, "policy", &siterecovery.ReplicationPolicyArgs{
 * 			Name:                            pulumi.String("policy"),
 * 			ResourceGroupName:               secondary.Name,
 * 			RecoveryVaultName:               vault.Name,
 * 			RecoveryPointRetentionInMinutes: 24 * 60,
 * 			ApplicationConsistentSnapshotFrequencyInMinutes: 4 * 60,
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = siterecovery.NewProtectionContainerMapping(ctx, "container-mapping", &siterecovery.ProtectionContainerMappingArgs{
 * 			Name:                                  pulumi.String("container-mapping"),
 * 			ResourceGroupName:                     secondary.Name,
 * 			RecoveryVaultName:                     vault.Name,
 * 			RecoveryFabricName:                    primaryFabric.Name,
 * 			RecoverySourceProtectionContainerName: primaryProtectionContainer.Name,
 * 			RecoveryTargetProtectionContainerId:   secondaryProtectionContainer.ID(),
 * 			RecoveryReplicationPolicyId:           policy.ID(),
 * 		})
 * 		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.recoveryservices.Vault;
 * import com.pulumi.azure.recoveryservices.VaultArgs;
 * import com.pulumi.azure.siterecovery.Fabric;
 * import com.pulumi.azure.siterecovery.FabricArgs;
 * import com.pulumi.azure.siterecovery.ProtectionContainer;
 * import com.pulumi.azure.siterecovery.ProtectionContainerArgs;
 * import com.pulumi.azure.siterecovery.ReplicationPolicy;
 * import com.pulumi.azure.siterecovery.ReplicationPolicyArgs;
 * import com.pulumi.azure.siterecovery.ProtectionContainerMapping;
 * import com.pulumi.azure.siterecovery.ProtectionContainerMappingArgs;
 * 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 primary = new ResourceGroup("primary", ResourceGroupArgs.builder()
 *             .name("tfex-network-mapping-primary")
 *             .location("West US")
 *             .build());
 *         var secondary = new ResourceGroup("secondary", ResourceGroupArgs.builder()
 *             .name("tfex-network-mapping-secondary")
 *             .location("East US")
 *             .build());
 *         var vault = new Vault("vault", VaultArgs.builder()
 *             .name("example-recovery-vault")
 *             .location(secondary.location())
 *             .resourceGroupName(secondary.name())
 *             .sku("Standard")
 *             .build());
 *         var primaryFabric = new Fabric("primaryFabric", FabricArgs.builder()
 *             .name("primary-fabric")
 *             .resourceGroupName(secondary.name())
 *             .recoveryVaultName(vault.name())
 *             .location(primary.location())
 *             .build());
 *         var secondaryFabric = new Fabric("secondaryFabric", FabricArgs.builder()
 *             .name("secondary-fabric")
 *             .resourceGroupName(secondary.name())
 *             .recoveryVaultName(vault.name())
 *             .location(secondary.location())
 *             .build());
 *         var primaryProtectionContainer = new ProtectionContainer("primaryProtectionContainer", ProtectionContainerArgs.builder()
 *             .name("primary-protection-container")
 *             .resourceGroupName(secondary.name())
 *             .recoveryVaultName(vault.name())
 *             .recoveryFabricName(primaryFabric.name())
 *             .build());
 *         var secondaryProtectionContainer = new ProtectionContainer("secondaryProtectionContainer", ProtectionContainerArgs.builder()
 *             .name("secondary-protection-container")
 *             .resourceGroupName(secondary.name())
 *             .recoveryVaultName(vault.name())
 *             .recoveryFabricName(secondaryFabric.name())
 *             .build());
 *         var policy = new ReplicationPolicy("policy", ReplicationPolicyArgs.builder()
 *             .name("policy")
 *             .resourceGroupName(secondary.name())
 *             .recoveryVaultName(vault.name())
 *             .recoveryPointRetentionInMinutes(24 * 60)
 *             .applicationConsistentSnapshotFrequencyInMinutes(4 * 60)
 *             .build());
 *         var container_mapping = new ProtectionContainerMapping("container-mapping", ProtectionContainerMappingArgs.builder()
 *             .name("container-mapping")
 *             .resourceGroupName(secondary.name())
 *             .recoveryVaultName(vault.name())
 *             .recoveryFabricName(primaryFabric.name())
 *             .recoverySourceProtectionContainerName(primaryProtectionContainer.name())
 *             .recoveryTargetProtectionContainerId(secondaryProtectionContainer.id())
 *             .recoveryReplicationPolicyId(policy.id())
 *             .build());
 *     }
 * }
 * ```
 * 
 * ## Import
 * Site Recovery Protection Container Mappings can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:siterecovery/protectionContainerMapping:ProtectionContainerMapping mymapping /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource-group-name/providers/Microsoft.RecoveryServices/vaults/recovery-vault-name/replicationFabrics/fabric1/replicationProtectionContainers/container1/replicationProtectionContainerMappings/mapping1
 * ```
 * @property automaticUpdate a `automatic_update` block defined as below.
 * @property name The name of the protection container mapping. Changing this forces a new resource to be created.
 * @property recoveryFabricName Name of fabric that should contains the protection container to map. Changing this forces a new resource to be created.
 * @property recoveryReplicationPolicyId Id of the policy to use for this mapping. Changing this forces a new resource to be created.
 * @property recoverySourceProtectionContainerName Name of the source protection container to map. Changing this forces a new resource to be created.
 * @property recoveryTargetProtectionContainerId Id of target protection container to map to. Changing this forces a new resource to be created.
 * @property recoveryVaultName The name of the vault that should be updated. Changing this forces a new resource to be created.
 * @property resourceGroupName Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.
 */
public data class ProtectionContainerMappingArgs(
    public val automaticUpdate: Output? = null,
    public val name: Output? = null,
    public val recoveryFabricName: Output? = null,
    public val recoveryReplicationPolicyId: Output? = null,
    public val recoverySourceProtectionContainerName: Output? = null,
    public val recoveryTargetProtectionContainerId: Output? = null,
    public val recoveryVaultName: Output? = null,
    public val resourceGroupName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.siterecovery.ProtectionContainerMappingArgs =
        com.pulumi.azure.siterecovery.ProtectionContainerMappingArgs.builder()
            .automaticUpdate(automaticUpdate?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .recoveryFabricName(recoveryFabricName?.applyValue({ args0 -> args0 }))
            .recoveryReplicationPolicyId(recoveryReplicationPolicyId?.applyValue({ args0 -> args0 }))
            .recoverySourceProtectionContainerName(
                recoverySourceProtectionContainerName?.applyValue({ args0 ->
                    args0
                }),
            )
            .recoveryTargetProtectionContainerId(
                recoveryTargetProtectionContainerId?.applyValue({ args0 ->
                    args0
                }),
            )
            .recoveryVaultName(recoveryVaultName?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ProtectionContainerMappingArgs].
 */
@PulumiTagMarker
public class ProtectionContainerMappingArgsBuilder internal constructor() {
    private var automaticUpdate: Output? = null

    private var name: Output? = null

    private var recoveryFabricName: Output? = null

    private var recoveryReplicationPolicyId: Output? = null

    private var recoverySourceProtectionContainerName: Output? = null

    private var recoveryTargetProtectionContainerId: Output? = null

    private var recoveryVaultName: Output? = null

    private var resourceGroupName: Output? = null

    /**
     * @param value a `automatic_update` block defined as below.
     */
    @JvmName("mgbjmdxgkkgoxxte")
    public suspend
    fun automaticUpdate(`value`: Output) {
        this.automaticUpdate = value
    }

    /**
     * @param value The name of the protection container mapping. Changing this forces a new resource to be created.
     */
    @JvmName("rnuuhliveeqaqmkb")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Name of fabric that should contains the protection container to map. Changing this forces a new resource to be created.
     */
    @JvmName("sgpoddxqqnodsihc")
    public suspend fun recoveryFabricName(`value`: Output) {
        this.recoveryFabricName = value
    }

    /**
     * @param value Id of the policy to use for this mapping. Changing this forces a new resource to be created.
     */
    @JvmName("nqcfcjfoeyrfbsmd")
    public suspend fun recoveryReplicationPolicyId(`value`: Output) {
        this.recoveryReplicationPolicyId = value
    }

    /**
     * @param value Name of the source protection container to map. Changing this forces a new resource to be created.
     */
    @JvmName("fkbhffvruquexmxh")
    public suspend fun recoverySourceProtectionContainerName(`value`: Output) {
        this.recoverySourceProtectionContainerName = value
    }

    /**
     * @param value Id of target protection container to map to. Changing this forces a new resource to be created.
     */
    @JvmName("crwqgaeobxhoconp")
    public suspend fun recoveryTargetProtectionContainerId(`value`: Output) {
        this.recoveryTargetProtectionContainerId = value
    }

    /**
     * @param value The name of the vault that should be updated. Changing this forces a new resource to be created.
     */
    @JvmName("vwjfhltbtfxoqpfa")
    public suspend fun recoveryVaultName(`value`: Output) {
        this.recoveryVaultName = value
    }

    /**
     * @param value Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.
     */
    @JvmName("ypginvojtjkjgaor")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value a `automatic_update` block defined as below.
     */
    @JvmName("gigkhtdifoybswlj")
    public suspend fun automaticUpdate(`value`: ProtectionContainerMappingAutomaticUpdateArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.automaticUpdate = mapped
    }

    /**
     * @param argument a `automatic_update` block defined as below.
     */
    @JvmName("ndxduxpclashxxrt")
    public suspend
    fun automaticUpdate(argument: suspend ProtectionContainerMappingAutomaticUpdateArgsBuilder.() -> Unit) {
        val toBeMapped = ProtectionContainerMappingAutomaticUpdateArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.automaticUpdate = mapped
    }

    /**
     * @param value The name of the protection container mapping. Changing this forces a new resource to be created.
     */
    @JvmName("owfijqqgrnywvram")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Name of fabric that should contains the protection container to map. Changing this forces a new resource to be created.
     */
    @JvmName("pntrmumojxguqwuk")
    public suspend fun recoveryFabricName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.recoveryFabricName = mapped
    }

    /**
     * @param value Id of the policy to use for this mapping. Changing this forces a new resource to be created.
     */
    @JvmName("topvhphbjarfeugd")
    public suspend fun recoveryReplicationPolicyId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.recoveryReplicationPolicyId = mapped
    }

    /**
     * @param value Name of the source protection container to map. Changing this forces a new resource to be created.
     */
    @JvmName("aehhsqnegilxughp")
    public suspend fun recoverySourceProtectionContainerName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.recoverySourceProtectionContainerName = mapped
    }

    /**
     * @param value Id of target protection container to map to. Changing this forces a new resource to be created.
     */
    @JvmName("jaxuvsdyjagysbgy")
    public suspend fun recoveryTargetProtectionContainerId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.recoveryTargetProtectionContainerId = mapped
    }

    /**
     * @param value The name of the vault that should be updated. Changing this forces a new resource to be created.
     */
    @JvmName("wxqaiuhxftoruccx")
    public suspend fun recoveryVaultName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.recoveryVaultName = mapped
    }

    /**
     * @param value Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.
     */
    @JvmName("qssjykrulyxlklbc")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    internal fun build(): ProtectionContainerMappingArgs = ProtectionContainerMappingArgs(
        automaticUpdate = automaticUpdate,
        name = name,
        recoveryFabricName = recoveryFabricName,
        recoveryReplicationPolicyId = recoveryReplicationPolicyId,
        recoverySourceProtectionContainerName = recoverySourceProtectionContainerName,
        recoveryTargetProtectionContainerId = recoveryTargetProtectionContainerId,
        recoveryVaultName = recoveryVaultName,
        resourceGroupName = resourceGroupName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy