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

com.pulumi.azure.siterecovery.kotlin.VmwareReplicatedVmArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.siterecovery.kotlin

import com.pulumi.azure.siterecovery.VmwareReplicatedVmArgs.builder
import com.pulumi.azure.siterecovery.kotlin.inputs.VmwareReplicatedVmManagedDiskArgs
import com.pulumi.azure.siterecovery.kotlin.inputs.VmwareReplicatedVmManagedDiskArgsBuilder
import com.pulumi.azure.siterecovery.kotlin.inputs.VmwareReplicatedVmNetworkInterfaceArgs
import com.pulumi.azure.siterecovery.kotlin.inputs.VmwareReplicatedVmNetworkInterfaceArgsBuilder
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.collections.List
import kotlin.jvm.JvmName

/**
 * Manages a VMWare replicated VM using Azure Site Recovery (VMWare to Azure only). A replicated VM keeps a copiously updated image of the VM in Azure in order to be able to start the VM in Azure in case of a disaster.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-rg",
 *     location: "West US",
 * });
 * const exampleVault = new azure.recoveryservices.Vault("example", {
 *     name: "example-recovery-vault",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     sku: "Standard",
 * });
 * const exampleVMWareReplicationPolicy = new azure.siterecovery.VMWareReplicationPolicy("example", {
 *     recoveryVaultId: exampleVault.id,
 *     name: "example-policy",
 *     recoveryPointRetentionInMinutes: 1440,
 *     applicationConsistentSnapshotFrequencyInMinutes: 240,
 * });
 * const test = new azure.siterecovery.VmwareReplicationPolicyAssociation("test", {
 *     name: "example-association",
 *     recoveryVaultId: exampleVault.id,
 *     policyId: exampleVMWareReplicationPolicy.id,
 * });
 * const exampleAccount = new azure.storage.Account("example", {
 *     name: "examplestorageacc",
 *     resourceGroupName: example.name,
 *     location: example.location,
 *     accountTier: "Standard",
 *     accountKind: "StorageV2",
 *     accountReplicationType: "LRS",
 * });
 * const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
 *     name: "example-net",
 *     resourceGroupName: example.name,
 *     addressSpaces: ["192.168.2.0/24"],
 *     location: example.location,
 * });
 * const exampleSubnet = new azure.network.Subnet("example", {
 *     name: "example-subnet",
 *     resourceGroupName: example.name,
 *     virtualNetworkName: exampleVirtualNetwork.name,
 *     addressPrefixes: ["192.168.2.0/24"],
 * });
 * const exampleVmwareReplicatedVm = new azure.siterecovery.VmwareReplicatedVm("example", {
 *     name: "example-vmware-vm",
 *     recoveryVaultId: exampleVault.id,
 *     sourceVmName: "example-vm",
 *     applianceName: "example-appliance",
 *     recoveryReplicationPolicyId: exampleAzurermSiteRecoveryVmwareReplicationPolicyAssociation.policyId,
 *     physicalServerCredentialName: "example-creds",
 *     licenseType: "NotSpecified",
 *     targetBootDiagnosticsStorageAccountId: exampleAccount.id,
 *     targetVmName: "example_replicated_vm",
 *     targetResourceGroupId: example.id,
 *     defaultLogStorageAccountId: exampleAccount.id,
 *     defaultRecoveryDiskType: "Standard_LRS",
 *     targetNetworkId: exampleVirtualNetwork.id,
 *     networkInterfaces: [{
 *         sourceMacAddress: "00:00:00:00:00:00",
 *         targetSubnetName: exampleSubnet.name,
 *         isPrimary: true,
 *     }],
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="example-rg",
 *     location="West US")
 * example_vault = azure.recoveryservices.Vault("example",
 *     name="example-recovery-vault",
 *     location=example.location,
 *     resource_group_name=example.name,
 *     sku="Standard")
 * example_vm_ware_replication_policy = azure.siterecovery.VMWareReplicationPolicy("example",
 *     recovery_vault_id=example_vault.id,
 *     name="example-policy",
 *     recovery_point_retention_in_minutes=1440,
 *     application_consistent_snapshot_frequency_in_minutes=240)
 * test = azure.siterecovery.VmwareReplicationPolicyAssociation("test",
 *     name="example-association",
 *     recovery_vault_id=example_vault.id,
 *     policy_id=example_vm_ware_replication_policy.id)
 * example_account = azure.storage.Account("example",
 *     name="examplestorageacc",
 *     resource_group_name=example.name,
 *     location=example.location,
 *     account_tier="Standard",
 *     account_kind="StorageV2",
 *     account_replication_type="LRS")
 * example_virtual_network = azure.network.VirtualNetwork("example",
 *     name="example-net",
 *     resource_group_name=example.name,
 *     address_spaces=["192.168.2.0/24"],
 *     location=example.location)
 * example_subnet = azure.network.Subnet("example",
 *     name="example-subnet",
 *     resource_group_name=example.name,
 *     virtual_network_name=example_virtual_network.name,
 *     address_prefixes=["192.168.2.0/24"])
 * example_vmware_replicated_vm = azure.siterecovery.VmwareReplicatedVm("example",
 *     name="example-vmware-vm",
 *     recovery_vault_id=example_vault.id,
 *     source_vm_name="example-vm",
 *     appliance_name="example-appliance",
 *     recovery_replication_policy_id=example_azurerm_site_recovery_vmware_replication_policy_association["policyId"],
 *     physical_server_credential_name="example-creds",
 *     license_type="NotSpecified",
 *     target_boot_diagnostics_storage_account_id=example_account.id,
 *     target_vm_name="example_replicated_vm",
 *     target_resource_group_id=example.id,
 *     default_log_storage_account_id=example_account.id,
 *     default_recovery_disk_type="Standard_LRS",
 *     target_network_id=example_virtual_network.id,
 *     network_interfaces=[{
 *         "source_mac_address": "00:00:00:00:00:00",
 *         "target_subnet_name": example_subnet.name,
 *         "is_primary": True,
 *     }])
 * ```
 * ```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-rg",
 *         Location = "West US",
 *     });
 *     var exampleVault = new Azure.RecoveryServices.Vault("example", new()
 *     {
 *         Name = "example-recovery-vault",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         Sku = "Standard",
 *     });
 *     var exampleVMWareReplicationPolicy = new Azure.SiteRecovery.VMWareReplicationPolicy("example", new()
 *     {
 *         RecoveryVaultId = exampleVault.Id,
 *         Name = "example-policy",
 *         RecoveryPointRetentionInMinutes = 1440,
 *         ApplicationConsistentSnapshotFrequencyInMinutes = 240,
 *     });
 *     var test = new Azure.SiteRecovery.VmwareReplicationPolicyAssociation("test", new()
 *     {
 *         Name = "example-association",
 *         RecoveryVaultId = exampleVault.Id,
 *         PolicyId = exampleVMWareReplicationPolicy.Id,
 *     });
 *     var exampleAccount = new Azure.Storage.Account("example", new()
 *     {
 *         Name = "examplestorageacc",
 *         ResourceGroupName = example.Name,
 *         Location = example.Location,
 *         AccountTier = "Standard",
 *         AccountKind = "StorageV2",
 *         AccountReplicationType = "LRS",
 *     });
 *     var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("example", new()
 *     {
 *         Name = "example-net",
 *         ResourceGroupName = example.Name,
 *         AddressSpaces = new[]
 *         {
 *             "192.168.2.0/24",
 *         },
 *         Location = example.Location,
 *     });
 *     var exampleSubnet = new Azure.Network.Subnet("example", new()
 *     {
 *         Name = "example-subnet",
 *         ResourceGroupName = example.Name,
 *         VirtualNetworkName = exampleVirtualNetwork.Name,
 *         AddressPrefixes = new[]
 *         {
 *             "192.168.2.0/24",
 *         },
 *     });
 *     var exampleVmwareReplicatedVm = new Azure.SiteRecovery.VmwareReplicatedVm("example", new()
 *     {
 *         Name = "example-vmware-vm",
 *         RecoveryVaultId = exampleVault.Id,
 *         SourceVmName = "example-vm",
 *         ApplianceName = "example-appliance",
 *         RecoveryReplicationPolicyId = exampleAzurermSiteRecoveryVmwareReplicationPolicyAssociation.PolicyId,
 *         PhysicalServerCredentialName = "example-creds",
 *         LicenseType = "NotSpecified",
 *         TargetBootDiagnosticsStorageAccountId = exampleAccount.Id,
 *         TargetVmName = "example_replicated_vm",
 *         TargetResourceGroupId = example.Id,
 *         DefaultLogStorageAccountId = exampleAccount.Id,
 *         DefaultRecoveryDiskType = "Standard_LRS",
 *         TargetNetworkId = exampleVirtualNetwork.Id,
 *         NetworkInterfaces = new[]
 *         {
 *             new Azure.SiteRecovery.Inputs.VmwareReplicatedVmNetworkInterfaceArgs
 *             {
 *                 SourceMacAddress = "00:00:00:00:00:00",
 *                 TargetSubnetName = exampleSubnet.Name,
 *                 IsPrimary = true,
 *             },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/recoveryservices"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/siterecovery"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
 * 	"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-rg"),
 * 			Location: pulumi.String("West US"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleVault, err := recoveryservices.NewVault(ctx, "example", &recoveryservices.VaultArgs{
 * 			Name:              pulumi.String("example-recovery-vault"),
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 			Sku:               pulumi.String("Standard"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleVMWareReplicationPolicy, err := siterecovery.NewVMWareReplicationPolicy(ctx, "example", &siterecovery.VMWareReplicationPolicyArgs{
 * 			RecoveryVaultId:                 exampleVault.ID(),
 * 			Name:                            pulumi.String("example-policy"),
 * 			RecoveryPointRetentionInMinutes: pulumi.Int(1440),
 * 			ApplicationConsistentSnapshotFrequencyInMinutes: pulumi.Int(240),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = siterecovery.NewVmwareReplicationPolicyAssociation(ctx, "test", &siterecovery.VmwareReplicationPolicyAssociationArgs{
 * 			Name:            pulumi.String("example-association"),
 * 			RecoveryVaultId: exampleVault.ID(),
 * 			PolicyId:        exampleVMWareReplicationPolicy.ID(),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
 * 			Name:                   pulumi.String("examplestorageacc"),
 * 			ResourceGroupName:      example.Name,
 * 			Location:               example.Location,
 * 			AccountTier:            pulumi.String("Standard"),
 * 			AccountKind:            pulumi.String("StorageV2"),
 * 			AccountReplicationType: pulumi.String("LRS"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{
 * 			Name:              pulumi.String("example-net"),
 * 			ResourceGroupName: example.Name,
 * 			AddressSpaces: pulumi.StringArray{
 * 				pulumi.String("192.168.2.0/24"),
 * 			},
 * 			Location: example.Location,
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{
 * 			Name:               pulumi.String("example-subnet"),
 * 			ResourceGroupName:  example.Name,
 * 			VirtualNetworkName: exampleVirtualNetwork.Name,
 * 			AddressPrefixes: pulumi.StringArray{
 * 				pulumi.String("192.168.2.0/24"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = siterecovery.NewVmwareReplicatedVm(ctx, "example", &siterecovery.VmwareReplicatedVmArgs{
 * 			Name:                                  pulumi.String("example-vmware-vm"),
 * 			RecoveryVaultId:                       exampleVault.ID(),
 * 			SourceVmName:                          pulumi.String("example-vm"),
 * 			ApplianceName:                         pulumi.String("example-appliance"),
 * 			RecoveryReplicationPolicyId:           pulumi.Any(exampleAzurermSiteRecoveryVmwareReplicationPolicyAssociation.PolicyId),
 * 			PhysicalServerCredentialName:          pulumi.String("example-creds"),
 * 			LicenseType:                           pulumi.String("NotSpecified"),
 * 			TargetBootDiagnosticsStorageAccountId: exampleAccount.ID(),
 * 			TargetVmName:                          pulumi.String("example_replicated_vm"),
 * 			TargetResourceGroupId:                 example.ID(),
 * 			DefaultLogStorageAccountId:            exampleAccount.ID(),
 * 			DefaultRecoveryDiskType:               pulumi.String("Standard_LRS"),
 * 			TargetNetworkId:                       exampleVirtualNetwork.ID(),
 * 			NetworkInterfaces: siterecovery.VmwareReplicatedVmNetworkInterfaceArray{
 * 				&siterecovery.VmwareReplicatedVmNetworkInterfaceArgs{
 * 					SourceMacAddress: pulumi.String("00:00:00:00:00:00"),
 * 					TargetSubnetName: exampleSubnet.Name,
 * 					IsPrimary:        pulumi.Bool(true),
 * 				},
 * 			},
 * 		})
 * 		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.VMWareReplicationPolicy;
 * import com.pulumi.azure.siterecovery.VMWareReplicationPolicyArgs;
 * import com.pulumi.azure.siterecovery.VmwareReplicationPolicyAssociation;
 * import com.pulumi.azure.siterecovery.VmwareReplicationPolicyAssociationArgs;
 * import com.pulumi.azure.storage.Account;
 * import com.pulumi.azure.storage.AccountArgs;
 * import com.pulumi.azure.network.VirtualNetwork;
 * import com.pulumi.azure.network.VirtualNetworkArgs;
 * import com.pulumi.azure.network.Subnet;
 * import com.pulumi.azure.network.SubnetArgs;
 * import com.pulumi.azure.siterecovery.VmwareReplicatedVm;
 * import com.pulumi.azure.siterecovery.VmwareReplicatedVmArgs;
 * import com.pulumi.azure.siterecovery.inputs.VmwareReplicatedVmNetworkInterfaceArgs;
 * 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-rg")
 *             .location("West US")
 *             .build());
 *         var exampleVault = new Vault("exampleVault", VaultArgs.builder()
 *             .name("example-recovery-vault")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .sku("Standard")
 *             .build());
 *         var exampleVMWareReplicationPolicy = new VMWareReplicationPolicy("exampleVMWareReplicationPolicy", VMWareReplicationPolicyArgs.builder()
 *             .recoveryVaultId(exampleVault.id())
 *             .name("example-policy")
 *             .recoveryPointRetentionInMinutes(1440)
 *             .applicationConsistentSnapshotFrequencyInMinutes(240)
 *             .build());
 *         var test = new VmwareReplicationPolicyAssociation("test", VmwareReplicationPolicyAssociationArgs.builder()
 *             .name("example-association")
 *             .recoveryVaultId(exampleVault.id())
 *             .policyId(exampleVMWareReplicationPolicy.id())
 *             .build());
 *         var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
 *             .name("examplestorageacc")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .accountTier("Standard")
 *             .accountKind("StorageV2")
 *             .accountReplicationType("LRS")
 *             .build());
 *         var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
 *             .name("example-net")
 *             .resourceGroupName(example.name())
 *             .addressSpaces("192.168.2.0/24")
 *             .location(example.location())
 *             .build());
 *         var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
 *             .name("example-subnet")
 *             .resourceGroupName(example.name())
 *             .virtualNetworkName(exampleVirtualNetwork.name())
 *             .addressPrefixes("192.168.2.0/24")
 *             .build());
 *         var exampleVmwareReplicatedVm = new VmwareReplicatedVm("exampleVmwareReplicatedVm", VmwareReplicatedVmArgs.builder()
 *             .name("example-vmware-vm")
 *             .recoveryVaultId(exampleVault.id())
 *             .sourceVmName("example-vm")
 *             .applianceName("example-appliance")
 *             .recoveryReplicationPolicyId(exampleAzurermSiteRecoveryVmwareReplicationPolicyAssociation.policyId())
 *             .physicalServerCredentialName("example-creds")
 *             .licenseType("NotSpecified")
 *             .targetBootDiagnosticsStorageAccountId(exampleAccount.id())
 *             .targetVmName("example_replicated_vm")
 *             .targetResourceGroupId(example.id())
 *             .defaultLogStorageAccountId(exampleAccount.id())
 *             .defaultRecoveryDiskType("Standard_LRS")
 *             .targetNetworkId(exampleVirtualNetwork.id())
 *             .networkInterfaces(VmwareReplicatedVmNetworkInterfaceArgs.builder()
 *                 .sourceMacAddress("00:00:00:00:00:00")
 *                 .targetSubnetName(exampleSubnet.name())
 *                 .isPrimary(true)
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-rg
 *       location: West US
 *   exampleVault:
 *     type: azure:recoveryservices:Vault
 *     name: example
 *     properties:
 *       name: example-recovery-vault
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       sku: Standard
 *   exampleVMWareReplicationPolicy:
 *     type: azure:siterecovery:VMWareReplicationPolicy
 *     name: example
 *     properties:
 *       recoveryVaultId: ${exampleVault.id}
 *       name: example-policy
 *       recoveryPointRetentionInMinutes: 1440
 *       applicationConsistentSnapshotFrequencyInMinutes: 240
 *   test:
 *     type: azure:siterecovery:VmwareReplicationPolicyAssociation
 *     properties:
 *       name: example-association
 *       recoveryVaultId: ${exampleVault.id}
 *       policyId: ${exampleVMWareReplicationPolicy.id}
 *   exampleAccount:
 *     type: azure:storage:Account
 *     name: example
 *     properties:
 *       name: examplestorageacc
 *       resourceGroupName: ${example.name}
 *       location: ${example.location}
 *       accountTier: Standard
 *       accountKind: StorageV2
 *       accountReplicationType: LRS
 *   exampleVirtualNetwork:
 *     type: azure:network:VirtualNetwork
 *     name: example
 *     properties:
 *       name: example-net
 *       resourceGroupName: ${example.name}
 *       addressSpaces:
 *         - 192.168.2.0/24
 *       location: ${example.location}
 *   exampleSubnet:
 *     type: azure:network:Subnet
 *     name: example
 *     properties:
 *       name: example-subnet
 *       resourceGroupName: ${example.name}
 *       virtualNetworkName: ${exampleVirtualNetwork.name}
 *       addressPrefixes:
 *         - 192.168.2.0/24
 *   exampleVmwareReplicatedVm:
 *     type: azure:siterecovery:VmwareReplicatedVm
 *     name: example
 *     properties:
 *       name: example-vmware-vm
 *       recoveryVaultId: ${exampleVault.id}
 *       sourceVmName: example-vm
 *       applianceName: example-appliance
 *       recoveryReplicationPolicyId: ${exampleAzurermSiteRecoveryVmwareReplicationPolicyAssociation.policyId}
 *       physicalServerCredentialName: example-creds
 *       licenseType: NotSpecified
 *       targetBootDiagnosticsStorageAccountId: ${exampleAccount.id}
 *       targetVmName: example_replicated_vm
 *       targetResourceGroupId: ${example.id}
 *       defaultLogStorageAccountId: ${exampleAccount.id}
 *       defaultRecoveryDiskType: Standard_LRS
 *       targetNetworkId: ${exampleVirtualNetwork.id}
 *       networkInterfaces:
 *         - sourceMacAddress: 00:00:00:00:00:00
 *           targetSubnetName: ${exampleSubnet.name}
 *           isPrimary: true
 * ```
 * 
 * ## Import
 * Site Recovery VMWare Replicated VM's can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:siterecovery/vmwareReplicatedVm:VmwareReplicatedVm vmreplication /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource-group-name/providers/Microsoft.RecoveryServices/vaults/recovery-vault-name/replicationFabrics/fabric-name/replicationProtectionContainers/protection-container-name/replicationProtectedItems/vm-replication-name
 * ```
 * @property applianceName The name of VMWare appliance which handles the replication. Changing this forces a new resource to be created.
 * @property defaultLogStorageAccountId The ID of the stroage account that should be used for logging during replication.
 * > **Note:** Only standard types of storage accounts are allowed.
 * > **Note:** Only one of `default_log_storage_account_id` or `managed_disk` must be specified.
 * > **Note:** Changing `default_log_storage_account_id` forces a new resource to be created. But removing it does not.
 * > **Note:** When `default_log_storage_account_id` co-exist with `managed_disk`, the value of `default_log_storage_account_id` must be as same as `log_storage_account_id` of every `managed_disk` or it forces a new resource to be created.
 * @property defaultRecoveryDiskType The type of storage account that should be used for recovery disks when a failover is done. Possible values are `Premium_LRS`, `Standard_LRS` and `StandardSSD_LRS`.
 * > **Note:** Only one of `default_recovery_disk_type` or `managed_disk` must be specified.
 * > **Note:** Changing `default_recovery_disk_type` forces a new resource to be created. But removing it does not.
 * > **Note:** When `default_recovery_disk_type` co-exist with `managed_disk`, the value of `default_recovery_disk_type` must be as same as `target_disk_type` of every `managed_disk` or it forces a new resource to be created.
 * @property defaultTargetDiskEncryptionSetId The ID of the default Disk Encryption Set that should be used for the disks when a failover is done.
 * > **Note:** Changing `default_target_disk_encryption_set_id` forces a new resource to be created. But removing it does not.
 * > **Note:** When `default_target_disk_encryption_set_id` co-exist with `managed_disk`, the value of `default_target_disk_encryption_set_id` must be as same as `target_disk_encryption_set_id` of every `managed_disk` or it forces a new resource to be created.
 * @property licenseType The license type of the VM. Possible values are `NoLicenseType`, `NotSpecified` and `WindowsServer`. Defaults to `NotSpecified`.
 * @property managedDisks One or more `managed_disk` block as defined below. It's available only if mobility service is already installed on the source VM.
 * > **Note:** A replicated VM could be created without `managed_disk` block, once the block has been specified, changing it expect removing it forces a new resource to be created.
 * @property multiVmGroupName Name of group in which all machines will replicate together and have shared crash consistent and app-consistent recovery points when failed over.
 * @property name The name of the replicated VM. Changing this forces a new resource to be created.
 * @property networkInterfaces One or more `network_interface` block as defined below.
 * @property physicalServerCredentialName The name of the credential to access the source VM. Changing this forces a new resource to be created. More information about the credentials could be found [here](https://learn.microsoft.com/en-us/azure/site-recovery/deploy-vmware-azure-replication-appliance-modernized).
 * @property recoveryReplicationPolicyId The ID of the policy to use for this replicated VM.
 * @property recoveryVaultId The ID of the Recovery Services Vault where the replicated VM is created.
 * @property sourceVmName The name of the source VM in VMWare. Changing this forces a new resource to be created.
 * @property targetAvailabilitySetId The ID of availability set that the new VM should belong to when a failover is done.
 * @property targetBootDiagnosticsStorageAccountId The ID of the storage account that should be used for boot diagnostics when a failover is done.
 * @property targetNetworkId The ID of network to use when a failover is done.
 * > **Note:** `target_network_id` is required when `network_interface` is specified.
 * @property targetProximityPlacementGroupId The ID of Proximity Placement Group the new VM should belong to when a failover is done.
 * > **Note:** Only one of `target_availability_set_id` or `target_zone` can be specified.
 * @property targetResourceGroupId The ID of resource group where the VM should be created when a failover is done.
 * @property targetVmName Name of the VM that should be created when a failover is done. Changing this forces a new resource to be created.
 * @property targetVmSize Size of the VM that should be created when a failover is done, such as `Standard_F2`. If it's not specified, it will automatically be set by detecting the source VM size.
 * @property targetZone Specifies the Availability Zone where the Failover VM should exist.
 * @property testNetworkId The ID of network to use when a test failover is done.
 */
public data class VmwareReplicatedVmArgs(
    public val applianceName: Output? = null,
    public val defaultLogStorageAccountId: Output? = null,
    public val defaultRecoveryDiskType: Output? = null,
    public val defaultTargetDiskEncryptionSetId: Output? = null,
    public val licenseType: Output? = null,
    public val managedDisks: Output>? = null,
    public val multiVmGroupName: Output? = null,
    public val name: Output? = null,
    public val networkInterfaces: Output>? = null,
    public val physicalServerCredentialName: Output? = null,
    public val recoveryReplicationPolicyId: Output? = null,
    public val recoveryVaultId: Output? = null,
    public val sourceVmName: Output? = null,
    public val targetAvailabilitySetId: Output? = null,
    public val targetBootDiagnosticsStorageAccountId: Output? = null,
    public val targetNetworkId: Output? = null,
    public val targetProximityPlacementGroupId: Output? = null,
    public val targetResourceGroupId: Output? = null,
    public val targetVmName: Output? = null,
    public val targetVmSize: Output? = null,
    public val targetZone: Output? = null,
    public val testNetworkId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.siterecovery.VmwareReplicatedVmArgs =
        com.pulumi.azure.siterecovery.VmwareReplicatedVmArgs.builder()
            .applianceName(applianceName?.applyValue({ args0 -> args0 }))
            .defaultLogStorageAccountId(defaultLogStorageAccountId?.applyValue({ args0 -> args0 }))
            .defaultRecoveryDiskType(defaultRecoveryDiskType?.applyValue({ args0 -> args0 }))
            .defaultTargetDiskEncryptionSetId(defaultTargetDiskEncryptionSetId?.applyValue({ args0 -> args0 }))
            .licenseType(licenseType?.applyValue({ args0 -> args0 }))
            .managedDisks(
                managedDisks?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .multiVmGroupName(multiVmGroupName?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .networkInterfaces(
                networkInterfaces?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .physicalServerCredentialName(physicalServerCredentialName?.applyValue({ args0 -> args0 }))
            .recoveryReplicationPolicyId(recoveryReplicationPolicyId?.applyValue({ args0 -> args0 }))
            .recoveryVaultId(recoveryVaultId?.applyValue({ args0 -> args0 }))
            .sourceVmName(sourceVmName?.applyValue({ args0 -> args0 }))
            .targetAvailabilitySetId(targetAvailabilitySetId?.applyValue({ args0 -> args0 }))
            .targetBootDiagnosticsStorageAccountId(
                targetBootDiagnosticsStorageAccountId?.applyValue({ args0 ->
                    args0
                }),
            )
            .targetNetworkId(targetNetworkId?.applyValue({ args0 -> args0 }))
            .targetProximityPlacementGroupId(targetProximityPlacementGroupId?.applyValue({ args0 -> args0 }))
            .targetResourceGroupId(targetResourceGroupId?.applyValue({ args0 -> args0 }))
            .targetVmName(targetVmName?.applyValue({ args0 -> args0 }))
            .targetVmSize(targetVmSize?.applyValue({ args0 -> args0 }))
            .targetZone(targetZone?.applyValue({ args0 -> args0 }))
            .testNetworkId(testNetworkId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [VmwareReplicatedVmArgs].
 */
@PulumiTagMarker
public class VmwareReplicatedVmArgsBuilder internal constructor() {
    private var applianceName: Output? = null

    private var defaultLogStorageAccountId: Output? = null

    private var defaultRecoveryDiskType: Output? = null

    private var defaultTargetDiskEncryptionSetId: Output? = null

    private var licenseType: Output? = null

    private var managedDisks: Output>? = null

    private var multiVmGroupName: Output? = null

    private var name: Output? = null

    private var networkInterfaces: Output>? = null

    private var physicalServerCredentialName: Output? = null

    private var recoveryReplicationPolicyId: Output? = null

    private var recoveryVaultId: Output? = null

    private var sourceVmName: Output? = null

    private var targetAvailabilitySetId: Output? = null

    private var targetBootDiagnosticsStorageAccountId: Output? = null

    private var targetNetworkId: Output? = null

    private var targetProximityPlacementGroupId: Output? = null

    private var targetResourceGroupId: Output? = null

    private var targetVmName: Output? = null

    private var targetVmSize: Output? = null

    private var targetZone: Output? = null

    private var testNetworkId: Output? = null

    /**
     * @param value The name of VMWare appliance which handles the replication. Changing this forces a new resource to be created.
     */
    @JvmName("ujcvhphbvdybgjhl")
    public suspend fun applianceName(`value`: Output) {
        this.applianceName = value
    }

    /**
     * @param value The ID of the stroage account that should be used for logging during replication.
     * > **Note:** Only standard types of storage accounts are allowed.
     * > **Note:** Only one of `default_log_storage_account_id` or `managed_disk` must be specified.
     * > **Note:** Changing `default_log_storage_account_id` forces a new resource to be created. But removing it does not.
     * > **Note:** When `default_log_storage_account_id` co-exist with `managed_disk`, the value of `default_log_storage_account_id` must be as same as `log_storage_account_id` of every `managed_disk` or it forces a new resource to be created.
     */
    @JvmName("tqjlegmovjwdbghi")
    public suspend fun defaultLogStorageAccountId(`value`: Output) {
        this.defaultLogStorageAccountId = value
    }

    /**
     * @param value The type of storage account that should be used for recovery disks when a failover is done. Possible values are `Premium_LRS`, `Standard_LRS` and `StandardSSD_LRS`.
     * > **Note:** Only one of `default_recovery_disk_type` or `managed_disk` must be specified.
     * > **Note:** Changing `default_recovery_disk_type` forces a new resource to be created. But removing it does not.
     * > **Note:** When `default_recovery_disk_type` co-exist with `managed_disk`, the value of `default_recovery_disk_type` must be as same as `target_disk_type` of every `managed_disk` or it forces a new resource to be created.
     */
    @JvmName("nekrgjdgxxpfdgcd")
    public suspend fun defaultRecoveryDiskType(`value`: Output) {
        this.defaultRecoveryDiskType = value
    }

    /**
     * @param value The ID of the default Disk Encryption Set that should be used for the disks when a failover is done.
     * > **Note:** Changing `default_target_disk_encryption_set_id` forces a new resource to be created. But removing it does not.
     * > **Note:** When `default_target_disk_encryption_set_id` co-exist with `managed_disk`, the value of `default_target_disk_encryption_set_id` must be as same as `target_disk_encryption_set_id` of every `managed_disk` or it forces a new resource to be created.
     */
    @JvmName("ruwywqgajrrppluu")
    public suspend fun defaultTargetDiskEncryptionSetId(`value`: Output) {
        this.defaultTargetDiskEncryptionSetId = value
    }

    /**
     * @param value The license type of the VM. Possible values are `NoLicenseType`, `NotSpecified` and `WindowsServer`. Defaults to `NotSpecified`.
     */
    @JvmName("dsxosbruxixhtoqd")
    public suspend fun licenseType(`value`: Output) {
        this.licenseType = value
    }

    /**
     * @param value One or more `managed_disk` block as defined below. It's available only if mobility service is already installed on the source VM.
     * > **Note:** A replicated VM could be created without `managed_disk` block, once the block has been specified, changing it expect removing it forces a new resource to be created.
     */
    @JvmName("fvfwxwtcvpcmpksk")
    public suspend fun managedDisks(`value`: Output>) {
        this.managedDisks = value
    }

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

    /**
     * @param values One or more `managed_disk` block as defined below. It's available only if mobility service is already installed on the source VM.
     * > **Note:** A replicated VM could be created without `managed_disk` block, once the block has been specified, changing it expect removing it forces a new resource to be created.
     */
    @JvmName("nsjyviubftsucyfy")
    public suspend fun managedDisks(values: List>) {
        this.managedDisks = Output.all(values)
    }

    /**
     * @param value Name of group in which all machines will replicate together and have shared crash consistent and app-consistent recovery points when failed over.
     */
    @JvmName("ejdjlbgggtpbkncq")
    public suspend fun multiVmGroupName(`value`: Output) {
        this.multiVmGroupName = value
    }

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

    /**
     * @param value One or more `network_interface` block as defined below.
     */
    @JvmName("nopvkltmpovelsgx")
    public suspend fun networkInterfaces(`value`: Output>) {
        this.networkInterfaces = value
    }

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

    /**
     * @param values One or more `network_interface` block as defined below.
     */
    @JvmName("xxfqqiracfwjxnta")
    public suspend fun networkInterfaces(values: List>) {
        this.networkInterfaces = Output.all(values)
    }

    /**
     * @param value The name of the credential to access the source VM. Changing this forces a new resource to be created. More information about the credentials could be found [here](https://learn.microsoft.com/en-us/azure/site-recovery/deploy-vmware-azure-replication-appliance-modernized).
     */
    @JvmName("mueqbsvisasnfjgi")
    public suspend fun physicalServerCredentialName(`value`: Output) {
        this.physicalServerCredentialName = value
    }

    /**
     * @param value The ID of the policy to use for this replicated VM.
     */
    @JvmName("dswdamyignhduwhr")
    public suspend fun recoveryReplicationPolicyId(`value`: Output) {
        this.recoveryReplicationPolicyId = value
    }

    /**
     * @param value The ID of the Recovery Services Vault where the replicated VM is created.
     */
    @JvmName("bkqjxbdivprokkdm")
    public suspend fun recoveryVaultId(`value`: Output) {
        this.recoveryVaultId = value
    }

    /**
     * @param value The name of the source VM in VMWare. Changing this forces a new resource to be created.
     */
    @JvmName("icydqyiyyypjeioq")
    public suspend fun sourceVmName(`value`: Output) {
        this.sourceVmName = value
    }

    /**
     * @param value The ID of availability set that the new VM should belong to when a failover is done.
     */
    @JvmName("awavdemaiylflyao")
    public suspend fun targetAvailabilitySetId(`value`: Output) {
        this.targetAvailabilitySetId = value
    }

    /**
     * @param value The ID of the storage account that should be used for boot diagnostics when a failover is done.
     */
    @JvmName("uelwmkrodloyvmop")
    public suspend fun targetBootDiagnosticsStorageAccountId(`value`: Output) {
        this.targetBootDiagnosticsStorageAccountId = value
    }

    /**
     * @param value The ID of network to use when a failover is done.
     * > **Note:** `target_network_id` is required when `network_interface` is specified.
     */
    @JvmName("mworppjmubdjfwlk")
    public suspend fun targetNetworkId(`value`: Output) {
        this.targetNetworkId = value
    }

    /**
     * @param value The ID of Proximity Placement Group the new VM should belong to when a failover is done.
     * > **Note:** Only one of `target_availability_set_id` or `target_zone` can be specified.
     */
    @JvmName("ijovvyeprcabfmqh")
    public suspend fun targetProximityPlacementGroupId(`value`: Output) {
        this.targetProximityPlacementGroupId = value
    }

    /**
     * @param value The ID of resource group where the VM should be created when a failover is done.
     */
    @JvmName("albfipmlubhohkfn")
    public suspend fun targetResourceGroupId(`value`: Output) {
        this.targetResourceGroupId = value
    }

    /**
     * @param value Name of the VM that should be created when a failover is done. Changing this forces a new resource to be created.
     */
    @JvmName("ifptqewvmogahvju")
    public suspend fun targetVmName(`value`: Output) {
        this.targetVmName = value
    }

    /**
     * @param value Size of the VM that should be created when a failover is done, such as `Standard_F2`. If it's not specified, it will automatically be set by detecting the source VM size.
     */
    @JvmName("jvdqbmmdsaavyukj")
    public suspend fun targetVmSize(`value`: Output) {
        this.targetVmSize = value
    }

    /**
     * @param value Specifies the Availability Zone where the Failover VM should exist.
     */
    @JvmName("mhrjjbgvhbisrije")
    public suspend fun targetZone(`value`: Output) {
        this.targetZone = value
    }

    /**
     * @param value The ID of network to use when a test failover is done.
     */
    @JvmName("vjlfekpkgwdycuai")
    public suspend fun testNetworkId(`value`: Output) {
        this.testNetworkId = value
    }

    /**
     * @param value The name of VMWare appliance which handles the replication. Changing this forces a new resource to be created.
     */
    @JvmName("hyohnujwgdrbqfoj")
    public suspend fun applianceName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applianceName = mapped
    }

    /**
     * @param value The ID of the stroage account that should be used for logging during replication.
     * > **Note:** Only standard types of storage accounts are allowed.
     * > **Note:** Only one of `default_log_storage_account_id` or `managed_disk` must be specified.
     * > **Note:** Changing `default_log_storage_account_id` forces a new resource to be created. But removing it does not.
     * > **Note:** When `default_log_storage_account_id` co-exist with `managed_disk`, the value of `default_log_storage_account_id` must be as same as `log_storage_account_id` of every `managed_disk` or it forces a new resource to be created.
     */
    @JvmName("bsocrrenqeymdjar")
    public suspend fun defaultLogStorageAccountId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultLogStorageAccountId = mapped
    }

    /**
     * @param value The type of storage account that should be used for recovery disks when a failover is done. Possible values are `Premium_LRS`, `Standard_LRS` and `StandardSSD_LRS`.
     * > **Note:** Only one of `default_recovery_disk_type` or `managed_disk` must be specified.
     * > **Note:** Changing `default_recovery_disk_type` forces a new resource to be created. But removing it does not.
     * > **Note:** When `default_recovery_disk_type` co-exist with `managed_disk`, the value of `default_recovery_disk_type` must be as same as `target_disk_type` of every `managed_disk` or it forces a new resource to be created.
     */
    @JvmName("rxeqlihqvpmxenwp")
    public suspend fun defaultRecoveryDiskType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultRecoveryDiskType = mapped
    }

    /**
     * @param value The ID of the default Disk Encryption Set that should be used for the disks when a failover is done.
     * > **Note:** Changing `default_target_disk_encryption_set_id` forces a new resource to be created. But removing it does not.
     * > **Note:** When `default_target_disk_encryption_set_id` co-exist with `managed_disk`, the value of `default_target_disk_encryption_set_id` must be as same as `target_disk_encryption_set_id` of every `managed_disk` or it forces a new resource to be created.
     */
    @JvmName("lhvxqrxvhguujpin")
    public suspend fun defaultTargetDiskEncryptionSetId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultTargetDiskEncryptionSetId = mapped
    }

    /**
     * @param value The license type of the VM. Possible values are `NoLicenseType`, `NotSpecified` and `WindowsServer`. Defaults to `NotSpecified`.
     */
    @JvmName("rworwhangdririeo")
    public suspend fun licenseType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.licenseType = mapped
    }

    /**
     * @param value One or more `managed_disk` block as defined below. It's available only if mobility service is already installed on the source VM.
     * > **Note:** A replicated VM could be created without `managed_disk` block, once the block has been specified, changing it expect removing it forces a new resource to be created.
     */
    @JvmName("jbtuusuuwixtduyj")
    public suspend fun managedDisks(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.managedDisks = mapped
    }

    /**
     * @param argument One or more `managed_disk` block as defined below. It's available only if mobility service is already installed on the source VM.
     * > **Note:** A replicated VM could be created without `managed_disk` block, once the block has been specified, changing it expect removing it forces a new resource to be created.
     */
    @JvmName("ojaqlyquyglkfnka")
    public suspend fun managedDisks(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            VmwareReplicatedVmManagedDiskArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.managedDisks = mapped
    }

    /**
     * @param argument One or more `managed_disk` block as defined below. It's available only if mobility service is already installed on the source VM.
     * > **Note:** A replicated VM could be created without `managed_disk` block, once the block has been specified, changing it expect removing it forces a new resource to be created.
     */
    @JvmName("lyliytjpnjtueyst")
    public suspend fun managedDisks(vararg argument: suspend VmwareReplicatedVmManagedDiskArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            VmwareReplicatedVmManagedDiskArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.managedDisks = mapped
    }

    /**
     * @param argument One or more `managed_disk` block as defined below. It's available only if mobility service is already installed on the source VM.
     * > **Note:** A replicated VM could be created without `managed_disk` block, once the block has been specified, changing it expect removing it forces a new resource to be created.
     */
    @JvmName("pmeasckpxdonfxpw")
    public suspend fun managedDisks(argument: suspend VmwareReplicatedVmManagedDiskArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            VmwareReplicatedVmManagedDiskArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.managedDisks = mapped
    }

    /**
     * @param values One or more `managed_disk` block as defined below. It's available only if mobility service is already installed on the source VM.
     * > **Note:** A replicated VM could be created without `managed_disk` block, once the block has been specified, changing it expect removing it forces a new resource to be created.
     */
    @JvmName("jxirqmnhibndsqap")
    public suspend fun managedDisks(vararg values: VmwareReplicatedVmManagedDiskArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.managedDisks = mapped
    }

    /**
     * @param value Name of group in which all machines will replicate together and have shared crash consistent and app-consistent recovery points when failed over.
     */
    @JvmName("pucbvohsdhfxmhlb")
    public suspend fun multiVmGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.multiVmGroupName = mapped
    }

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

    /**
     * @param value One or more `network_interface` block as defined below.
     */
    @JvmName("tnmcnqhytswahcis")
    public suspend fun networkInterfaces(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networkInterfaces = mapped
    }

    /**
     * @param argument One or more `network_interface` block as defined below.
     */
    @JvmName("frsqtgpdhgywcvtr")
    public suspend fun networkInterfaces(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            VmwareReplicatedVmNetworkInterfaceArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.networkInterfaces = mapped
    }

    /**
     * @param argument One or more `network_interface` block as defined below.
     */
    @JvmName("ypexxmxbagrmbcdf")
    public suspend fun networkInterfaces(vararg argument: suspend VmwareReplicatedVmNetworkInterfaceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            VmwareReplicatedVmNetworkInterfaceArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.networkInterfaces = mapped
    }

    /**
     * @param argument One or more `network_interface` block as defined below.
     */
    @JvmName("xxpcrpireftarjqy")
    public suspend fun networkInterfaces(argument: suspend VmwareReplicatedVmNetworkInterfaceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            VmwareReplicatedVmNetworkInterfaceArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.networkInterfaces = mapped
    }

    /**
     * @param values One or more `network_interface` block as defined below.
     */
    @JvmName("bkvsqfrsidmqvxop")
    public suspend fun networkInterfaces(vararg values: VmwareReplicatedVmNetworkInterfaceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.networkInterfaces = mapped
    }

    /**
     * @param value The name of the credential to access the source VM. Changing this forces a new resource to be created. More information about the credentials could be found [here](https://learn.microsoft.com/en-us/azure/site-recovery/deploy-vmware-azure-replication-appliance-modernized).
     */
    @JvmName("kjasigddubhknssh")
    public suspend fun physicalServerCredentialName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.physicalServerCredentialName = mapped
    }

    /**
     * @param value The ID of the policy to use for this replicated VM.
     */
    @JvmName("cxwcldvfsjbgojml")
    public suspend fun recoveryReplicationPolicyId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.recoveryReplicationPolicyId = mapped
    }

    /**
     * @param value The ID of the Recovery Services Vault where the replicated VM is created.
     */
    @JvmName("hnweakaehyyvhykd")
    public suspend fun recoveryVaultId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.recoveryVaultId = mapped
    }

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

    /**
     * @param value The ID of availability set that the new VM should belong to when a failover is done.
     */
    @JvmName("agtuhjretfppeviu")
    public suspend fun targetAvailabilitySetId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetAvailabilitySetId = mapped
    }

    /**
     * @param value The ID of the storage account that should be used for boot diagnostics when a failover is done.
     */
    @JvmName("wxrntsngsojroagp")
    public suspend fun targetBootDiagnosticsStorageAccountId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetBootDiagnosticsStorageAccountId = mapped
    }

    /**
     * @param value The ID of network to use when a failover is done.
     * > **Note:** `target_network_id` is required when `network_interface` is specified.
     */
    @JvmName("cxcofvffembtdlim")
    public suspend fun targetNetworkId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetNetworkId = mapped
    }

    /**
     * @param value The ID of Proximity Placement Group the new VM should belong to when a failover is done.
     * > **Note:** Only one of `target_availability_set_id` or `target_zone` can be specified.
     */
    @JvmName("uylvgqgwckcffebp")
    public suspend fun targetProximityPlacementGroupId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetProximityPlacementGroupId = mapped
    }

    /**
     * @param value The ID of resource group where the VM should be created when a failover is done.
     */
    @JvmName("hdshslusriimubsh")
    public suspend fun targetResourceGroupId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetResourceGroupId = mapped
    }

    /**
     * @param value Name of the VM that should be created when a failover is done. Changing this forces a new resource to be created.
     */
    @JvmName("cnlbligfnydngtjb")
    public suspend fun targetVmName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetVmName = mapped
    }

    /**
     * @param value Size of the VM that should be created when a failover is done, such as `Standard_F2`. If it's not specified, it will automatically be set by detecting the source VM size.
     */
    @JvmName("amavkfdqxyjfgdtw")
    public suspend fun targetVmSize(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetVmSize = mapped
    }

    /**
     * @param value Specifies the Availability Zone where the Failover VM should exist.
     */
    @JvmName("pstdwwbmurqvlwxm")
    public suspend fun targetZone(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetZone = mapped
    }

    /**
     * @param value The ID of network to use when a test failover is done.
     */
    @JvmName("dywhibdogpygsrio")
    public suspend fun testNetworkId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.testNetworkId = mapped
    }

    internal fun build(): VmwareReplicatedVmArgs = VmwareReplicatedVmArgs(
        applianceName = applianceName,
        defaultLogStorageAccountId = defaultLogStorageAccountId,
        defaultRecoveryDiskType = defaultRecoveryDiskType,
        defaultTargetDiskEncryptionSetId = defaultTargetDiskEncryptionSetId,
        licenseType = licenseType,
        managedDisks = managedDisks,
        multiVmGroupName = multiVmGroupName,
        name = name,
        networkInterfaces = networkInterfaces,
        physicalServerCredentialName = physicalServerCredentialName,
        recoveryReplicationPolicyId = recoveryReplicationPolicyId,
        recoveryVaultId = recoveryVaultId,
        sourceVmName = sourceVmName,
        targetAvailabilitySetId = targetAvailabilitySetId,
        targetBootDiagnosticsStorageAccountId = targetBootDiagnosticsStorageAccountId,
        targetNetworkId = targetNetworkId,
        targetProximityPlacementGroupId = targetProximityPlacementGroupId,
        targetResourceGroupId = targetResourceGroupId,
        targetVmName = targetVmName,
        targetVmSize = targetVmSize,
        targetZone = targetZone,
        testNetworkId = testNetworkId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy