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

com.pulumi.azurenative.compute.kotlin.ImageArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.compute.kotlin

import com.pulumi.azurenative.compute.ImageArgs.builder
import com.pulumi.azurenative.compute.kotlin.enums.HyperVGenerationTypes
import com.pulumi.azurenative.compute.kotlin.inputs.ExtendedLocationArgs
import com.pulumi.azurenative.compute.kotlin.inputs.ExtendedLocationArgsBuilder
import com.pulumi.azurenative.compute.kotlin.inputs.ImageStorageProfileArgs
import com.pulumi.azurenative.compute.kotlin.inputs.ImageStorageProfileArgsBuilder
import com.pulumi.azurenative.compute.kotlin.inputs.SubResourceArgs
import com.pulumi.azurenative.compute.kotlin.inputs.SubResourceArgsBuilder
import com.pulumi.core.Either
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist.
 * Azure REST API version: 2023-03-01. Prior API version in Azure Native 1.x: 2020-12-01.
 * Other available API versions: 2023-07-01, 2023-09-01, 2024-03-01, 2024-07-01.
 * ## Example Usage
 * ### Create a virtual machine image from a blob with DiskEncryptionSet resource.
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var image = new AzureNative.Compute.Image("image", new()
 *     {
 *         ImageName = "myImage",
 *         Location = "West US",
 *         ResourceGroupName = "myResourceGroup",
 *         StorageProfile = new AzureNative.Compute.Inputs.ImageStorageProfileArgs
 *         {
 *             OsDisk = new AzureNative.Compute.Inputs.ImageOSDiskArgs
 *             {
 *                 BlobUri = "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd",
 *                 DiskEncryptionSet = new AzureNative.Compute.Inputs.DiskEncryptionSetParametersArgs
 *                 {
 *                     Id = "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}",
 *                 },
 *                 OsState = AzureNative.Compute.OperatingSystemStateTypes.Generalized,
 *                 OsType = AzureNative.Compute.OperatingSystemTypes.Linux,
 *             },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := compute.NewImage(ctx, "image", &compute.ImageArgs{
 * 			ImageName:         pulumi.String("myImage"),
 * 			Location:          pulumi.String("West US"),
 * 			ResourceGroupName: pulumi.String("myResourceGroup"),
 * 			StorageProfile: &compute.ImageStorageProfileArgs{
 * 				OsDisk: &compute.ImageOSDiskArgs{
 * 					BlobUri: pulumi.String("https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"),
 * 					DiskEncryptionSet: &compute.DiskEncryptionSetParametersArgs{
 * 						Id: pulumi.String("/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}"),
 * 					},
 * 					OsState: compute.OperatingSystemStateTypesGeneralized,
 * 					OsType:  compute.OperatingSystemTypesLinux,
 * 				},
 * 			},
 * 		})
 * 		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.compute.Image;
 * import com.pulumi.azurenative.compute.ImageArgs;
 * import com.pulumi.azurenative.compute.inputs.ImageStorageProfileArgs;
 * import com.pulumi.azurenative.compute.inputs.ImageOSDiskArgs;
 * import com.pulumi.azurenative.compute.inputs.DiskEncryptionSetParametersArgs;
 * 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 image = new Image("image", ImageArgs.builder()
 *             .imageName("myImage")
 *             .location("West US")
 *             .resourceGroupName("myResourceGroup")
 *             .storageProfile(ImageStorageProfileArgs.builder()
 *                 .osDisk(ImageOSDiskArgs.builder()
 *                     .blobUri("https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd")
 *                     .diskEncryptionSet(DiskEncryptionSetParametersArgs.builder()
 *                         .id("/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}")
 *                         .build())
 *                     .osState("Generalized")
 *                     .osType("Linux")
 *                     .build())
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ### Create a virtual machine image from a blob.
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var image = new AzureNative.Compute.Image("image", new()
 *     {
 *         ImageName = "myImage",
 *         Location = "West US",
 *         ResourceGroupName = "myResourceGroup",
 *         StorageProfile = new AzureNative.Compute.Inputs.ImageStorageProfileArgs
 *         {
 *             OsDisk = new AzureNative.Compute.Inputs.ImageOSDiskArgs
 *             {
 *                 BlobUri = "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd",
 *                 OsState = AzureNative.Compute.OperatingSystemStateTypes.Generalized,
 *                 OsType = AzureNative.Compute.OperatingSystemTypes.Linux,
 *             },
 *             ZoneResilient = true,
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := compute.NewImage(ctx, "image", &compute.ImageArgs{
 * 			ImageName:         pulumi.String("myImage"),
 * 			Location:          pulumi.String("West US"),
 * 			ResourceGroupName: pulumi.String("myResourceGroup"),
 * 			StorageProfile: &compute.ImageStorageProfileArgs{
 * 				OsDisk: &compute.ImageOSDiskArgs{
 * 					BlobUri: pulumi.String("https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"),
 * 					OsState: compute.OperatingSystemStateTypesGeneralized,
 * 					OsType:  compute.OperatingSystemTypesLinux,
 * 				},
 * 				ZoneResilient: 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.azurenative.compute.Image;
 * import com.pulumi.azurenative.compute.ImageArgs;
 * import com.pulumi.azurenative.compute.inputs.ImageStorageProfileArgs;
 * import com.pulumi.azurenative.compute.inputs.ImageOSDiskArgs;
 * 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 image = new Image("image", ImageArgs.builder()
 *             .imageName("myImage")
 *             .location("West US")
 *             .resourceGroupName("myResourceGroup")
 *             .storageProfile(ImageStorageProfileArgs.builder()
 *                 .osDisk(ImageOSDiskArgs.builder()
 *                     .blobUri("https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd")
 *                     .osState("Generalized")
 *                     .osType("Linux")
 *                     .build())
 *                 .zoneResilient(true)
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ### Create a virtual machine image from a managed disk with DiskEncryptionSet resource.
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var image = new AzureNative.Compute.Image("image", new()
 *     {
 *         ImageName = "myImage",
 *         Location = "West US",
 *         ResourceGroupName = "myResourceGroup",
 *         StorageProfile = new AzureNative.Compute.Inputs.ImageStorageProfileArgs
 *         {
 *             OsDisk = new AzureNative.Compute.Inputs.ImageOSDiskArgs
 *             {
 *                 DiskEncryptionSet = new AzureNative.Compute.Inputs.DiskEncryptionSetParametersArgs
 *                 {
 *                     Id = "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}",
 *                 },
 *                 OsState = AzureNative.Compute.OperatingSystemStateTypes.Generalized,
 *                 OsType = AzureNative.Compute.OperatingSystemTypes.Linux,
 *                 Snapshot = new AzureNative.Compute.Inputs.SubResourceArgs
 *                 {
 *                     Id = "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot",
 *                 },
 *             },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := compute.NewImage(ctx, "image", &compute.ImageArgs{
 * 			ImageName:         pulumi.String("myImage"),
 * 			Location:          pulumi.String("West US"),
 * 			ResourceGroupName: pulumi.String("myResourceGroup"),
 * 			StorageProfile: &compute.ImageStorageProfileArgs{
 * 				OsDisk: &compute.ImageOSDiskArgs{
 * 					DiskEncryptionSet: &compute.DiskEncryptionSetParametersArgs{
 * 						Id: pulumi.String("/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}"),
 * 					},
 * 					OsState: compute.OperatingSystemStateTypesGeneralized,
 * 					OsType:  compute.OperatingSystemTypesLinux,
 * 					Snapshot: &compute.SubResourceArgs{
 * 						Id: pulumi.String("subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot"),
 * 					},
 * 				},
 * 			},
 * 		})
 * 		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.compute.Image;
 * import com.pulumi.azurenative.compute.ImageArgs;
 * import com.pulumi.azurenative.compute.inputs.ImageStorageProfileArgs;
 * import com.pulumi.azurenative.compute.inputs.ImageOSDiskArgs;
 * import com.pulumi.azurenative.compute.inputs.DiskEncryptionSetParametersArgs;
 * import com.pulumi.azurenative.compute.inputs.SubResourceArgs;
 * 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 image = new Image("image", ImageArgs.builder()
 *             .imageName("myImage")
 *             .location("West US")
 *             .resourceGroupName("myResourceGroup")
 *             .storageProfile(ImageStorageProfileArgs.builder()
 *                 .osDisk(ImageOSDiskArgs.builder()
 *                     .diskEncryptionSet(DiskEncryptionSetParametersArgs.builder()
 *                         .id("/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}")
 *                         .build())
 *                     .osState("Generalized")
 *                     .osType("Linux")
 *                     .snapshot(SubResourceArgs.builder()
 *                         .id("subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot")
 *                         .build())
 *                     .build())
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ### Create a virtual machine image from a managed disk.
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var image = new AzureNative.Compute.Image("image", new()
 *     {
 *         ImageName = "myImage",
 *         Location = "West US",
 *         ResourceGroupName = "myResourceGroup",
 *         StorageProfile = new AzureNative.Compute.Inputs.ImageStorageProfileArgs
 *         {
 *             OsDisk = new AzureNative.Compute.Inputs.ImageOSDiskArgs
 *             {
 *                 ManagedDisk = new AzureNative.Compute.Inputs.SubResourceArgs
 *                 {
 *                     Id = "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk",
 *                 },
 *                 OsState = AzureNative.Compute.OperatingSystemStateTypes.Generalized,
 *                 OsType = AzureNative.Compute.OperatingSystemTypes.Linux,
 *             },
 *             ZoneResilient = true,
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := compute.NewImage(ctx, "image", &compute.ImageArgs{
 * 			ImageName:         pulumi.String("myImage"),
 * 			Location:          pulumi.String("West US"),
 * 			ResourceGroupName: pulumi.String("myResourceGroup"),
 * 			StorageProfile: &compute.ImageStorageProfileArgs{
 * 				OsDisk: &compute.ImageOSDiskArgs{
 * 					ManagedDisk: &compute.SubResourceArgs{
 * 						Id: pulumi.String("subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk"),
 * 					},
 * 					OsState: compute.OperatingSystemStateTypesGeneralized,
 * 					OsType:  compute.OperatingSystemTypesLinux,
 * 				},
 * 				ZoneResilient: 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.azurenative.compute.Image;
 * import com.pulumi.azurenative.compute.ImageArgs;
 * import com.pulumi.azurenative.compute.inputs.ImageStorageProfileArgs;
 * import com.pulumi.azurenative.compute.inputs.ImageOSDiskArgs;
 * import com.pulumi.azurenative.compute.inputs.SubResourceArgs;
 * 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 image = new Image("image", ImageArgs.builder()
 *             .imageName("myImage")
 *             .location("West US")
 *             .resourceGroupName("myResourceGroup")
 *             .storageProfile(ImageStorageProfileArgs.builder()
 *                 .osDisk(ImageOSDiskArgs.builder()
 *                     .managedDisk(SubResourceArgs.builder()
 *                         .id("subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk")
 *                         .build())
 *                     .osState("Generalized")
 *                     .osType("Linux")
 *                     .build())
 *                 .zoneResilient(true)
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ### Create a virtual machine image from a snapshot with DiskEncryptionSet resource.
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var image = new AzureNative.Compute.Image("image", new()
 *     {
 *         ImageName = "myImage",
 *         Location = "West US",
 *         ResourceGroupName = "myResourceGroup",
 *         StorageProfile = new AzureNative.Compute.Inputs.ImageStorageProfileArgs
 *         {
 *             OsDisk = new AzureNative.Compute.Inputs.ImageOSDiskArgs
 *             {
 *                 DiskEncryptionSet = new AzureNative.Compute.Inputs.DiskEncryptionSetParametersArgs
 *                 {
 *                     Id = "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}",
 *                 },
 *                 ManagedDisk = new AzureNative.Compute.Inputs.SubResourceArgs
 *                 {
 *                     Id = "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk",
 *                 },
 *                 OsState = AzureNative.Compute.OperatingSystemStateTypes.Generalized,
 *                 OsType = AzureNative.Compute.OperatingSystemTypes.Linux,
 *             },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := compute.NewImage(ctx, "image", &compute.ImageArgs{
 * 			ImageName:         pulumi.String("myImage"),
 * 			Location:          pulumi.String("West US"),
 * 			ResourceGroupName: pulumi.String("myResourceGroup"),
 * 			StorageProfile: &compute.ImageStorageProfileArgs{
 * 				OsDisk: &compute.ImageOSDiskArgs{
 * 					DiskEncryptionSet: &compute.DiskEncryptionSetParametersArgs{
 * 						Id: pulumi.String("/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}"),
 * 					},
 * 					ManagedDisk: &compute.SubResourceArgs{
 * 						Id: pulumi.String("subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk"),
 * 					},
 * 					OsState: compute.OperatingSystemStateTypesGeneralized,
 * 					OsType:  compute.OperatingSystemTypesLinux,
 * 				},
 * 			},
 * 		})
 * 		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.compute.Image;
 * import com.pulumi.azurenative.compute.ImageArgs;
 * import com.pulumi.azurenative.compute.inputs.ImageStorageProfileArgs;
 * import com.pulumi.azurenative.compute.inputs.ImageOSDiskArgs;
 * import com.pulumi.azurenative.compute.inputs.DiskEncryptionSetParametersArgs;
 * import com.pulumi.azurenative.compute.inputs.SubResourceArgs;
 * 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 image = new Image("image", ImageArgs.builder()
 *             .imageName("myImage")
 *             .location("West US")
 *             .resourceGroupName("myResourceGroup")
 *             .storageProfile(ImageStorageProfileArgs.builder()
 *                 .osDisk(ImageOSDiskArgs.builder()
 *                     .diskEncryptionSet(DiskEncryptionSetParametersArgs.builder()
 *                         .id("/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}")
 *                         .build())
 *                     .managedDisk(SubResourceArgs.builder()
 *                         .id("subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk")
 *                         .build())
 *                     .osState("Generalized")
 *                     .osType("Linux")
 *                     .build())
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ### Create a virtual machine image from a snapshot.
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var image = new AzureNative.Compute.Image("image", new()
 *     {
 *         ImageName = "myImage",
 *         Location = "West US",
 *         ResourceGroupName = "myResourceGroup",
 *         StorageProfile = new AzureNative.Compute.Inputs.ImageStorageProfileArgs
 *         {
 *             OsDisk = new AzureNative.Compute.Inputs.ImageOSDiskArgs
 *             {
 *                 OsState = AzureNative.Compute.OperatingSystemStateTypes.Generalized,
 *                 OsType = AzureNative.Compute.OperatingSystemTypes.Linux,
 *                 Snapshot = new AzureNative.Compute.Inputs.SubResourceArgs
 *                 {
 *                     Id = "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot",
 *                 },
 *             },
 *             ZoneResilient = false,
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := compute.NewImage(ctx, "image", &compute.ImageArgs{
 * 			ImageName:         pulumi.String("myImage"),
 * 			Location:          pulumi.String("West US"),
 * 			ResourceGroupName: pulumi.String("myResourceGroup"),
 * 			StorageProfile: &compute.ImageStorageProfileArgs{
 * 				OsDisk: &compute.ImageOSDiskArgs{
 * 					OsState: compute.OperatingSystemStateTypesGeneralized,
 * 					OsType:  compute.OperatingSystemTypesLinux,
 * 					Snapshot: &compute.SubResourceArgs{
 * 						Id: pulumi.String("subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot"),
 * 					},
 * 				},
 * 				ZoneResilient: pulumi.Bool(false),
 * 			},
 * 		})
 * 		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.compute.Image;
 * import com.pulumi.azurenative.compute.ImageArgs;
 * import com.pulumi.azurenative.compute.inputs.ImageStorageProfileArgs;
 * import com.pulumi.azurenative.compute.inputs.ImageOSDiskArgs;
 * import com.pulumi.azurenative.compute.inputs.SubResourceArgs;
 * 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 image = new Image("image", ImageArgs.builder()
 *             .imageName("myImage")
 *             .location("West US")
 *             .resourceGroupName("myResourceGroup")
 *             .storageProfile(ImageStorageProfileArgs.builder()
 *                 .osDisk(ImageOSDiskArgs.builder()
 *                     .osState("Generalized")
 *                     .osType("Linux")
 *                     .snapshot(SubResourceArgs.builder()
 *                         .id("subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot")
 *                         .build())
 *                     .build())
 *                 .zoneResilient(false)
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ### Create a virtual machine image from an existing virtual machine.
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var image = new AzureNative.Compute.Image("image", new()
 *     {
 *         ImageName = "myImage",
 *         Location = "West US",
 *         ResourceGroupName = "myResourceGroup",
 *         SourceVirtualMachine = new AzureNative.Compute.Inputs.SubResourceArgs
 *         {
 *             Id = "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM",
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := compute.NewImage(ctx, "image", &compute.ImageArgs{
 * 			ImageName:         pulumi.String("myImage"),
 * 			Location:          pulumi.String("West US"),
 * 			ResourceGroupName: pulumi.String("myResourceGroup"),
 * 			SourceVirtualMachine: &compute.SubResourceArgs{
 * 				Id: pulumi.String("/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM"),
 * 			},
 * 		})
 * 		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.compute.Image;
 * import com.pulumi.azurenative.compute.ImageArgs;
 * import com.pulumi.azurenative.compute.inputs.SubResourceArgs;
 * 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 image = new Image("image", ImageArgs.builder()
 *             .imageName("myImage")
 *             .location("West US")
 *             .resourceGroupName("myResourceGroup")
 *             .sourceVirtualMachine(SubResourceArgs.builder()
 *                 .id("/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM")
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ### Create a virtual machine image that includes a data disk from a blob.
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var image = new AzureNative.Compute.Image("image", new()
 *     {
 *         ImageName = "myImage",
 *         Location = "West US",
 *         ResourceGroupName = "myResourceGroup",
 *         StorageProfile = new AzureNative.Compute.Inputs.ImageStorageProfileArgs
 *         {
 *             DataDisks = new[]
 *             {
 *                 new AzureNative.Compute.Inputs.ImageDataDiskArgs
 *                 {
 *                     BlobUri = "https://mystorageaccount.blob.core.windows.net/dataimages/dataimage.vhd",
 *                     Lun = 1,
 *                 },
 *             },
 *             OsDisk = new AzureNative.Compute.Inputs.ImageOSDiskArgs
 *             {
 *                 BlobUri = "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd",
 *                 OsState = AzureNative.Compute.OperatingSystemStateTypes.Generalized,
 *                 OsType = AzureNative.Compute.OperatingSystemTypes.Linux,
 *             },
 *             ZoneResilient = false,
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := compute.NewImage(ctx, "image", &compute.ImageArgs{
 * 			ImageName:         pulumi.String("myImage"),
 * 			Location:          pulumi.String("West US"),
 * 			ResourceGroupName: pulumi.String("myResourceGroup"),
 * 			StorageProfile: &compute.ImageStorageProfileArgs{
 * 				DataDisks: compute.ImageDataDiskArray{
 * 					&compute.ImageDataDiskArgs{
 * 						BlobUri: pulumi.String("https://mystorageaccount.blob.core.windows.net/dataimages/dataimage.vhd"),
 * 						Lun:     pulumi.Int(1),
 * 					},
 * 				},
 * 				OsDisk: &compute.ImageOSDiskArgs{
 * 					BlobUri: pulumi.String("https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd"),
 * 					OsState: compute.OperatingSystemStateTypesGeneralized,
 * 					OsType:  compute.OperatingSystemTypesLinux,
 * 				},
 * 				ZoneResilient: pulumi.Bool(false),
 * 			},
 * 		})
 * 		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.compute.Image;
 * import com.pulumi.azurenative.compute.ImageArgs;
 * import com.pulumi.azurenative.compute.inputs.ImageStorageProfileArgs;
 * import com.pulumi.azurenative.compute.inputs.ImageOSDiskArgs;
 * 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 image = new Image("image", ImageArgs.builder()
 *             .imageName("myImage")
 *             .location("West US")
 *             .resourceGroupName("myResourceGroup")
 *             .storageProfile(ImageStorageProfileArgs.builder()
 *                 .dataDisks(ImageDataDiskArgs.builder()
 *                     .blobUri("https://mystorageaccount.blob.core.windows.net/dataimages/dataimage.vhd")
 *                     .lun(1)
 *                     .build())
 *                 .osDisk(ImageOSDiskArgs.builder()
 *                     .blobUri("https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd")
 *                     .osState("Generalized")
 *                     .osType("Linux")
 *                     .build())
 *                 .zoneResilient(false)
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ### Create a virtual machine image that includes a data disk from a managed disk.
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var image = new AzureNative.Compute.Image("image", new()
 *     {
 *         ImageName = "myImage",
 *         Location = "West US",
 *         ResourceGroupName = "myResourceGroup",
 *         StorageProfile = new AzureNative.Compute.Inputs.ImageStorageProfileArgs
 *         {
 *             DataDisks = new[]
 *             {
 *                 new AzureNative.Compute.Inputs.ImageDataDiskArgs
 *                 {
 *                     Lun = 1,
 *                     ManagedDisk = new AzureNative.Compute.Inputs.SubResourceArgs
 *                     {
 *                         Id = "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk2",
 *                     },
 *                 },
 *             },
 *             OsDisk = new AzureNative.Compute.Inputs.ImageOSDiskArgs
 *             {
 *                 ManagedDisk = new AzureNative.Compute.Inputs.SubResourceArgs
 *                 {
 *                     Id = "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk",
 *                 },
 *                 OsState = AzureNative.Compute.OperatingSystemStateTypes.Generalized,
 *                 OsType = AzureNative.Compute.OperatingSystemTypes.Linux,
 *             },
 *             ZoneResilient = false,
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := compute.NewImage(ctx, "image", &compute.ImageArgs{
 * 			ImageName:         pulumi.String("myImage"),
 * 			Location:          pulumi.String("West US"),
 * 			ResourceGroupName: pulumi.String("myResourceGroup"),
 * 			StorageProfile: &compute.ImageStorageProfileArgs{
 * 				DataDisks: compute.ImageDataDiskArray{
 * 					&compute.ImageDataDiskArgs{
 * 						Lun: pulumi.Int(1),
 * 						ManagedDisk: &compute.SubResourceArgs{
 * 							Id: pulumi.String("subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk2"),
 * 						},
 * 					},
 * 				},
 * 				OsDisk: &compute.ImageOSDiskArgs{
 * 					ManagedDisk: &compute.SubResourceArgs{
 * 						Id: pulumi.String("subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk"),
 * 					},
 * 					OsState: compute.OperatingSystemStateTypesGeneralized,
 * 					OsType:  compute.OperatingSystemTypesLinux,
 * 				},
 * 				ZoneResilient: pulumi.Bool(false),
 * 			},
 * 		})
 * 		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.compute.Image;
 * import com.pulumi.azurenative.compute.ImageArgs;
 * import com.pulumi.azurenative.compute.inputs.ImageStorageProfileArgs;
 * import com.pulumi.azurenative.compute.inputs.ImageOSDiskArgs;
 * import com.pulumi.azurenative.compute.inputs.SubResourceArgs;
 * 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 image = new Image("image", ImageArgs.builder()
 *             .imageName("myImage")
 *             .location("West US")
 *             .resourceGroupName("myResourceGroup")
 *             .storageProfile(ImageStorageProfileArgs.builder()
 *                 .dataDisks(ImageDataDiskArgs.builder()
 *                     .lun(1)
 *                     .managedDisk(SubResourceArgs.builder()
 *                         .id("subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk2")
 *                         .build())
 *                     .build())
 *                 .osDisk(ImageOSDiskArgs.builder()
 *                     .managedDisk(SubResourceArgs.builder()
 *                         .id("subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk")
 *                         .build())
 *                     .osState("Generalized")
 *                     .osType("Linux")
 *                     .build())
 *                 .zoneResilient(false)
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ### Create a virtual machine image that includes a data disk from a snapshot.
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var image = new AzureNative.Compute.Image("image", new()
 *     {
 *         ImageName = "myImage",
 *         Location = "West US",
 *         ResourceGroupName = "myResourceGroup",
 *         StorageProfile = new AzureNative.Compute.Inputs.ImageStorageProfileArgs
 *         {
 *             DataDisks = new[]
 *             {
 *                 new AzureNative.Compute.Inputs.ImageDataDiskArgs
 *                 {
 *                     Lun = 1,
 *                     Snapshot = new AzureNative.Compute.Inputs.SubResourceArgs
 *                     {
 *                         Id = "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2",
 *                     },
 *                 },
 *             },
 *             OsDisk = new AzureNative.Compute.Inputs.ImageOSDiskArgs
 *             {
 *                 OsState = AzureNative.Compute.OperatingSystemStateTypes.Generalized,
 *                 OsType = AzureNative.Compute.OperatingSystemTypes.Linux,
 *                 Snapshot = new AzureNative.Compute.Inputs.SubResourceArgs
 *                 {
 *                     Id = "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot",
 *                 },
 *             },
 *             ZoneResilient = true,
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := compute.NewImage(ctx, "image", &compute.ImageArgs{
 * 			ImageName:         pulumi.String("myImage"),
 * 			Location:          pulumi.String("West US"),
 * 			ResourceGroupName: pulumi.String("myResourceGroup"),
 * 			StorageProfile: &compute.ImageStorageProfileArgs{
 * 				DataDisks: compute.ImageDataDiskArray{
 * 					&compute.ImageDataDiskArgs{
 * 						Lun: pulumi.Int(1),
 * 						Snapshot: &compute.SubResourceArgs{
 * 							Id: pulumi.String("subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2"),
 * 						},
 * 					},
 * 				},
 * 				OsDisk: &compute.ImageOSDiskArgs{
 * 					OsState: compute.OperatingSystemStateTypesGeneralized,
 * 					OsType:  compute.OperatingSystemTypesLinux,
 * 					Snapshot: &compute.SubResourceArgs{
 * 						Id: pulumi.String("subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot"),
 * 					},
 * 				},
 * 				ZoneResilient: 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.azurenative.compute.Image;
 * import com.pulumi.azurenative.compute.ImageArgs;
 * import com.pulumi.azurenative.compute.inputs.ImageStorageProfileArgs;
 * import com.pulumi.azurenative.compute.inputs.ImageOSDiskArgs;
 * import com.pulumi.azurenative.compute.inputs.SubResourceArgs;
 * 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 image = new Image("image", ImageArgs.builder()
 *             .imageName("myImage")
 *             .location("West US")
 *             .resourceGroupName("myResourceGroup")
 *             .storageProfile(ImageStorageProfileArgs.builder()
 *                 .dataDisks(ImageDataDiskArgs.builder()
 *                     .lun(1)
 *                     .snapshot(SubResourceArgs.builder()
 *                         .id("subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2")
 *                         .build())
 *                     .build())
 *                 .osDisk(ImageOSDiskArgs.builder()
 *                     .osState("Generalized")
 *                     .osType("Linux")
 *                     .snapshot(SubResourceArgs.builder()
 *                         .id("subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot")
 *                         .build())
 *                     .build())
 *                 .zoneResilient(true)
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:compute:Image myImage /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}
 * ```
 * @property extendedLocation The extended location of the Image.
 * @property hyperVGeneration Specifies the HyperVGenerationType of the VirtualMachine created from the image. From API Version 2019-03-01 if the image source is a blob, then we need the user to specify the value, if the source is managed resource like disk or snapshot, we may require the user to specify the property if we cannot deduce it from the source managed resource.
 * @property imageName The name of the image.
 * @property location Resource location
 * @property resourceGroupName The name of the resource group.
 * @property sourceVirtualMachine The source virtual machine from which Image is created.
 * @property storageProfile Specifies the storage settings for the virtual machine disks.
 * @property tags Resource tags
 */
public data class ImageArgs(
    public val extendedLocation: Output? = null,
    public val hyperVGeneration: Output>? = null,
    public val imageName: Output? = null,
    public val location: Output? = null,
    public val resourceGroupName: Output? = null,
    public val sourceVirtualMachine: Output? = null,
    public val storageProfile: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.compute.ImageArgs =
        com.pulumi.azurenative.compute.ImageArgs.builder()
            .extendedLocation(extendedLocation?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .hyperVGeneration(
                hyperVGeneration?.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            )
            .imageName(imageName?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .sourceVirtualMachine(
                sourceVirtualMachine?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .storageProfile(storageProfile?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [ImageArgs].
 */
@PulumiTagMarker
public class ImageArgsBuilder internal constructor() {
    private var extendedLocation: Output? = null

    private var hyperVGeneration: Output>? = null

    private var imageName: Output? = null

    private var location: Output? = null

    private var resourceGroupName: Output? = null

    private var sourceVirtualMachine: Output? = null

    private var storageProfile: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The extended location of the Image.
     */
    @JvmName("pbipbrfynruipajk")
    public suspend fun extendedLocation(`value`: Output) {
        this.extendedLocation = value
    }

    /**
     * @param value Specifies the HyperVGenerationType of the VirtualMachine created from the image. From API Version 2019-03-01 if the image source is a blob, then we need the user to specify the value, if the source is managed resource like disk or snapshot, we may require the user to specify the property if we cannot deduce it from the source managed resource.
     */
    @JvmName("oppxvdqondkrifwm")
    public suspend fun hyperVGeneration(`value`: Output>) {
        this.hyperVGeneration = value
    }

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

    /**
     * @param value Resource location
     */
    @JvmName("upvktuogcxjnyxwf")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

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

    /**
     * @param value The source virtual machine from which Image is created.
     */
    @JvmName("seoetjkvjxnygode")
    public suspend fun sourceVirtualMachine(`value`: Output) {
        this.sourceVirtualMachine = value
    }

    /**
     * @param value Specifies the storage settings for the virtual machine disks.
     */
    @JvmName("xnqryrljabpkbowl")
    public suspend fun storageProfile(`value`: Output) {
        this.storageProfile = value
    }

    /**
     * @param value Resource tags
     */
    @JvmName("evkawiooeovqyvoj")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The extended location of the Image.
     */
    @JvmName("begdqrkpwjjpltph")
    public suspend fun extendedLocation(`value`: ExtendedLocationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.extendedLocation = mapped
    }

    /**
     * @param argument The extended location of the Image.
     */
    @JvmName("hoqknxsyqhhstuyf")
    public suspend fun extendedLocation(argument: suspend ExtendedLocationArgsBuilder.() -> Unit) {
        val toBeMapped = ExtendedLocationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.extendedLocation = mapped
    }

    /**
     * @param value Specifies the HyperVGenerationType of the VirtualMachine created from the image. From API Version 2019-03-01 if the image source is a blob, then we need the user to specify the value, if the source is managed resource like disk or snapshot, we may require the user to specify the property if we cannot deduce it from the source managed resource.
     */
    @JvmName("bhhhpdipatcxtoek")
    public suspend fun hyperVGeneration(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hyperVGeneration = mapped
    }

    /**
     * @param value Specifies the HyperVGenerationType of the VirtualMachine created from the image. From API Version 2019-03-01 if the image source is a blob, then we need the user to specify the value, if the source is managed resource like disk or snapshot, we may require the user to specify the property if we cannot deduce it from the source managed resource.
     */
    @JvmName("dtbckpxqpqjtsqpw")
    public fun hyperVGeneration(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.hyperVGeneration = mapped
    }

    /**
     * @param value Specifies the HyperVGenerationType of the VirtualMachine created from the image. From API Version 2019-03-01 if the image source is a blob, then we need the user to specify the value, if the source is managed resource like disk or snapshot, we may require the user to specify the property if we cannot deduce it from the source managed resource.
     */
    @JvmName("aniodbntikxjvmor")
    public fun hyperVGeneration(`value`: HyperVGenerationTypes) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.hyperVGeneration = mapped
    }

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

    /**
     * @param value Resource location
     */
    @JvmName("xiwcjdeicwdeoawa")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

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

    /**
     * @param value The source virtual machine from which Image is created.
     */
    @JvmName("crcqdfuanuttfhav")
    public suspend fun sourceVirtualMachine(`value`: SubResourceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceVirtualMachine = mapped
    }

    /**
     * @param argument The source virtual machine from which Image is created.
     */
    @JvmName("gmjaefuykdnmcuub")
    public suspend fun sourceVirtualMachine(argument: suspend SubResourceArgsBuilder.() -> Unit) {
        val toBeMapped = SubResourceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.sourceVirtualMachine = mapped
    }

    /**
     * @param value Specifies the storage settings for the virtual machine disks.
     */
    @JvmName("dcvqhlordctvnakp")
    public suspend fun storageProfile(`value`: ImageStorageProfileArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.storageProfile = mapped
    }

    /**
     * @param argument Specifies the storage settings for the virtual machine disks.
     */
    @JvmName("jqpuqmwyveknpqse")
    public suspend fun storageProfile(argument: suspend ImageStorageProfileArgsBuilder.() -> Unit) {
        val toBeMapped = ImageStorageProfileArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.storageProfile = mapped
    }

    /**
     * @param value Resource tags
     */
    @JvmName("vsqqkosigkvgrtfw")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Resource tags
     */
    @JvmName("uberkkamvvfwyaca")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ImageArgs = ImageArgs(
        extendedLocation = extendedLocation,
        hyperVGeneration = hyperVGeneration,
        imageName = imageName,
        location = location,
        resourceGroupName = resourceGroupName,
        sourceVirtualMachine = sourceVirtualMachine,
        storageProfile = storageProfile,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy